Function at 0x40a2e7
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x4b5b79
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1d0]
xor ecx, ecx
push eax
mov eax, 0x4b5ba1
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40a7ec
fild dword [0x4b5ba1]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fsub qword [0x499338]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.00401e95
mov dword [0x4b5ba5], eax
call fcn.0040205e
mov dword [ebp - 0x10], eax
push 1
push 0
push dword [0x4b5ba5]
push 0x4b5b79
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x190]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40a3a2
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40a3b2
push ebx
call fcn.0044dbce
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a3c6
push ebx
call fcn.0044dbce
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push dword [0x4b5ba5]
push 0x4b5b79
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1fc]
mov ebx, dword [0x4b5b91]
call fcn.004029aa
push ebx
push ecx
mov eax, dword [0x4b5ba1]
dec eax
jns 0x40a410
push 4
call fcn.0044dbd4
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40a423
push 1
call fcn.0044dbd4
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
push 1
push 0x40aa30
push dword [ebp - 0x10]
call fcn.00409a40
mov dword [ebp - 0x18], eax
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40a45c
mov eax, 0x499775
push eax
push 1
mov ebx, 4
mov eax, 0x4542e0
call fcn.0044e000
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40a487
push ebx
call fcn.0044dbce
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a49b
push ebx
call fcn.0044dbce
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
call fcn.004024a2
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40a4cd
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40a4e0
push ebx
call fcn.0044dbce
add esp, 4
cmp dword [ebp - 0x18], 0
jne 0x40a50c
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40a50c
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40a52e
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jne 0x40a56d
push 0x80000301
push 0
push 0x20
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40a55a
mov eax, 0x499305
push eax
push 2
mov ebx, 0x260
call fcn.00451710
add esp, 0x1c
push 0
push 0
push 0
push 0x80000301
push 0
push 4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40a592
mov eax, 0x499305
push eax
push 3
mov ebx, 0x270
call fcn.0044e790
add esp, 0x28
mov dword [ebp - 0xc], eax
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40a5bb
mov eax, 0x499775
push eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0x298
call fcn.00450b00
add esp, 0x1c
and eax, 1
xor eax, 1
test eax, eax
je 0x40a623
push 1
mov eax, 0x4b2069
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 1
push 4
push dword [0x4b5ba5]
push 0x4b5b79
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1a4]
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40a623
push ebx
call fcn.0044dbce
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x278
call fcn.0044e870
add esp, 0x10
fild dword [0x4b5b99]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fild dword [0x4b5ba1]
fstp qword [ebp - 0x1c]
fadd qword [ebp - 0x1c]
fstp qword [ebp - 0x24]
push 1
fld qword [ebp - 0x24]
call fcn.00401e95
push eax
push 0x4b5b81
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x190]
push 0x80000301
push 0
push dword [0x4b5b95]
push 1
mov ebx, 0x168
call fcn.0044e9f0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
push 0x4b5b81
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x190]
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0044e9f0
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 0x80000301
push 0
push dword [0x4b5b95]
push 1
mov ebx, 0x168
call fcn.0044e9f0
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4b2037
push dword [ebp - 0x20]
push 0x4b2072
push dword [ebp - 0x1c]
push 0x4b2074
push dword [ebp - 0x10]
push 0x4b205c
mov ecx, 7
call fcn.0040119e
add esp, 0x1c
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40a733
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40a743
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40a753
push ebx
call fcn.0044dbce
add esp, 4
push 1
lea eax, [ebp - 0x24]
push eax
push 0x4b5b85
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x190]
mov ebx, eax
test ebx, ebx
je 0x40a77a
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40a78a
push ebx
call fcn.0044dbce
add esp, 4
mov dword [ebp - 0x10], esp
push dword [0x4b5aed]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40a7af
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jne 0x40a7e4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [0x4b5aed]
test eax, eax
jne 0x40a7d1
mov eax, 0x499305
push eax
push 1
mov ebx, 0x244
call fcn.0044e320
add esp, 0x10
pop eax
pop ebx
pop ecx
jmp 0x40a322
add esp, 0xc
mov ebx, dword [0x4b5b89]
call fcn.004029aa
mov eax, 2
cmp eax, ecx
jl 0x40a810
push 1
call fcn.0044dbd4
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x10], ebx
push 0x80000301
push 0
mov ebx, dword [ebp - 0x10]
push dword [ebx]
push 1
mov ebx, 0x1c
mov eax, 0x454140
call fcn.0044e000
add esp, 0x10
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 0x4b5b81
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x190]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4b5b95]
cmp dword [ebp - 0x18], eax
jl 0x40a86f
call fcn.0040a008
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a87f
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a88f
push ebx
call fcn.0044dbce
add esp, 4
mov esp, ebp
pop ebp
ret