Function at 0x437840
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x3c
mov eax, dword [ebx + 0x10]
push ebp
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov edi, eax
lea ecx, [edi - 1]
mov dword [esp + 0x14], edi
cmp ecx, 0xfe
ja 0x437be4
mov edx, dword [esp + 0x4c]
mov ecx, dword [edx + 0x28]
mov ebp, dword [edx + 0x24]
imul ecx, ecx, 0x170
add ecx, ebp
cmp ebp, ecx
jae 0x437be4
lea eax, [ebp + 0x18]
cmp dword [eax + 0x10], 0
je 0x4378ab
mov esi, dword [eax]
cmp esi, dword [edx + 0x286c]
jne 0x4378ab
mov si, word [eax + 4]
cmp si, word [edx + 0x2870]
jne 0x4378ab
mov esi, dword [eax - 8]
cmp esi, dword [ebx + 0x28]
je 0x437be4
add eax, 0x170
lea esi, [eax - 0x18]
cmp esi, ecx
jb 0x437882
cmp ebp, ecx
jae 0x437be4
nop
cmp dword [ebp + 0x28], 0
je 0x4378d0
add ebp, 0x170
cmp ebp, ecx
jb 0x4378c0
cmp ebp, ecx
jae 0x437be4
mov eax, dword [edx + 0x2c]
cmp edi, eax
jbe 0x4378e5
mov dword [esp + 0x14], eax
mov edi, eax
lea esi, [edi*8]
sub esi, edi
add esi, esi
add esi, esi
add esi, esi
push esi
call dword [0x4d5454]
mov edi, eax
add esp, 4
test edi, edi
jne 0x43790a
call dword [0x4d545c]
mov dword [ebp + 0x2c], edi
test edi, edi
je 0x437be4
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
mov dword [ebp + 0x30], ecx
mov dword [ebp + 0x28], 2
mov edx, dword [ebx + 0x28]
mov dword [ebp + 0x10], edx
mov ecx, dword [eax + 0x286c]
mov dword [ebp + 0x18], ecx
mov edx, dword [eax + 0x2870]
mov dword [ebp + 0x1c], edx
movzx eax, word [ebx + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
mov word [ebp + 0xc], ax
mov ecx, dword [ebx + 0x14]
push ecx
call edi
mov dword [ebp + 0x34], eax
mov edx, dword [ebx + 0x18]
push edx
call edi
mov dword [ebp + 0x38], eax
mov eax, dword [ebx + 0x1c]
push eax
call edi
mov dword [ebp + 0x88], eax
mov ecx, dword [ebx + 0x20]
push ecx
call edi
mov dword [ebp + 0x80], eax
mov edx, dword [ebx + 0x24]
push edx
call edi
mov dword [ebp + 0x84], eax
mov eax, dword [ebx + 0x2c]
push eax
call edi
mov dword [ebp + 0x16c], eax
mov al, byte [ebx + 6]
cmp al, 0xff
jne 0x4379a0
mov al, byte [ebp + 0x14]
inc al
and al, 3
mov byte [esp + 0x12], al
cmp al, byte [ebp + 0x14]
jne 0x4379b5
inc al
and al, 3
mov byte [esp + 0x12], al
mov byte [ebp + 0x14], al
mov al, byte [ebx + 7]
cmp al, 0xff
jne 0x4379c2
mov al, byte [ebp + 0x15]
inc al
and al, 3
mov byte [esp + 0x13], al
cmp al, byte [ebp + 0x15]
jne 0x4379d7
inc al
and al, 3
mov byte [esp + 0x13], al
mov byte [ebp + 0x15], al
mov eax, dword [ebp + 0x2c]
lea ecx, [eax + esi]
cmp eax, ecx
jae 0x437a2c
add eax, 0x34
xor edx, edx
mov dword [eax - 0x34], edx
mov word [eax - 0xe], dx
lea ecx, [eax - 0xc]
mov dword [eax - 8], ecx
mov dword [ecx], ecx
lea ecx, [eax - 4]
mov dword [eax], ecx
mov dword [ecx], ecx
xor ecx, ecx
mov word [eax - 0x30], cx
mov dword [eax - 0x2e], ecx
mov dword [eax - 0x2a], ecx
mov dword [eax - 0x26], ecx
mov dword [eax - 0x22], ecx
mov dword [eax - 0x1e], ecx
mov dword [eax - 0x1a], ecx
mov dword [eax - 0x16], ecx
mov dword [eax - 0x12], ecx
mov edx, dword [ebp + 0x2c]
add eax, 0x38
add edx, esi
lea ecx, [eax - 0x34]
cmp ecx, edx
jb 0x4379e7
mov edx, dword [ebx + 8]
push edx
call edi
cmp eax, 0x240
jae 0x437a40
mov eax, 0x240
jmp 0x437a4c
cmp eax, 0x1000
jbe 0x437a4c
mov eax, 0x1000
mov edx, dword [esp + 0x4c]
mov dword [ebp + 0xa4], eax
mov eax, dword [edx + 0x10]
test eax, eax
jne 0x437a72
cmp dword [ebp + 0x34], eax
jne 0x437a6e
mov dword [ebp + 0xa8], 0x8000
jmp 0x437a94
test eax, eax
je 0x437a7f
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x437a7f
cmp eax, ecx
jb 0x437a88
jmp 0x437a86
mov ecx, dword [ebp + 0x34]
cmp eax, ecx
ja 0x437a88
mov eax, ecx
shr eax, 0x10
shl eax, 0xc
mov dword [ebp + 0xa8], eax
mov eax, dword [ebp + 0xa8]
cmp eax, 0x1000
jae 0x437aad
mov dword [ebp + 0xa8], 0x1000
jmp 0x437abe
cmp eax, 0x8000
jbe 0x437abe
mov dword [ebp + 0xa8], 0x8000
mov esi, dword [edx + 0xc]
test esi, esi
jne 0x437acc
mov esi, 0x8000
jmp 0x437ad2
shr esi, 0x10
shl esi, 0xc
mov eax, dword [ebx + 0xc]
push eax
call edi
cmp esi, eax
jbe 0x437ae4
mov ecx, dword [ebx + 0xc]
push ecx
call edi
mov esi, eax
cmp esi, 0x1000
jae 0x437af3
mov esi, 0x1000
jmp 0x437b00
cmp esi, 0x8000
jbe 0x437b00
mov esi, 0x8000
movzx edx, word [ebp + 0xe]
mov edi, dword [sym.imp.WS2_32.dll_htons]
push edx
mov word [esp + 0x1c], 0xff83
call edi
movzx edx, word [ebp + 0xa4]
mov cl, byte [esp + 0x13]
mov word [esp + 0x1c], ax
mov al, byte [esp + 0x12]
push edx
mov byte [esp + 0x22], al
mov byte [esp + 0x23], cl
call edi
movzx eax, ax
push esi
mov esi, dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x24], eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x28], eax
call esi
mov edi, dword [esp + 0x4c]
mov edx, dword [edi + 0xc]
push edx
mov dword [esp + 0x2c], eax
call esi
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x10]
push eax
call esi
mov ecx, dword [ebp + 0x88]
push ecx
mov dword [esp + 0x34], eax
call esi
mov edx, dword [ebp + 0x80]
push edx
mov dword [esp + 0x38], eax
call esi
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x84]
push eax
call esi
mov ecx, dword [ebp + 0x10]
push 0x54
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
call dword [0x4d5454]
xor edx, edx
add esp, 4
cmp eax, edx
jne 0x437bb8
call dword [0x4d545c]
mov eax, ebp
pop edi
pop esi
pop ebp
add esp, 0x3c
ret
lea edi, [eax + 0x20]
mov ecx, 0xc
lea esi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov esi, eax
mov edi, ebp
mov dword [eax + 0x18], edx
mov word [eax + 0x1c], cx
mov dword [eax + 0x50], edx
call fcn.00436f30
mov eax, ebp
pop edi
pop esi
pop ebp
add esp, 0x3c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x3c
ret