Function at 0x402b30
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
add eax, 0xc
mov dword [ebp - 4], eax
mov eax, str.C:UsersPublicDownloads_
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402b8b
push ebx
call fcn.00402e71
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push dword [ebp - 8]
mov ecx, 2
call fcn.00402ad4
add esp, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x402bbb
push ebx
call fcn.00402e71
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x402bd2
mov eax, 0x4850a8
push eax
push 1
mov ebx, 0x4033e0
call fcn.00402e83
add esp, 0x10
test eax, eax
je 0x402c13
push getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x402c00
mov eax, 0x4850a8
push eax
push 1
mov ebx, 0x4033c0
call fcn.00402e83
add esp, 0x10
push reloc.WS2_32.dll_getpeername
push 0
push 0x485100
push getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x402c32
mov eax, 0x4850a8
push eax
push 2
mov ebx, 0x403470
call fcn.00402e83
add esp, 0x1c
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
mov eax, 2
call fcn.00402e7d
cmp dword [ebp - 0x18], esp
je 0x402c71
push 0x5e8
push 0x4010196
push 6
call fcn.00402e77
add esp, 0xc
mov dword [ebp - 0x10], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x4850b1]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00401229
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x403610
call fcn.00402e83
add esp, 0x10
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x485b08]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00401229
push 0
push 0
push 0
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp + 8]
push 3
mov ebx, 0x403620
call fcn.00402e83
add esp, 0x28
fild dword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x485b10]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00401229
push 0
push 0
push 0
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp + 0xc]
push 3
mov ebx, 0x403620
call fcn.00402e83
add esp, 0x28
fild dword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x485b18]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00401229
push 0
push 0
push 0
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp + 0x10]
push 3
mov ebx, 0x403620
call fcn.00402e83
add esp, 0x28
mov dword [ebp - 0x18], esp
push dword [ebp - 0x10]
mov eax, 5
call fcn.00402e7d
cmp dword [ebp - 0x18], esp
je 0x402da3
push 0x70d
push 0x4010196
push 6
call fcn.00402e77
add esp, 0xc
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402db3
push ebx
call fcn.00402e71
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x402dc3
push ebx
call fcn.00402e71
add esp, 4
mov esp, ebp
pop ebp
ret 0x10