Function at 0x403ba0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d5e3
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x5e8f64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x27c], ebx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0055dd90
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call edi
cmp word [ebp - 0x218], 0
jne 0x403c1d
xor ecx, ecx
jmp 0x403c35
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403c26
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
lea esi, [ebx + 0x1f4]
push eax
mov ecx, esi
call fcn.00404cf0
push ecx
mov edx, esi
lea ecx, [ebp - 0x278]
call fcn.00404a20
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00404af0
add esp, 4
mov ebx, eax
cmp esi, ebx
je 0x403cad
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x403c86
inc eax
push eax
push dword [esi]
call fcn.00405c00
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x403c9e
mov eax, dword [esi]
jmp 0x403ca0
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push ebx
call fcn.00405930
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x403cc5
inc eax
push eax
push dword [ebp - 0x230]
call fcn.00405c00
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x403d01
inc eax
push eax
push dword [ebp - 0x278]
call fcn.00405c00
cmp dword [esi + 0x14], 8
jb 0x403d0b
mov eax, dword [esi]
jmp 0x403d0d
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403e15
lea eax, [ebp - 0x218]
push eax
call edi
cmp word [ebp - 0x218], 0
jne 0x403d33
xor ecx, ecx
jmp 0x403d4f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403d40
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00404cf0
push ecx
mov edx, esi
lea ecx, [ebp - 0x278]
call fcn.00404a20
mov edx, eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x230]
call fcn.00404af0
add esp, 4
mov edi, eax
cmp esi, edi
je 0x403dc1
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x403d9a
inc eax
push eax
push dword [esi]
call fcn.00405c00
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x403db2
mov eax, dword [esi]
jmp 0x403db4
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00405930
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x403dd9
inc eax
push eax
push dword [ebp - 0x230]
call fcn.00405c00
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x403e15
inc eax
push eax
push dword [ebp - 0x278]
call fcn.00405c00
push 0xc
xor eax, eax
mov dword [ebp - 0x234], 7
push 0x5bc978
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
call fcn.00404cf0
mov esi, dword [ebp - 0x27c]
lea eax, [ebp - 0x248]
push eax
sub esp, 8
mov dword [ebp - 4], 4
lea eax, [ebp - 0x260]
mov ecx, esi
push eax
call fcn.00403990
mov edi, eax
add esi, 0x1dc
cmp esi, edi
je 0x403ead
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x403e86
inc eax
push eax
push dword [esi]
call fcn.00405c00
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x403e9e
mov eax, dword [esi]
jmp 0x403ea0
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00405930
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x403ec5
inc eax
push eax
push dword [ebp - 0x260]
call fcn.00405c00
xor eax, eax
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x250], 0
cmp eax, 8
jb 0x403efa
inc eax
push eax
push dword [ebp - 0x248]
call fcn.00405c00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055ab1b
mov esp, ebp
pop ebp
ret 4