Function at 0x41367c
Capabilities:
Get common file path

Disassembly:
mov eax, 0x423c13
call fcn.00415c8c
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 0x413732
lea eax, [esp + 0x44]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x413700
cmp byte [esp + 0x44], 0
jne 0x4136e6
mov eax, ebx
jmp 0x4136f1
lea eax, [esp + 0x44]
push eax
call fcn.00415400
pop ecx
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x18]
call fcn.004022e2
cmp dword [esp + 0x24], ebp
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push 1
push eax
call fcn.004129fc
pop ecx
pop ecx
test al, al
jne 0x413744
push dword [esp + 0x164]
call fcn.0040276c
pop ecx
push eax
push dword [esp + 0x168]
jmp 0x41373b
push esi
call fcn.0040276c
pop ecx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.004022e2
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x413781
cmp dword [esp + 0x24], ebp
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
cmp byte [eax + ecx - 1], 0x5c
je 0x413781
cmp dword [esp + 0x24], ebp
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
cmp byte [eax + ecx - 1], 0x2f
je 0x413781
push 0x5c
push 1
lea ecx, [esp + 0x18]
call fcn.004053cd
cmp dword [esp + 0x24], ebp
lea edi, [esp + 0x10]
cmovae edi, dword [esp + 0x10]
call fcn.00417fe2
mov esi, eax
shl esi, 0x10
call fcn.00417fe2
or eax, esi
push eax
push edi
lea eax, [esp + 0x34]
push str._spl_08x.ftf
push eax
call fcn.0040813e
mov byte [esp + 0x160], 2
cmp dword [esp + 0x50], ebp
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
push eax
call fcn.00413f4c
mov ecx, dword [0x4301fc]
mov edx, dword [0x4301f8]
or ecx, 0x19
add esp, 0x14
inc ecx
mov eax, 0x135
cmove ecx, eax
mov eax, edx
not eax
mov edi, 0x3b9
and eax, edi
neg eax
sbb eax, eax
mov esi, 0x80000000
and eax, esi
add eax, esi
shr edx, 1
or edx, eax
shl ecx, 0x18
or ecx, 1
lea eax, [edi - 0x51]
cmp ecx, eax
cmove ecx, eax
mov eax, 0x1cc
cmp ecx, eax
cmove ecx, eax
mov eax, edx
not eax
and eax, edi
neg eax
sbb eax, eax
and eax, esi
add eax, esi
shr edx, 1
or edx, eax
mov eax, edx
not eax
and eax, edi
neg eax
sbb eax, eax
and eax, esi
add eax, esi
shr edx, 1
or edx, eax
mov eax, edx
not eax
and eax, edi
shl ecx, 0x13
or ecx, 0x19280001
neg eax
sbb eax, eax
and eax, esi
mov dword [0x4301fc], ecx
mov ecx, dword [0x4316a8]
add eax, esi
shr edx, 1
or edx, eax
lea eax, [ecx + 0x164]
mov dword [0x4301f8], edx
push eax
push 1
call fcn.0040fb3c
cmp dword [eax], 0
je 0x4138b5
mov ecx, dword [0x4316a8]
cmp dword [esp + 0x40], ebp
lea eax, [ecx + 0x164]
push eax
lea esi, [esp + 0x30]
cmovae esi, dword [esp + 0x30]
push 1
call fcn.0040fb3c
xor ecx, ecx
push ecx
push 0x80
push 1
push ecx
push ecx
push 0xc0000000
push esi
call dword [eax]
jmp 0x4138b7
xor eax, eax
cmp eax, 0xffffffff
jne 0x41390b
mov byte [esp + 0x150], 1
lea ecx, [esp + 0x2c]
call fcn.00401530
inc ebx
cmp ebx, 0x200
jl 0x413781
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.00401530
mov eax, esi
jmp 0x413954
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x15c]
lea eax, [esp + 0x2c]
push eax
call fcn.0040b325
mov dword [esp + 0x28], 1
mov byte [esp + 0x150], 1
lea ecx, [esp + 0x2c]
call fcn.00401530
mov byte [esp + 0x150], 0
lea ecx, [esp + 0x10]
call fcn.00401530
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