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

Disassembly:
push 0xffffffffffffffff
push 0x48492b
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 0x49500b
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
call fcn.00401fa0
mov dword [esp + 0x870], 0
cmp byte [esi], 0
je 0x403552
lea esi, [esp + 0x75c]
call fcn.00408390
lea edi, [esp + 0x234]
call fcn.00408460
lea esi, [esp + 0x12c]
call fcn.00408500
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.00408320
lea edi, [esp + 0x54c]
call fcn.004085d0
mov ebp, dword [esp + 0x878]
test ebp, ebp
jle 0x4034db
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 0x4034ca
cmp byte [esp + 0x87c], 1
jne 0x40335d
cmp byte [esi + 4], 1
jne 0x4034ca
jmp 0x403367
cmp byte [esi + 4], 1
je 0x4034ca
push 0x104
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.0043abe0
mov eax, dword [esi]
add esp, 0xc
test eax, eax
jne 0x4033a1
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 0x403470
cmp eax, 8
jne 0x4033c6
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 0x403470
cmp eax, 1
jne 0x403400
lea ecx, [esp + 0x12c]
push ecx
lea edx, [esp + 0x28]
push edx
call ebx
mov ecx, dword [0x4c2610]
push 0
add ecx, 0xc
call fcn.004023a0
push eax
lea eax, [esp + 0x28]
push eax
call edi
lea ecx, [esi - 0x104]
push ecx
lea edx, [esp + 0x28]
push edx
jmp 0x403470
cmp eax, 6
jne 0x40342e
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x28]
push ecx
call ebx
mov ecx, dword [0x4c2610]
push 0
add ecx, 8
call fcn.004023a0
push eax
lea edx, [esp + 0x28]
push edx
call edi
jmp 0x403464
cmp eax, 2
jne 0x40343f
lea edx, [esp + 0x12c]
jmp 0x403388
cmp eax, 7
jne 0x403450
lea eax, [esp + 0x33c]
jmp 0x4033ad
cmp eax, 3
jne 0x403472
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 0x4034c6
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push 0x495114
push ecx
call fcn.004020e0
mov eax, dword [esp + 0x20]
add esp, 8
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov ebp, esp
push eax
call fcn.004025a0
add eax, 0x10
add esp, 4
mov dword [ebp], eax
call fcn.0040b570
mov ebp, dword [esp + 0x878]
mov byte [esi + 5], 0
jmp 0x4034ca
mov byte [esi + 5], 1
add esi, 0x31c
sub dword [esp + 0x1c], 1
jne 0x40333d
xor ecx, ecx
test ebp, ebp
jle 0x403552
mov eax, dword [esp + 0x18]
add eax, 0x108
lea ebx, [ebx]
cmp byte [eax + 2], 1
jne 0x403548
cmp byte [esp + 0x87c], 1
jne 0x40353d
cmp byte [eax], 1
jne 0x403548
cmp byte [eax + 1], 0
jne 0x403548
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 0x403536
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 2
jmp 0x40357f
cmp byte [eax], 1
je 0x403548
cmp byte [eax + 1], 0
je 0x4035a9
inc ecx
add eax, 0x31c
cmp ecx, ebp
jl 0x4034f0
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 0x40357d
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.0043675a
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 0x4035d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40357f