Function at 0x403260
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4848db
mov eax, dword fs:[0]
push eax
sub esp, 0x854
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x850], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a55d0]
xor eax, esp
push eax
lea eax, [esp + 0x868]
mov dword fs:[0], eax
mov esi, ecx
push 0x494ffb
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
call fcn.00401fb0
mov dword [esp + 0x870], 0
cmp byte [esi], 0
je 0x403562
lea esi, [esp + 0x75c]
call fcn.00408260
lea edi, [esp + 0x234]
call fcn.00408330
lea esi, [esp + 0x12c]
call fcn.004083d0
push 0x104
lea ecx, [esp + 0x658]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x654]
push edx
lea eax, [esp + 0x448]
push eax
call ebx
lea esi, [esp + 0x33c]
call fcn.004081f0
lea edi, [esp + 0x54c]
call fcn.004084a0
mov ebp, dword [esp + 0x878]
test ebp, ebp
jle 0x4034eb
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esi, 0x104
mov dword [esp + 0x1c], ebp
cmp byte [esi + 6], 1
jne 0x4034da
cmp byte [esp + 0x87c], 1
jne 0x40336d
cmp byte [esi + 4], 1
jne 0x4034da
jmp 0x403377
cmp byte [esi + 4], 1
je 0x4034da
push 0x104
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.0043aba0
mov eax, dword [esi]
add esp, 0xc
test eax, eax
jne 0x4033b1
lea edx, [esp + 0x444]
push edx
lea eax, [esp + 0x28]
push eax
call ebx
lea ecx, [esi - 0x104]
push ecx
lea edx, [esp + 0x28]
push edx
jmp 0x403480
cmp eax, 8
jne 0x4033d6
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x28]
push ecx
call ebx
lea edx, [esi - 0x104]
push edx
lea eax, [esp + 0x28]
push eax
jmp 0x403480
cmp eax, 1
jne 0x403410
lea ecx, [esp + 0x12c]
push ecx
lea edx, [esp + 0x28]
push edx
call ebx
mov ecx, dword [0x4c0610]
push 0
add ecx, 0xc
call fcn.004023b0
push eax
lea eax, [esp + 0x28]
push eax
call edi
lea ecx, [esi - 0x104]
push ecx
lea edx, [esp + 0x28]
push edx
jmp 0x403480
cmp eax, 6
jne 0x40343e
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x28]
push ecx
call ebx
mov ecx, dword [0x4c0610]
push 0
add ecx, 8
call fcn.004023b0
push eax
lea edx, [esp + 0x28]
push edx
call edi
jmp 0x403474
cmp eax, 2
jne 0x40344f
lea edx, [esp + 0x12c]
jmp 0x403398
cmp eax, 7
jne 0x403460
lea eax, [esp + 0x33c]
jmp 0x4033bd
cmp eax, 3
jne 0x403482
lea ecx, [esp + 0x54c]
push ecx
lea edx, [esp + 0x28]
push edx
call ebx
lea eax, [esi - 0x104]
push eax
lea ecx, [esp + 0x28]
push ecx
call edi
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4034d6
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push 0x495104
push ecx
call fcn.004020f0
mov eax, dword [esp + 0x20]
add esp, 8
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov ebp, esp
push eax
call fcn.004025b0
add eax, 0x10
add esp, 4
mov dword [ebp], eax
call fcn.0040b450
mov ebp, dword [esp + 0x878]
mov byte [esi + 5], 0
jmp 0x4034da
mov byte [esi + 5], 1
add esi, 0x31c
sub dword [esp + 0x1c], 1
jne 0x40334d
xor ecx, ecx
test ebp, ebp
jle 0x403562
mov eax, dword [esp + 0x18]
add eax, 0x108
lea ebx, [ebx]
cmp byte [eax + 2], 1
jne 0x403558
cmp byte [esp + 0x87c], 1
jne 0x40354d
cmp byte [eax], 1
jne 0x403558
cmp byte [eax + 1], 0
jne 0x403558
mov dword [esp + 0x870], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403546
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
jmp 0x40358f
cmp byte [eax], 1
je 0x403558
cmp byte [eax + 1], 0
je 0x4035b9
inc ecx
add eax, 0x31c
cmp ecx, ebp
jl 0x403500
mov dword [esp + 0x870], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40358d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x868]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x850]
xor ecx, esp
call fcn.0043671a
add esp, 0x860
ret 8
mov dword [esp + 0x870], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4035e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40358f