Function at 0x40575d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
call fcn.0040205e
mov dword [ebp - 8], eax
push 0x4b1e6c
push dword [ebp - 8]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4057a4
push ebx
call fcn.0044dbce
add esp, 4
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
push dword [ebp - 0xc]
mov eax, 0
call fcn.00450be0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4057d2
push ebx
call fcn.0044dbce
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4057e6
push ebx
call fcn.0044dbce
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x499305
push dword [ebp - 4]
call fcn.00401096
add esp, 8
cmp eax, 0
je 0x4059dd
call fcn.0040205e
mov dword [ebp - 8], eax
push dword [ebp - 4]
push str.datamain_flashRole_
push dword [ebp - 8]
mov ecx, 3
call fcn.0040119e
add esp, 0xc
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405836
push ebx
call fcn.0044dbce
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405858
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40586b
push ebx
call fcn.0044dbce
add esp, 4
cmp dword [ebp - 0x14], 0
jne 0x40593a
call fcn.0040205e
mov dword [ebp - 8], eax
push dword [ebp - 4]
push str.datamain_
push dword [ebp - 8]
mov ecx, 3
call fcn.0040119e
add esp, 0xc
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4058a8
push ebx
call fcn.0044dbce
add esp, 4
call fcn.0040205e
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push str.datamain_flashRole_
push dword [ebp - 0x10]
mov ecx, 3
call fcn.0040119e
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4058db
push ebx
call fcn.0044dbce
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4058ee
mov eax, 0x499305
push eax
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x405902
mov eax, 0x499305
push eax
push 2
mov ebx, 0x240
call fcn.00450840
add esp, 0x1c
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405925
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x405935
push ebx
call fcn.0044dbce
add esp, 4
jmp 0x4059a3
call fcn.0040205e
mov dword [ebp - 8], eax
push dword [ebp - 4]
push str.datamain_
push dword [ebp - 8]
mov ecx, 3
call fcn.0040119e
add esp, 0xc
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40596d
push ebx
call fcn.0044dbce
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x405980
mov eax, 0x499305
push eax
push 1
mov ebx, 0x244
call fcn.0044e320
add esp, 0x10
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4059a3
push ebx
call fcn.0044dbce
add esp, 4
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
push 0
mov eax, 0
call fcn.00450be0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4059d4
push ebx
call fcn.0044dbce
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x4057ea
push dword [ebp - 0x1c]
mov eax, 1
call fcn.00450d30
add esp, 4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4059fd
push ebx
call fcn.0044dbce
add esp, 4
mov esp, ebp
pop ebp
ret