Function at 0x417410
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x4fa95b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
xor eax, eax
push edi
mov al, byte [esi]
mov byte [esp + 0x13], 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 dword [esp + 0x28], 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 + 0x24], dl
and ecx, 2
inc ecx
and ecx, 0xffff
neg ax
mov cl, byte [ecx + esi + 0xb]
sbb eax, eax
mov byte [esp + 0x1c], cl
and eax, 2
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 + 0x1c], cl
inc eax
and eax, 0xffff
mov dl, byte [eax + esi + 0xf]
mov byte [esp + 0x58], dl
call fcn.004cbc20
add esp, 4
test eax, eax
je 0x41759e
mov byte [esp + 0x13], 1
cmp edi, dword [0xcf37a0]
je 0x4175df
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x30]
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
jmp 0x41766e
mov ecx, dword [0xcf3ea4]
test ecx, ecx
je 0x41766e
mov eax, dword [ecx + 0x20]
mov bl, byte [ecx + 0xa0]
test eax, eax
je 0x41761b
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [0xcf3ea4]
mov cl, byte [esp + 0x18]
mov byte [eax + 0xa0], cl
mov ecx, dword [0xcf3ea4]
mov edx, dword [ecx]
call dword [edx + 0x10]
jmp 0x417625
mov al, byte [esp + 0x18]
mov byte [ecx + 0xa0], al
mov ecx, dword [0xcf3ea4]
cmp bl, byte [ecx + 0xa0]
je 0x41766e
mov ebx, dword [0x80c36c]
test ebx, ebx
je 0x41766e
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xe8]
test eax, eax
je 0x417667
mov eax, dword [ebx + 0x38]
mov ecx, dword [0xcf3ea4]
cmp eax, ecx
jne 0x417667
push 1
push 1
push 1
push 1
mov ecx, ebx
call fcn.00485f20
mov ebx, dword [ebx + 0x44]
test ebx, ebx
jne 0x41763d
push edi
call fcn.004cbc20
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x4176b1
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x24]
test eax, eax
je 0x4176a5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
movsx eax, byte [esp + 0x54]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0xb4]
jmp 0x4176b1
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x18]
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 eax, dword [eax + esi + 0x10]
push eax
call sub.WSOCK32.dll_ntohl
test eax, eax
mov dword [esp + 0x54], eax
mov edi, 0x14
je 0x4178eb
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
add eax, edi
mov ax, word [eax + esi]
push eax
call sub.WSOCK32.dll_ntohs
mov ebp, eax
xor eax, eax
mov al, byte [esi]
add edi, 2
lea eax, [eax + eax*2]
mov cx, word [eax*4 + 0x51a0b8]
and cx, 0x8000
mov ax, cx
neg ax
sbb eax, eax
and eax, 2
inc eax
and eax, 0xffff
add eax, edi
inc edi
test ebp, 0x8000
mov dl, byte [eax + esi]
mov byte [esp + 0x28], dl
je 0x41777c
and ebp, 0x7fff
neg cx
sbb ecx, ecx
and ecx, 2
inc ecx
and ecx, 0xffff
add ecx, edi
mov cx, word [ecx + esi]
push ecx
call sub.WSOCK32.dll_ntohs
mov dword [esp + 0x14], eax
add edi, 2
jmp 0x417784
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x4178b2
mov eax, dword [esp + 0x54]
push eax
call fcn.004cbc20
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x417809
push ebp
call fcn.004cbf80
add esp, 4
test eax, eax
je 0x4177ef
push 0xc4
call fcn.004ed8ee
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x4c], ebx
je 0x4177e1
mov ecx, dword [esp + 0x54]
push 1
push ebx
push ebp
push ecx
mov ecx, eax
call fcn.004c77a0
mov dword [esp + 0x4c], 0xffffffff
mov ebx, eax
jmp 0x417810
xor eax, eax
mov dword [esp + 0x4c], 0xffffffff
mov ebx, eax
jmp 0x417810
mov edx, dword [esp + 0x54]
and ebp, 0xffff
push 0
push ebp
push edx
call fcn.004c4c20
add esp, 0xc
mov ebx, eax
jmp 0x417810
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x50]
mov ebp, dword [esp + 0x14]
and ebp, 0xffff
push ebp
call fcn.004c58f0
mov word [ebx + 0x44], ax
mov ecx, dword [0x636ac8]
add esp, 4
test ecx, ecx
je 0x41788a
mov dx, word [ebx + 0x3c]
lea eax, [esp + 0x54]
add dx, 0x4000
push eax
mov dword [esp + 0x58], edx
lea edx, [esp + 0x20]
push edx
call fcn.0040b280
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41788a
cmp word [ebx + 0x44], 0
jne 0x41788a
mov ax, word [ebx + 0x3c]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x34]
add ax, 0x4000
push ecx
mov ecx, dword [0x636ac8]
push edx
mov dword [esp + 0x5c], eax
call fcn.0040b280
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x14]
mov word [ebx + 0x46], cx
jmp 0x417897
push ebp
call fcn.004c58f0
add esp, 4
mov word [ebx + 0x46], ax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
and edx, 0xff
mov ecx, ebx
push edx
push eax
call fcn.004c6660
mov ebx, dword [esp + 0x18]
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
add eax, edi
mov eax, dword [eax + esi]
push eax
call sub.WSOCK32.dll_ntohl
add edi, 4
mov dword [esp + 0x54], eax
test eax, eax
jne 0x4176eb
test ebx, ebx
mov ebp, 3
je 0x417a30
mov byte [ebx + 0x77], 1
mov edx, dword [0x80c36c]
push 1
push edx
push 0
push 0
push ebx
call fcn.00468630
mov esi, eax
mov eax, dword [ebx]
add esp, 0x14
mov ecx, ebx
mov byte [ebx + 0x74], 0
call dword [eax + 0x10]
mov eax, dword [ebx + 0x84]
test eax, eax
je 0x417974
mov eax, dword [ebx + 0x130]
test eax, eax
jne 0x417974
mov ecx, dword [ebx + 0x84]
mov edx, dword [ecx]
call dword [edx + 0x24]
test eax, eax
je 0x417952
mov eax, dword [ebx + 0x84]
mov dword [eax + 0x19c], 0
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x50]
mov eax, dword [ebx]
lea ecx, [ebx + 0x24]
sub esp, 8
mov edi, dword [ecx]
mov edx, esp
mov cx, word [ecx + 4]
mov dword [edx], edi
mov word [edx + 4], cx
mov ecx, ebx
call dword [eax + 0x60]
test esi, esi
je 0x417a30
mov edx, dword [esi + 0x38]
mov eax, dword [0x51a328]
test ah, 0x80
mov edi, dword [edx + 0x80]
mov byte [esp + 0x34], 0x34
je 0x41799b
mov word [esp + 0x35], bp
jmp 0x4179a4
mov word [0x636b48], 1
push 0xedededed
call sub.WSOCK32.dll_htonl
mov esi, eax
lea eax, [esp + 0x34]
push eax
call fcn.00415210
and eax, 0xffff
lea ecx, [esp + 0x38]
mov dword [esp + eax + 0x38], esi
add eax, 4
push eax
push ecx
call fcn.00415240
lea edx, [esp + 0x40]
push edx
call fcn.00415210
and eax, 0xffff
mov byte [esp + eax + 0x44], 4
inc eax
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00415240
add esp, 0x18
push edi
call sub.WSOCK32.dll_htonl
lea ecx, [esp + 0x34]
mov esi, eax
push ecx
call fcn.00415210
and eax, 0xffff
lea edx, [esp + 0x38]
mov dword [esp + eax + 0x38], esi
add eax, 4
push eax
push edx
call fcn.00415240
mov ecx, dword [0xcf38a8]
add esp, 0xc
lea eax, [esp + 0x34]
push eax
call fcn.0042ee70
mov eax, dword [0xcf3ea4]
mov ecx, dword [eax + 0x130]
test ecx, ecx
jne 0x417a4e
mov dword [eax + 0x19c], 0
mov eax, dword [0xcf3ea4]
mov cl, byte [0x55fefb]
test cl, cl
je 0x417b2d
test ebx, ebx
je 0x417b2d
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x417b2d
test byte [ebx + 0xa0], 0x80
jne 0x417b2d
cmp word [ebx + 0x3c], 0
je 0x417b2d
cmp ebx, eax
je 0x417b2d
mov eax, dword [0x51a124]
mov ebx, dword [ebx + 0x80]
mov esi, 0x8000
mov byte [esp + 0x2c], 9
test esi, eax
je 0x417ab0
mov word [esp + 0x2d], bp
jmp 0x417ab9
mov word [0x636b48], 1
push ebx
call sub.WSOCK32.dll_htonl
mov ecx, dword [esp + 0x2c]
and ecx, 0xff
lea ecx, [ecx + ecx*2]
test word [ecx*4 + 0x51a0b8], si
je 0x417adc
mov ecx, dword [esp + 0x2d]
jmp 0x417aec
mov dx, word [0x636b48]
mov word [esp + 0x54], dx
mov ecx, dword [esp + 0x54]
and ecx, 0xffff
mov dword [esp + ecx + 0x2c], eax
mov eax, dword [esp + 0x2c]
and eax, 0xff
add ecx, 4
lea eax, [eax + eax*2]
test word [eax*4 + 0x51a0b8], si
je 0x417b16
mov word [esp + 0x2d], cx
jmp 0x417b1d
mov word [0x636b48], cx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [0xcf38a8]
call fcn.0042ee70
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret