Function at 0x402196
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push dword [ebp + 8]
call fcn.004024a2
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4021cc
push ebx
call fcn.0044dbce
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 2
push reloc.WSOCK32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4021fd
mov eax, 0x499305
push eax
push 3
mov ebx, 0x270
call fcn.0044e790
add esp, 0x28
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40235e
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x278
call fcn.0044e870
add esp, 0x10
push reloc.WSOCK32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40224e
mov eax, 0x499305
push eax
push 1
mov ebx, 0x244
call fcn.0044e320
add esp, 0x10
call fcn.0040205e
mov dword [ebp - 0xc], eax
call fcn.00402133
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x402297
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4022a7
push ebx
call fcn.0044dbce
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4022bc
mov eax, 0x499305
push eax
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4022d0
mov eax, 0x499305
push eax
push 2
mov ebx, 0x23c
call fcn.0044e330
add esp, 0x1c
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4022f3
push ebx
call fcn.0044dbce
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x402306
mov eax, 0x499305
push eax
push 1
mov ebx, 0x22c
call fcn.0044e880
add esp, 0x10
push 0x80000301
push 0
push 2
push reloc.WSOCK32.dll_bind
push 0
push 0
push reloc.WSOCK32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402346
mov eax, 0x499305
push eax
push 3
mov ebx, 0x2c0
call fcn.0044e890
add esp, 0x28
jmp 0x402487
mov dword [ebp - 0xc], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x402382
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x402421
call fcn.0040205e
mov dword [ebp - 0xc], eax
call fcn.00402133
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4023c5
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4023d5
push ebx
call fcn.0044dbce
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4023ea
mov eax, 0x499305
push eax
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4023fe
mov eax, 0x499305
push eax
push 2
mov ebx, 0x23c
call fcn.0044e330
add esp, 0x1c
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x402421
push ebx
call fcn.0044dbce
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x402434
mov eax, 0x499305
push eax
push 1
mov ebx, 0x22c
call fcn.0044e880
add esp, 0x10
push 0x80000301
push 0
push 2
push reloc.WSOCK32.dll_bind
push 0
push 0
push reloc.WSOCK32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402474
mov eax, 0x499305
push eax
push 3
mov ebx, 0x2c0
call fcn.0044e890
add esp, 0x28
call fcn.00402570
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40249c
push ebx
call fcn.0044dbce
add esp, 4
mov esp, ebp
pop ebp
ret 4