Function at 0x412660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ba2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 7
call fcn.00439570
cmp dword [ebp + 0x7c], 0x10
lea esi, [ebp + 0x68]
mov edi, eax
lea eax, [ebp - 0x10]
cmovae esi, dword [ebp + 0x68]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.0043aaa6
add esp, 0xc
cmp esi, dword [ebp - 0x10]
je 0x412c42
cmp dword [edi], 0x22
je 0x412c38
cmp eax, 3
ja case.default.0x4126df
jmp dword [eax*4 + 0x412c54]
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.00419ff0
sub esp, 0x18
mov byte [ebp - 4], 8
lea eax, [ebp + 0x38]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00419ff0
sub esp, 0x18
mov byte [ebp - 4], 9
lea eax, [ebp + 0x50]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.00419ff0
sub esp, 0x18
mov byte [ebp - 4], 0xa
mov ecx, esp
call fcn.004081e0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 7
call fcn.00410340
add esp, 0x60
lea ecx, [ebp - 0x34]
push eax
call fcn.00419e50
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb case.default.0x4126df
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4128b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c4c
jmp 0x4128b6
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00419ff0
sub esp, 0x18
mov byte [ebp - 4], 0xb
lea eax, [ebp + 0x38]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.00419ff0
sub esp, 0x18
mov byte [ebp - 4], 0xc
lea eax, [ebp + 0x50]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00419ff0
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov esi, esp
lea eax, [ebp - 0x154]
mov dword [ebp - 0x10], esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x154]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [esi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4127f7
sub ecx, edx
lea eax, [ebp - 0x154]
push ecx
push eax
mov ecx, esi
call fcn.0041a7c0
jmp 0x412732
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00419ff0
sub esp, 0x18
mov byte [ebp - 4], 0xe
lea eax, [ebp + 0x38]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.00419ff0
sub esp, 0x18
mov byte [ebp - 4], 0xf
lea eax, [ebp + 0x50]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00419ff0
sub esp, 0x18
mov byte [ebp - 4], 0x10
mov ecx, esp
call fcn.00408440
jmp 0x412732
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00419ff0
sub esp, 0x18
mov byte [ebp - 4], 0x11
lea eax, [ebp + 0x38]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.00419ff0
sub esp, 0x18
mov byte [ebp - 4], 0x12
lea eax, [ebp + 0x50]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00419ff0
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
call fcn.00408310
jmp 0x412732
push edx
push ecx
call fcn.0041f5bc
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x34]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00419ff0
sub esp, 0x18
mov byte [ebp - 4], 0x14
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00419ff0
mov byte [ebp - 4], 7
call fcn.0040b880
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
push 0x459f18
cmovae eax, dword [ebp - 0x34]
push eax
call fcn.00438786
add esp, 0x38
test eax, eax
je 0x412980
push eax
call fcn.00438814
sub esp, 0x14
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.00419ff0
call fcn.00406ed0
mov dword [ebp - 0x14], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x463e48
call fcn.00419ff0
mov ecx, esi
call fcn.00405210
mov byte [ebp - 4], 0x15
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x463dd0
call fcn.00419ff0
sub esp, 0x18
mov byte [ebp - 4], 0x16
lea eax, [ebp + 0x50]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00419ff0
sub esp, 0x18
mov byte [ebp - 4], 0x17
lea eax, [ebp + 0x20]
mov dword [ebp - 0x10], esp
mov ecx, esp
push eax
call fcn.00419ff0
mov byte [ebp - 4], 0x18
jmp 0x4129df
sub esp, 0x18
mov dword [ebp - 0x38], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x464490
call fcn.00419ff0
mov ecx, esi
call fcn.00405210
mov byte [ebp - 4], 0x19
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x463dd0
call fcn.00419ff0
sub esp, 0x18
mov byte [ebp - 4], 0x1a
lea eax, [ebp + 0x50]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.00419ff0
sub esp, 0x18
mov byte [ebp - 4], 0x1b
lea eax, [ebp + 0x20]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00419ff0
mov byte [ebp - 4], 0x1c
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00419ff0
mov byte [ebp - 4], 7
call fcn.0040fdb0
mov edx, dword [ebp - 0x20]
add esp, 0x78
cmp edx, 0x10
jb 0x412a2d
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412a23
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c4c
push edx
push ecx
call fcn.0041f5bc
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp edx, 0x10
jb 0x412a73
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412a69
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c4c
push edx
push ecx
call fcn.0041f5bc
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x412ab9
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412aaf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c4c
push edx
push ecx
call fcn.0041f5bc
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x412aff
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412af5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c4c
push edx
push ecx
call fcn.0041f5bc
add esp, 8
mov edx, dword [ebp + 0x64]
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0xf
mov byte [ebp + 0x38], 0
cmp edx, 0x10
jb 0x412b45
mov ecx, dword [ebp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412b3b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c4c
push edx
push ecx
call fcn.0041f5bc
add esp, 8
mov edx, dword [ebp + 0x7c]
mov dword [ebp + 0x60], 0
mov dword [ebp + 0x64], 0xf
mov byte [ebp + 0x50], 0
cmp edx, 0x10
jb 0x412b8b
mov ecx, dword [ebp + 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412b81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c4c
push edx
push ecx
call fcn.0041f5bc
add esp, 8
mov edx, dword [ebp + 0x94]
mov dword [ebp + 0x78], 0
mov dword [ebp + 0x7c], 0xf
mov byte [ebp + 0x68], 0
cmp edx, 0x10
jb 0x412bd7
mov ecx, dword [ebp + 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412bcd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c4c
push edx
push ecx
call fcn.0041f5bc
add esp, 8
mov edx, dword [ebp + 0xac]
mov dword [ebp + 0x90], 0
mov dword [ebp + 0x94], 0xf
mov byte [ebp + 0x80], 0
cmp edx, 0x10
jb 0x412c28
mov ecx, dword [ebp + 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412c1e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412c4c
push edx
push ecx
call fcn.0041f5bc
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
push str.stoi_argument_out_of_range
call fcn.0041e339
push str.invalid_stoi_argument
call fcn.0041e2f9
call fcn.00438cc7
nop dword [eax]
out 0x26, al
inc ecx
add byte [ecx + 0x14004127], al
sub byte [ecx], al
sub byte gs:[ecx], al
int3