Function at 0x491da0
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]
mov ax, word [eax*8 + 0x54901c]
and eax, 0x8000
or ah, 0x40
shr eax, 0xe
and eax, 0xffff
mov eax, dword [eax + esi]
push eax
call sub.WSOCK32.dll_ntohl
xor ecx, ecx
mov edi, eax
mov cl, byte [esi]
mov ax, word [ecx*8 + 0x54901c]
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
xor edx, edx
mov dword [esp + 0x20], eax
mov dl, byte [esi]
mov ax, word [edx*8 + 0x54901c]
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]
mov ax, word [eax*8 + 0x54901c]
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
xor ecx, ecx
mov ebx, eax
mov cl, byte [esi]
mov ax, word [ecx*8 + 0x54901c]
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
xor edx, edx
mov dword [esp + 0x14], eax
mov dl, byte [esi]
mov ax, word [edx*8 + 0x54901c]
and ax, 0x8000
push edi
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.00488740
mov esi, eax
add esp, 4
test esi, esi
je 0x492016
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
test eax, eax
je 0x491f1e
movsx eax, byte [esp + 0x28]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0xa8]
cmp edi, dword [0xcc5058]
je 0x491f87
mov byte [esi + 0x73], 1
mov ecx, dword [0xb6614c]
push 1
push ecx
push 0
push 0
push esi
call fcn.00457ca0
mov edx, dword [esi]
add esp, 0x14
mov ecx, esi
mov byte [esi + 0x70], 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.00486e90
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, dword [0xcc535c]
test ecx, ecx
je 0x492016
mov eax, dword [ecx + 0x20]
mov bl, byte [ecx + 0x9c]
test eax, eax
je 0x491fc3
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [0xcc535c]
mov cl, byte [esp + 0x10]
mov byte [eax + 0x9c], cl
mov ecx, dword [0xcc535c]
mov edx, dword [ecx]
call dword [edx + 0x10]
jmp 0x491fcd
mov al, byte [esp + 0x10]
mov byte [ecx + 0x9c], al
mov ecx, dword [0xcc535c]
cmp bl, byte [ecx + 0x9c]
je 0x492016
mov esi, dword [0xb6614c]
test esi, esi
je 0x492016
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xe8]
test eax, eax
je 0x49200f
mov eax, dword [esi + 0x38]
mov ecx, dword [0xcc535c]
cmp eax, ecx
jne 0x49200f
push 1
push 1
push 1
push 1
mov ecx, esi
call fcn.004ab830
mov esi, dword [esi + 0x40]
test esi, esi
jne 0x491fe5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret