Function at 0x4190b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov eax, 1
push esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
xor eax, eax
push edi
mov al, byte [esi]
mov dword [esp + 0x10], 0
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 ebx, 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 dword [esp + 0x18], 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 + 0xa]
push eax
call sub.WSOCK32.dll_ntohs
mov dword [esp + 0x30], 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 + 0xc]
push eax
call sub.WSOCK32.dll_ntohs
mov dword [esp + 0x1c], 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 + 0xe]
push eax
call sub.WSOCK32.dll_ntohs
push edi
mov dword [esp + 0x18], eax
call fcn.004cbc20
mov esi, eax
add esp, 4
test esi, esi
je 0x4193cb
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
test eax, eax
je 0x4193cb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
test eax, eax
je 0x419295
mov eax, dword [esp + 0x18]
mov ecx, ebx
mov edx, ebp
and ecx, 0xffff
and edx, 0xffff
and eax, 0xffff
mov dword [esi + 0x1ec], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x1e8], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x1f4], eax
mov eax, dword [esp + 0x14]
and ecx, 0xffff
and edx, 0xffff
and eax, 0xffff
mov dword [esi + 0x1f0], ecx
mov dword [esi + 0x1fc], edx
mov dword [esi + 0x1f8], eax
mov edi, dword [0x80c36c]
test edi, edi
je 0x4192e0
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xec]
test eax, eax
je 0x4192d9
mov eax, dword [edi + 0xac]
mov ecx, dword [esi + 0x80]
cmp eax, ecx
jne 0x4192d9
mov ecx, ebp
mov edx, ebx
and ecx, 0xffff
and edx, 0xffff
mov dword [edi + 0xa8], ecx
mov dword [edi + 0xa4], edx
mov edi, dword [edi + 0x44]
test edi, edi
jne 0x41929f
mov edi, dword [0x80c36c]
test edi, edi
je 0x4193cb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xe8]
test eax, eax
je 0x419301
cmp dword [edi + 0x38], esi
je 0x419310
mov edi, dword [edi + 0x44]
test edi, edi
jne 0x4192ee
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
xor edx, edx
cmp edi, edx
je 0x4193cb
cmp word [edi + 0xce], bp
jne 0x419327
mov dword [esp + 0x24], edx
mov cx, word [esp + 0x30]
cmp word [edi + 0xd6], cx
jne 0x419339
mov dword [esp + 0x20], edx
mov esi, dword [esp + 0x14]
cmp word [edi + 0xd2], si
je 0x41934a
mov edx, dword [esp + 0x28]
cmp word [edi + 0xd0], bx
je 0x41935b
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x18]
cmp word [edi + 0xd8], cx
je 0x419370
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x1c]
cmp word [edi + 0xd4], ax
jne 0x419385
mov dword [esp + 0x10], 1
mov word [edi + 0xd8], cx
mov cx, word [esp + 0x30]
push edx
mov edx, dword [esp + 0x24]
mov word [edi + 0xd4], ax
mov eax, dword [esp + 0x28]
mov word [edi + 0xd6], cx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
mov ecx, edi
mov word [edi + 0xd0], bx
mov word [edi + 0xce], bp
mov word [edi + 0xd2], si
call fcn.00485f20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret