Function at 0x489f70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5278d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x569c90]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x44]
mov dword [esp + 0x4c], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x489fb4
mov dword [esi + 0x40], 0xa
jmp 0x48a268
mov ebx, 1
lea ecx, [esp + 0x14]
push ebx
or edi, 0xffffffff
push ecx
push eax
mov ecx, 0x57070c
mov dword [esp + 0x20], edi
call fcn.00488f70
test eax, eax
jne 0x48a021
mov eax, dword [esi + 0x44]
lea edx, [esp + 0xc]
push eax
push 0x14a8
push edx
call fcn.005054ef
mov eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, esi
push ebx
push eax
call fcn.0048aa20
mov eax, dword [esi + 0x44]
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
mov ecx, 0x57070c
call fcn.00488f70
test eax, eax
jne 0x48a021
mov dword [esi + 0x40], 0xa
mov dword [esp + 0x4c], edi
jmp 0x48a270
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.0045f5f0
mov edx, dword [eax]
mov ecx, dword [esi + 0x44]
xor eax, eax
push edx
mov ax, word [esi + 0x48]
mov byte [esp + 0x58], bl
push eax
push ecx
lea ecx, [esp + 0x20]
push 0x14b8
push ecx
call fcn.005054ef
add esp, 0x1c
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 0
call fcn.00507d3a
mov edx, dword [esp + 0xc]
push ebx
push edx
mov ecx, esi
call fcn.0048aa20
mov cx, word [esi + 0x48]
xor eax, eax
mov dword [esp + 0x34], eax
push ecx
mov dword [esp + 0x3c], eax
mov word [esp + 0x38], 2
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x34]
mov word [esp + 0x36], ax
mov eax, dword [esi]
push 0x10
push ecx
mov ecx, esi
mov dword [esp + 0x40], edx
call dword [eax + 0x14]
cmp eax, edi
jne 0x48a0c2
mov dword [esi + 0x40], 0xc
mov dword [esp + 0x4c], edi
jmp 0x48a270
lea edx, [esp + 0xc]
push 0x14c3
push edx
call fcn.005054ef
mov eax, dword [esp + 0x14]
add esp, 8
mov ecx, esi
push ebx
push eax
call fcn.0048aa20
mov edi, dword [esp + 0x54]
lea ecx, [esp + 0x54]
push edi
push ecx
mov ecx, esi
call fcn.00489a80
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 2
call fcn.00507e73
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 0
call fcn.00507d3a
mov edx, dword [esp + 0xc]
push ebx
push edx
mov ecx, esi
call fcn.0048aa20
mov eax, dword [esi + 0x52]
mov edx, dword [esi]
neg eax
sbb al, al
push 0
and eax, 2
push 3
mov byte [esp + 0x1a], al
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov byte [esp + 0x1c], 5
mov byte [esp + 0x1d], bl
call dword [edx + 0x10]
cmp eax, 3
jne 0x48a265
mov edx, dword [esi]
push 0
lea eax, [esp + 0x14]
push 2
push eax
mov ecx, esi
call dword [edx + 0xc]
cmp eax, 2
jne 0x48a265
cmp byte [esp + 0x10], 5
jne 0x48a265
mov al, byte [esp + 0x11]
test al, al
je 0x48a19e
cmp al, 2
jne 0x48a265
mov eax, dword [esi + 0x52]
test eax, eax
je 0x48a192
mov ecx, esi
call fcn.00489930
test eax, eax
jne 0x48a19e
mov dword [esi + 0x40], 0xb
jmp 0x48a268
mov ecx, dword [edi + 4]
mov dx, word [edi + 2]
mov eax, dword [esi]
mov dword [esp + 0x20], ecx
push 0
lea ecx, [esp + 0x20]
push 0xa
push ecx
mov ecx, esi
mov byte [esp + 0x28], 5
mov byte [esp + 0x2b], bl
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], 0
mov word [esp + 0x30], dx
call dword [eax + 0x10]
cmp eax, 0xa
jne 0x48a265
mov edx, dword [esi]
push 0
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call dword [edx + 0xc]
cmp eax, 0xa
jne 0x48a265
cmp byte [esp + 0x28], 5
jne 0x48a265
mov eax, dword [esp + 0x29]
mov dword [esp + 0x4c], 0xffffffff
mov ecx, eax
and ecx, 0xff
test al, al
mov dword [esi + 0x40], ecx
jne 0x48a270
mov edx, dword [esp + 0x2c]
mov ax, word [esp + 0x30]
mov dword [esi + 0x1c], edx
mov word [esi + 0x1a], ax
mov word [esi + 0x18], 2
mov edx, dword [edi]
lea ecx, [esi + 0x28]
mov dword [esi + 0x28], edx
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov edx, dword [edi + 8]
mov dword [ecx + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0x40], 0
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0xc]
call fcn.00507d3a
pop edi
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 8
mov dword [esi + 0x40], ebx
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00507d3a
mov ecx, dword [esp + 0x44]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 8