Function at 0x4051ee
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call fcn.0040205e
mov dword [ebp - 0xc], eax
push str.BACKC3.WMV
push dword [ebp - 0xc]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405235
push ebx
call fcn.0044dbce
add esp, 4
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x405257
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40526a
push ebx
call fcn.0044dbce
add esp, 4
cmp dword [ebp - 0x18], 1
je 0x4052e7
call fcn.0040205e
mov dword [ebp - 0x20], eax
push str.BACK2C3.WMV
push dword [ebp - 0x20]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4052a4
push ebx
call fcn.0044dbce
add esp, 4
mov dword [ebp - 0x28], esp
push dword [ebp - 0x24]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x4052c6
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4052d9
push ebx
call fcn.0044dbce
add esp, 4
cmp dword [ebp - 0x2c], 1
je 0x4052e7
xor eax, eax
jmp 0x4052ec
mov eax, 1
test eax, eax
je 0x405508
mov dword [ebp - 0xc], esp
push str..BACKC3.WMV
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x405318
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jne 0x4053df
call fcn.0040205e
mov dword [ebp - 0xc], eax
push str.BACKC3.WMV
push dword [ebp - 0xc]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405355
push ebx
call fcn.0044dbce
add esp, 4
call fcn.0040205e
mov dword [ebp - 0x14], eax
push str.c3.Dnp
push dword [ebp - 0x14]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x405385
push ebx
call fcn.0044dbce
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x405398
mov eax, 0x499305
push eax
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4053ac
mov eax, 0x499305
push eax
push 2
mov ebx, 0x240
call fcn.00450840
add esp, 0x1c
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4053cf
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4053df
push ebx
call fcn.0044dbce
add esp, 4
call fcn.0040205e
mov dword [ebp - 0xc], eax
push str.BACK2C3.WMV
push dword [ebp - 0xc]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40540f
push ebx
call fcn.0044dbce
add esp, 4
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x405431
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x405444
push ebx
call fcn.0044dbce
add esp, 4
cmp dword [ebp - 0x18], 1
jne 0x405508
call fcn.0040205e
mov dword [ebp - 0xc], eax
push str.BACK2C3.WMV
push dword [ebp - 0xc]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40547e
push ebx
call fcn.0044dbce
add esp, 4
call fcn.0040205e
mov dword [ebp - 0x14], eax
push str.c3.Dnp
push dword [ebp - 0x14]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4054ae
push ebx
call fcn.0044dbce
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4054c1
mov eax, 0x499305
push eax
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4054d5
mov eax, 0x499305
push eax
push 2
mov ebx, 0x240
call fcn.00450840
add esp, 0x1c
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4054f8
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x405508
push ebx
call fcn.0044dbce
add esp, 4
call fcn.0040205e
mov dword [ebp - 0xc], eax
push str.c3.Dnp
push dword [ebp - 0xc]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405538
push ebx
call fcn.0044dbce
add esp, 4
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40555a
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40556d
push ebx
call fcn.0044dbce
add esp, 4
cmp dword [ebp - 0x18], 1
jne 0x405668
call fcn.0040205e
mov dword [ebp - 0xc], eax
push str.c3.Dnp
push dword [ebp - 0xc]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4055a7
push ebx
call fcn.0044dbce
add esp, 4
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 2
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4055d2
mov eax, 0x499305
push eax
push 3
mov ebx, 0x270
call fcn.0044e790
add esp, 0x28
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4055f8
push ebx
call fcn.0044dbce
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405668
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x28c
call fcn.00450aa0
add esp, 0x10
push reloc.WSOCK32.dll_getpeername
push 0
push 0x4997bc
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x298
call fcn.00450b00
add esp, 0x1c
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x278
call fcn.0044e870
add esp, 0x10
call fcn.0040205e
mov dword [ebp - 0xc], eax
push str.data.Dnp
push dword [ebp - 0xc]
mov ecx, 2
call fcn.0040119e
add esp, 8
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x405698
push ebx
call fcn.0044dbce
add esp, 4
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 2
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4056c3
mov eax, 0x499305
push eax
push 3
mov ebx, 0x270
call fcn.0044e790
add esp, 0x28
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4056e9
push ebx
call fcn.0044dbce
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405759
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x28c
call fcn.00450aa0
add esp, 0x10
push reloc.WSOCK32.dll_getpeername
push 0
push 0x4a5b14
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0x298
call fcn.00450b00
add esp, 0x1c
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x278
call fcn.0044e870
add esp, 0x10
mov esp, ebp
pop ebp
ret