Function at 0x416f00
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
xor eax, eax
push edi
mov al, byte [esi]
lea eax, [eax + eax*2]
mov ax, word [eax*4 + 0x51a0b8]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
mov eax, dword [eax + esi]
push eax
call sub.WSOCK32.dll_ntohl
mov edi, eax
xor eax, eax
mov al, byte [esi]
lea ecx, [eax + eax*2]
mov ax, word [ecx*4 + 0x51a0b8]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
mov ax, word [eax + esi + 4]
push eax
call sub.WSOCK32.dll_ntohs
mov dword [esp + 0x20], eax
xor eax, eax
mov al, byte [esi]
lea edx, [eax + eax*2]
mov ax, word [edx*4 + 0x51a0b8]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
mov ax, word [eax + esi + 6]
push eax
call sub.WSOCK32.dll_ntohs
mov ebp, eax
xor eax, eax
mov al, byte [esi]
lea eax, [eax + eax*2]
mov ax, word [eax*4 + 0x51a0b8]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
mov ax, word [eax + esi + 8]
push eax
call sub.WSOCK32.dll_ntohs
mov ebx, eax
xor eax, eax
mov al, byte [esi]
lea ecx, [eax + eax*2]
mov ax, word [ecx*4 + 0x51a0b8]
and ax, 0x8000
mov cx, ax
neg cx
sbb ecx, ecx
and ecx, 2
inc ecx
and ecx, 0xffff
mov dl, byte [ecx + esi + 0xa]
mov cx, ax
neg cx
sbb ecx, ecx
mov byte [esp + 0x1c], dl
and ecx, 2
inc ecx
and ecx, 0xffff
neg ax
sbb eax, eax
mov cl, byte [ecx + esi + 0xb]
and eax, 2
mov byte [esp + 0x18], cl
inc eax
and eax, 0xffff
mov ax, word [eax + esi + 0xc]
push eax
call sub.WSOCK32.dll_ntohs
mov dword [esp + 0x14], eax
xor eax, eax
mov al, byte [esi]
push edi
lea edx, [eax + eax*2]
mov ax, word [edx*4 + 0x51a0b8]
and ax, 0x8000
mov cx, ax
neg cx
sbb ecx, ecx
and ecx, 2
inc ecx
and ecx, 0xffff
neg ax
sbb eax, eax
mov cl, byte [ecx + esi + 0xe]
and eax, 2
mov byte [esp + 0x14], cl
inc eax
and eax, 0xffff
mov dl, byte [eax + esi + 0xf]
mov byte [esp + 0x2c], dl
call fcn.004cbc20
mov esi, eax
add esp, 4
test esi, esi
je 0x417188
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
test eax, eax
je 0x417090
movsx eax, byte [esp + 0x28]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0xb4]
cmp edi, dword [0xcf37a0]
je 0x4170f9
mov byte [esi + 0x77], 1
mov ecx, dword [0x80c36c]
push 1
push ecx
push 0
push 0
push esi
call fcn.00468630
mov edx, dword [esi]
add esp, 0x14
mov ecx, esi
mov byte [esi + 0x74], 0
call dword [edx + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
push edx
and ebx, 0xffff
push eax
and ebp, 0xffff
push ebx
push ebp
push 0
push 0
push ecx
push edi
call fcn.004c9f70
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, dword [0xcf3ea4]
test ecx, ecx
je 0x417188
mov eax, dword [ecx + 0x20]
mov bl, byte [ecx + 0xa0]
test eax, eax
je 0x417135
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [0xcf3ea4]
mov cl, byte [esp + 0x10]
mov byte [eax + 0xa0], cl
mov ecx, dword [0xcf3ea4]
mov edx, dword [ecx]
call dword [edx + 0x10]
jmp 0x41713f
mov al, byte [esp + 0x10]
mov byte [ecx + 0xa0], al
mov ecx, dword [0xcf3ea4]
cmp bl, byte [ecx + 0xa0]
je 0x417188
mov esi, dword [0x80c36c]
test esi, esi
je 0x417188
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xe8]
test eax, eax
je 0x417181
mov eax, dword [esi + 0x38]
mov ecx, dword [0xcf3ea4]
cmp eax, ecx
jne 0x417181
push 1
push 1
push 1
push 1
mov ecx, esi
call fcn.00485f20
mov esi, dword [esi + 0x44]
test esi, esi
jne 0x417157
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret