Function at 0x403790
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4837d3
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a30f8]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x234]
lea ebx, [esp + 0x238]
mov dword [esp + 0x22c], 0
call fcn.00407490
push 1
push 0x4915c8
mov eax, ebx
push eax
call fcn.004081f0
mov ecx, dword [esp + 0x238]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x40383f
mov dword [esp + 0x22c], 0xffffffff
mov eax, dword [esp + 0x238]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403838
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x403982
mov ecx, dword [esp + 0x238]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
jne 0x40380a
mov ecx, dword [esp + 0x238]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
jne 0x40380a
mov ecx, dword [esp + 0x238]
mov eax, dword [ecx - 0xc]
xor edi, edi
test eax, eax
jle 0x403956
test edi, edi
jl 0x403a13
cmp edi, eax
jg 0x403a13
movzx eax, word [ecx + edi*2]
cmp ax, 0x5c
jne 0x40394a
mov eax, edi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x238]
call fcn.00407510
mov byte [esp + 0x22c], 1
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40391f
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x4039ac
push esi
call fcn.0042bbd0
add esp, 4
lea eax, [esp + 0x14]
mov ebx, ebp
call fcn.004077d0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x22]
push edx
mov word [esp + 0x24], cx
call fcn.00461880
push 0x104
lea eax, [esp + 0x28]
push esi
push eax
call fcn.00462e65
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.00462130
add esp, 0x20
test eax, eax
jne 0x4039f7
lea eax, [esi - 0x10]
mov byte [esp + 0x22c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403943
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x238]
mov eax, dword [ecx - 0xc]
inc edi
cmp edi, eax
jl 0x403877
lea eax, [ecx - 0x10]
mov dword [esp + 0x22c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40397d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00461862
add esp, 0x21c
ret 8
lea eax, [esi - 0x10]
mov byte [esp + 0x22c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4039d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x22c], 0xffffffff
mov eax, dword [esp + 0x238]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40382c
lea ecx, [esp + 0x14]
call fcn.00401df0
lea ecx, [esp + 0x238]
call fcn.00401df0
xor eax, eax
jmp 0x403982
push 0x80070057
call fcn.00402210
int3