Function at 0x412376
Capabilities:
Get common file path

Disassembly:
mov eax, 0x422c3e
call fcn.00414d1c
sub esp, 0x138
push ebx
xor ebx, ebx
push ebp
mov dword [esp + 0x20], ebx
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
mov dword [esp + 0x150], 1
mov esi, dword [esp + 0x160]
push 0x10
pop ebp
test esi, esi
jne 0x41242c
lea eax, [esp + 0x44]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4123fa
cmp byte [esp + 0x44], 0
jne 0x4123e0
mov eax, ebx
jmp 0x4123eb
lea eax, [esp + 0x44]
push eax
call fcn.00414490
pop ecx
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x18]
call fcn.004021fe
cmp dword [esp + 0x24], ebp
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push 1
push eax
call fcn.00411929
pop ecx
pop ecx
test al, al
jne 0x41243e
push dword [esp + 0x164]
call fcn.00402653
pop ecx
push eax
push dword [esp + 0x168]
jmp 0x412435
push esi
call fcn.00402653
pop ecx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.004021fe
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x41247b
cmp dword [esp + 0x24], ebp
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
cmp byte [eax + ecx - 1], 0x5c
je 0x41247b
cmp dword [esp + 0x24], ebp
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
cmp byte [eax + ecx - 1], 0x2f
je 0x41247b
push 0x5c
push 1
lea ecx, [esp + 0x18]
call fcn.00404eda
cmp dword [esp + 0x24], ebp
lea edi, [esp + 0x10]
cmovae edi, dword [esp + 0x10]
call fcn.00417072
mov esi, eax
shl esi, 0x10
call fcn.00417072
or eax, esi
push eax
push edi
lea eax, [esp + 0x34]
push str._spl_08x.ftf
push eax
call fcn.004078b1
add esp, 0x10
mov byte [esp + 0x150], 2
mov eax, dword [0x42f1f8]
mov ecx, eax
not ecx
and ecx, 0x2b2
neg ecx
sbb ecx, ecx
add eax, eax
neg ecx
or eax, ecx
mov dword [0x42f1f8], eax
mov eax, dword [0x42f1fc]
test eax, eax
jne 0x4124f5
push 0x145
mov eax, 0x426364
push eax
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x42f1fc]
inc eax
mov ecx, 0x199
cmove eax, ecx
cmp dword [esp + 0x40], ebp
mov dword [0x42f1fc], eax
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
call fcn.00412d18
pop ecx
mov ecx, dword [0x43069c]
lea eax, [ecx + 0x60]
push eax
push 1
call fcn.004049a8
cmp dword [eax], 0
je 0x412561
mov ecx, dword [0x43069c]
cmp dword [esp + 0x40], ebp
lea eax, [ecx + 0x60]
push eax
lea esi, [esp + 0x30]
cmovae esi, dword [esp + 0x30]
push 1
call fcn.004049a8
xor ecx, ecx
push ecx
push 0x80
push 1
push ecx
push ecx
push 0xc0000000
push esi
call dword [eax]
jmp 0x412563
xor eax, eax
cmp eax, 0xffffffff
jne 0x4125b7
mov byte [esp + 0x150], 1
lea ecx, [esp + 0x2c]
call fcn.0040150a
inc ebx
cmp ebx, 0x200
jl 0x41247b
mov esi, dword [esp + 0x15c]
xor eax, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov byte [esi], al
mov dword [esp + 0x28], 1
mov byte [esp + 0x150], al
lea ecx, [esp + 0x10]
call fcn.0040150a
mov eax, esi
jmp 0x412600
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x15c]
lea eax, [esp + 0x2c]
push eax
call fcn.0040a83f
mov dword [esp + 0x28], 1
mov byte [esp + 0x150], 1
lea ecx, [esp + 0x2c]
call fcn.0040150a
mov byte [esp + 0x150], 0
lea ecx, [esp + 0x10]
call fcn.0040150a
mov eax, dword [esp + 0x15c]
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret