Function at 0x406517
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x70
call fcn.0042b77f
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x1c
rep stosd dword es:[edi], eax
mov dword [ebx], 0x72105d
push ebx
add ebx, 4
push ebx
push 8
call fcn.0042b77f
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
add ebx, 0x30
push ebx
push 0xc
call fcn.0042b77f
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0x721141
pop ebx
pop ebx
push 0x10
call fcn.0042b77f
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx], 0x721190
push ebx
add ebx, 4
push ebx
push 8
call fcn.0042b77f
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
add ebx, 4
push ebx
push 8
call fcn.0042b77f
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
pop ebx
pop ebx
push ebx
mov eax, esp
push eax
call fcn.004068fc
pop ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0x718fe1
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.00401350
add esp, 8
cmp eax, 0
jne 0x406658
mov eax, 0x718fe1
jmp 0x4068c4
push dword [0x74e988]
call fcn.00404a67
push 0
mov ebx, 0x42d180
call fcn.0042b797
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push 0x80000301
push 0
push 8
push reloc.WS2_32.dll_closesocket
push dword [0x74e9a0]
push dword [0x74e99c]
push reloc.WS2_32.dll_closesocket
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 3
mov ebx, 0x42ce70
call fcn.0042b797
add esp, 0x28
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
fld qword [ebp - 0x28]
fsub qword [0x721169]
fcomp qword [0x721171]
fnstsw ax
test ah, 0x41
je 0x4066f5
push 0x74e9a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 1
jl 0x4066f5
xor eax, eax
jmp 0x4066fa
mov eax, 1
test eax, eax
je 0x406885
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
push dword [ebp + 8]
push 1
mov eax, 0x720d95
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x34]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40673d
push ebx
call fcn.0042b791
add esp, 4
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x3c]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x406768
push ebx
call fcn.0042b791
add esp, 4
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov eax, 0x721179
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4067b6
push ebx
call fcn.0042b791
add esp, 4
lea eax, [ebp - 4]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x58]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x14]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4067e9
push ebx
call fcn.0042b791
add esp, 4
push 0x74e9a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x24]
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x18]
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x406865
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push 0x74e9a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x78]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x406860
push ebx
call fcn.0042b791
add esp, 4
pop eax
pop ebx
pop ecx
jmp 0x40680f
add esp, 0xc
push 0
mov ebx, 0x42d180
call fcn.0042b797
add esp, 4
mov dword [0x74e99c], eax
mov dword [0x74e9a0], edx
lea eax, [ebp - 0x10]
push eax
push 0x74e9a4
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x7c]
push dword [0x74e988]
call fcn.00404ab1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4068bf
push eax
mov ebx, eax
call fcn.004010a9
inc eax
push eax
call fcn.0042b77f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4068c4
push eax
mov ebx, dword [ebp - 4]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.0042b791
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.0042b791
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4068f5
push ebx
call fcn.0042b791
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4