Function at 0x4051b1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
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 - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
cmp dword [ebp + 8], 0
jle 0x40521e
push dword [ebp + 8]
call fcn.00403aa0
mov dword [ebp - 0x30], eax
cmp word [ebp - 0x30], 0x5a4d
jne 0x40521e
xor eax, eax
jmp 0x405223
mov eax, 1
test eax, eax
je 0x405235
mov eax, 0
jmp 0x4057b8
fild dword [ebp + 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x51274f]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.004018f5
push eax
call fcn.00401b4a
mov dword [ebp - 0x38], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fild dword [ebp - 0x38]
fstp qword [ebp - 0x48]
fadd qword [ebp - 0x48]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
call fcn.004018f5
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.00401b4a
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x4550
jne 0x4052c1
fild dword [ebp - 4]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
fadd qword [0x512853]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.004018f5
push eax
call fcn.00401b4a
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4052c1
xor eax, eax
jmp 0x4052c6
mov eax, 1
test eax, eax
je 0x4052d8
mov eax, 0
jmp 0x4057b8
fild dword [ebp - 4]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x51285b]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.004018f5
push eax
call fcn.00401b4a
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
push 0x28
call fcn.00401a5f
mov dword [ebp - 0xc], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fild dword [ebp - 8]
fstp qword [ebp - 0x34]
fadd qword [ebp - 0x34]
fstp qword [ebp - 0x3c]
push 0x28
fld qword [ebp - 0x3c]
call fcn.004018f5
push eax
push dword [ebp - 0xc]
call fcn.00403abc
lea eax, [ebp - 0x10]
push eax
call fcn.00404281
mov dword [ebp - 0x28], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fadd qword [0x512717]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.004018f5
push eax
call fcn.00401b4a
mov dword [ebp - 0x3c], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
fild dword [ebp - 0x3c]
fstp qword [ebp - 0x4c]
fadd qword [ebp - 0x4c]
fstp qword [ebp - 0x54]
push 4
fld qword [ebp - 0x54]
call fcn.004018f5
push eax
push dword [ebp - 0x28]
call fcn.00403abc
fild dword [ebp + 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x34]
fadd qword [ebp - 0x34]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
call fcn.004018f5
mov dword [ebp - 0x10], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x512863]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.004018f5
push eax
call fcn.00401b4a
mov dword [ebp - 0x38], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fild dword [ebp - 0x38]
fstp qword [ebp - 0x48]
fadd qword [ebp - 0x48]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
call fcn.004018f5
mov dword [ebp - 0x14], eax
push getpeername
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x405411
mov eax, 0x503cb3
push eax
push 1
mov ebx, 0x48c5f0
call fcn.0048b623
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x80000301
push 0
push dword [ebp - 0x18]
push 1
mov ebx, 0x48db40
call fcn.0048b623
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
push eax
push dword [ebp - 0x28]
call fcn.00403b9c
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x405475
push ebx
call fcn.0048b617
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x4055a4
fild dword [ebp - 0xc]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x512787]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.004018f5
push eax
call fcn.00401b4a
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
fild dword [ebp - 0x38]
fstp qword [ebp - 0x48]
fsub qword [ebp - 0x48]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
call fcn.004018f5
mov dword [ebp - 0x18], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x5127af]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.004018f5
push eax
call fcn.00401b4a
cmp dword [ebp - 0x18], eax
jg 0x4054fc
cmp dword [ebp - 0x18], 0
jl 0x4054fc
mov eax, 1
jmp 0x4054fe
xor eax, eax
test eax, eax
je 0x40559f
lea eax, [ebp - 0x1c]
push eax
call fcn.00404281
mov dword [ebp - 0x28], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fadd qword [0x51286b]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.004018f5
push eax
call fcn.00401b4a
mov dword [ebp - 0x3c], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
fmul qword [0x512820]
fstp qword [ebp - 0x4c]
fild dword [ebp + 8]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x3c]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fadd qword [ebp - 0x4c]
fstp qword [ebp - 0x64]
push 4
fld qword [ebp - 0x64]
call fcn.004018f5
push eax
push dword [ebp - 0x28]
call fcn.00403abc
cmp dword [ebp - 0x1c], 0
je 0x40559f
fild dword [ebp + 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x34]
fadd qword [ebp - 0x34]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
call fcn.004018f5
mov dword [ebp - 0x1c], eax
jmp 0x4057a8
mov dword [ebp - 0x18], 0
fild dword [ebp - 0xc]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x512873]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.004018f5
push eax
call fcn.00401b4a
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
xor ecx, ecx
inc ecx
push ecx
push eax
cmp ecx, eax
jg 0x4057a5
push 0x80000301
push 0
push dword [ebp - 0x10]
push 1
mov ebx, 0x48e630
call fcn.0048b623
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x405611
push ebx
call fcn.0048b617
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00404281
mov dword [ebp - 0x28], eax
push 2
push dword [ebp - 0x14]
push dword [ebp - 0x28]
call fcn.00403abc
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x18], eax
jg 0x40564e
cmp dword [ebp - 0x18], 0
jl 0x40564e
mov eax, 1
jmp 0x405650
xor eax, eax
test eax, eax
je 0x40574b
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push getpeername
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x405677
mov eax, 0x503cb3
push eax
push getpeername
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x40568d
mov eax, 0x503cb3
push eax
push 3
mov ebx, 0x48d220
call fcn.0048b623
add esp, 0x28
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40574b
lea eax, [ebp - 0x1c]
push eax
call fcn.00404281
mov dword [ebp - 0x28], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fadd qword [0x51286b]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.004018f5
push eax
call fcn.00401b4a
mov dword [ebp - 0x3c], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
fmul qword [0x512820]
fstp qword [ebp - 0x4c]
fild dword [ebp + 8]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
fild dword [ebp - 0x3c]
fstp qword [ebp - 0x5c]
fadd qword [ebp - 0x5c]
fadd qword [ebp - 0x4c]
fstp qword [ebp - 0x64]
push 4
fld qword [ebp - 0x64]
call fcn.004018f5
push eax
push dword [ebp - 0x28]
call fcn.00403abc
cmp dword [ebp - 0x1c], 0
je 0x40574b
fild dword [ebp + 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x34]
fadd qword [ebp - 0x34]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
call fcn.004018f5
mov dword [ebp - 0x1c], eax
jmp 0x4057a5
push getpeername
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40575e
mov eax, 0x503cb3
push eax
push 1
mov ebx, 0x48bae0
call fcn.0048b623
add esp, 0x10
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp - 0x28]
fstp qword [ebp - 0x38]
fadd qword [ebp - 0x38]
fadd qword [0x51270f]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.004018f5
mov dword [ebp - 0x10], eax
add dword [ebp - 0x14], 2
pop eax
pop ecx
jmp 0x4055d3
add esp, 8
push dword [ebp - 0xc]
call fcn.00401b66
mov eax, dword [ebp - 0x1c]
jmp 0x4057b8
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4057c9
push ebx
call fcn.0048b617
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8