Function at 0x401470
Capabilities:
Get common file path

Disassembly:
sub esp, 0x310
lea eax, [esp + 0x108]
push ebx
push ebp
push esi
push edi
push eax
mov ebx, ecx
push 0x100
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x120]
push 0x4190cc
push edx
call esi
lea eax, [esp + 0x21c]
lea ecx, [esp + 0x118]
push eax
push 1
push 0x4190c8
push ecx
call esi
mov edi, str..exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x21c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x4190b4]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040322d
lea ecx, [ebx + 4]
push 0x4190bc
push ecx
mov dword [ebx + 0x20c], eax
call fcn.0040321a
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x401565
mov edx, dword [ebx + 0x20c]
push edx
call fcn.004031a1
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret
lea eax, [esp + 0x14]
push 0x4190b8
push eax
call fcn.0040321a
mov edi, eax
add esp, 8
test edi, edi
jne 0x401597
mov ecx, dword [ebx + 0x20c]
push ecx
call fcn.004031a1
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret
mov edx, dword [0x4190b4]
push 0
push edx
push esi
call fcn.004030e8
push esi
push 1
push 4
push ebx
call fcn.00402fd1
add esp, 0x1c
test eax, eax
jne 0x4015d2
mov eax, dword [ebx + 0x20c]
push eax
call fcn.004031a1
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret
push esi
push 1
lea ecx, [esp + 0x18]
push 4
push ecx
call fcn.00402fd1
add esp, 0x10
test eax, eax
jne 0x401602
mov edx, dword [ebx + 0x20c]
push edx
call fcn.004031a1
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret
mov eax, dword [ebx + 0x20c]
push esi
push 4
push 1
push eax
call fcn.00402fd1
add esp, 0x10
test eax, eax
je 0x401651
mov ecx, dword [ebx]
lea edx, [eax + ebp]
cmp edx, ecx
jle 0x401627
sub ecx, ebp
mov eax, ecx
push edi
push eax
mov eax, dword [ebx + 0x20c]
push 1
push eax
call fcn.00402e98
mov ecx, dword [ebx + 0x20c]
push esi
push 4
push 1
push ecx
add ebp, eax
call fcn.00402fd1
add esp, 0x20
test eax, eax
jne 0x40161a
push edi
call fcn.00402e1b
lea edx, [esp + 0x220]
push 0x4190b8
push edx
xor ebp, ebp
call fcn.0040321a
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40168e
mov eax, dword [ebx + 0x20c]
push eax
call fcn.004031a1
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret
mov ecx, dword [ebx]
mov edx, dword [0x4190b4]
push 0
lea eax, [ecx + edx + 8]
push eax
push esi
call fcn.004030e8
mov ecx, dword [ebx + 0x20c]
push esi
push 4
push 1
push ecx
call fcn.00402fd1
add esp, 0x1c
test eax, eax
je 0x4016e5
mov edx, dword [ebx + 0x20c]
push edi
push eax
push 1
push edx
call fcn.00402e98
add ebp, eax
mov eax, dword [ebx + 0x20c]
push esi
push 4
push 1
push eax
call fcn.00402fd1
add esp, 0x20
test eax, eax
jne 0x4016bb
push edi
call fcn.00402e1b
push esi
call fcn.00402e1b
add esp, 8
test ebp, ebp
jne 0x401712
mov ecx, dword [ebx + 0x20c]
push ecx
call fcn.004031a1
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret
mov edx, dword [ebx + 0x20c]
push edx
call fcn.004031a1
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x401742
lea eax, [esp + 0x14]
push 0
push eax
mov ecx, ebx
call fcn.00401400
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret
lea ecx, [esp + 0x14]
push 1
push ecx
mov ecx, ebx
call fcn.00401400
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret