Function at 0x40943d
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 0x4b5b75
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1d0]
xor ecx, ecx
push eax
mov eax, 0x4b5b99
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x409942
fild dword [0x4b5b99]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fsub qword [0x499338]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
call fcn.00401e95
mov dword [0x4b5b9d], eax
call fcn.0040205e
mov dword [ebp - 0x10], eax
push 1
push 0
push dword [0x4b5b9d]
push 0x4b5b75
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 0x4094f8
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x409508
push ebx
call fcn.0044dbce
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40951c
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 [0x4b5b9d]
push 0x4b5b75
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1fc]
mov ebx, dword [0x4b5b8d]
call fcn.004029aa
push ebx
push ecx
mov eax, dword [0x4b5b99]
dec eax
jns 0x409566
push 4
call fcn.0044dbd4
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x409579
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 0x40a2bc
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 0x4095b2
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 0x4095dd
push ebx
call fcn.0044dbce
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4095f1
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 0x409623
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x409636
push ebx
call fcn.0044dbce
add esp, 4
cmp dword [ebp - 0x18], 0
jne 0x409662
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 0x409662
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 0x409684
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jne 0x4096c3
push 0x80000301
push 0
push 0x20
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4096b0
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 0x4096e8
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 0x409711
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 0x409779
push 1
mov eax, 0x4b2069
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 1
push 4
push dword [0x4b5b9d]
push 0x4b5b75
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 0x409779
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 0x409889
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x409899
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4098a9
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 0x4098d0
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4098e0
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 0x409905
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jne 0x40993a
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [0x4b5aed]
test eax, eax
jne 0x409927
mov eax, 0x499305
push eax
push 1
mov ebx, 0x244
call fcn.0044e320
add esp, 0x10
pop eax
pop ebx
pop ecx
jmp 0x409478
add esp, 0xc
mov ebx, dword [0x4b5b89]
call fcn.004029aa
mov eax, 1
cmp eax, ecx
jl 0x409966
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 0x4099c5
call fcn.0040a008
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4099d5
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4099e5
push ebx
call fcn.0044dbce
add esp, 4
mov esp, ebp
pop ebp
ret