Function at 0x40c960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
push ebx
push esi
push edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
call fcn.00417340
cmp dword [ebp + 0x7c], 0x10
lea esi, [ebp + 0x68]
mov edi, eax
lea eax, [ebp - 4]
cmovae esi, dword [ebp + 0x68]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.00418800
add esp, 0xc
cmp esi, dword [ebp - 4]
je 0x40d176
cmp dword [edi], 0x22
je 0x40d1a3
cmp eax, 3
ja case.default.0x40c9c0
jmp dword [eax*4 + 0x40d1b4]
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
mov ecx, esp
call fcn.00404f50
lea ecx, [ebp - 0x20]
call fcn.0040b4c0
add esp, 0x60
lea ecx, [ebp - 0x38]
push eax
call fcn.00412ca0
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb case.default.0x40c9c0
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cbfe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d180
jmp 0x40cbfe
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
lea eax, [ebp - 0x170]
mov esi, esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x170]
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 0x40caa7
sub ecx, edx
lea eax, [ebp - 0x170]
push ecx
push eax
mov ecx, esi
call fcn.004131b0
lea ecx, [ebp - 0x20]
call fcn.0040b4c0
add esp, 0x60
lea ecx, [ebp - 0x38]
push eax
call fcn.00412ca0
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb case.default.0x40c9c0
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cbfe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d185
jmp 0x40cbfe
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
mov ecx, esp
call fcn.00405150
lea ecx, [ebp - 0x20]
call fcn.0040b4c0
add esp, 0x60
lea ecx, [ebp - 0x38]
push eax
call fcn.00412ca0
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb case.default.0x40c9c0
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cbfe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d18a
jmp 0x40cbfe
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
mov ecx, esp
call fcn.00405050
lea ecx, [ebp - 0x20]
call fcn.0040b4c0
add esp, 0x60
lea ecx, [ebp - 0x38]
push eax
call fcn.00412ca0
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb case.default.0x40c9c0
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cbfe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d18f
push edx
push ecx
call fcn.004142b0
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x38]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00412e40
call fcn.00407950
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x38]
push 0x432a00
cmovae eax, dword [ebp - 0x38]
push eax
call fcn.004166bc
add esp, 0x38
test eax, eax
je 0x40ce3d
push eax
call fcn.0041674a
add esp, 4
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x20]
push eax
call fcn.00412e40
cmp dword [ebp - 0xc], 0x10
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
call fcn.004172bc
mov edx, dword [ebp - 0xc]
or ebx, 0xffffffff
add esp, 8
test eax, eax
cmove ebx, dword [ebp - 0x54]
cmp edx, 0x10
jb 0x40ccb4
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ccaa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d194
push edx
push ecx
call fcn.004142b0
add esp, 8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0xf
mov byte [ebp - 0x20], 0
call fcn.00417340
cmp dword [ebp + 0xc4], 0x10
lea esi, [ebp + 0xb0]
mov edi, eax
lea eax, [ebp - 4]
cmovae esi, dword [ebp + 0xb0]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.00418800
add esp, 0xc
cmp esi, dword [ebp - 4]
je 0x40d199
cmp dword [edi], 0x22
je 0x40d1a3
cmp ebx, eax
jle 0x40ce3d
sub esp, 0x18
mov ecx, esp
push 0
push 0x431e4b
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
call fcn.004131b0
sub esp, 0x18
lea eax, [ebp - 0x38]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
lea eax, [ebp + 0x80]
mov ecx, esp
push eax
call fcn.00412e40
call fcn.004038f0
add esp, 0x48
sub esp, 0x18
mov esi, esp
sub esp, 0x18
cmp dword [0x43734c], 0x2a
mov ecx, esp
jne 0x40ce36
push 0x435da4
call fcn.00412e40
mov ecx, esi
call fcn.00402b70
mov ecx, esp
push 0x435d2c
call fcn.00412e40
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00412e40
call fcn.0040af30
add esp, 0x78
lea eax, [ebp + 0xc8]
cmp dword [ebp + 0xdc], 0x10
cmovae eax, dword [ebp + 0xc8]
cmp dword [ebp + 0xd8], 1
jne 0x40ce96
cmp byte [eax], 0x31
jne 0x40ce96
sub esp, 0x18
lea eax, [ebp - 0x38]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
lea eax, [ebp - 0x38]
mov esi, esp
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00412e40
mov ecx, esi
call fcn.00404a70
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x43593c
call fcn.00412e40
mov ecx, esi
call fcn.00402b70
add esp, 0x18
call fcn.00402db0
add esp, 0x48
jmp 0x40ce96
push 0x4365b4
jmp 0x40ce4c
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x4363d4
call fcn.00412e40
mov ecx, esi
call fcn.00402b70
mov ecx, esp
push 0x435d2c
call fcn.00412e40
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.00412e40
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00412e40
call fcn.0040af30
add esp, 0x78
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb 0x40ceca
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cec0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d1ad
push edx
push ecx
call fcn.004142b0
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp edx, 0x10
jb 0x40cf10
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cf06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d1ad
push edx
push ecx
call fcn.004142b0
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 0x40cf56
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cf4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d1ad
push edx
push ecx
call fcn.004142b0
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 0x40cf9c
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cf92
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d1ad
push edx
push ecx
call fcn.004142b0
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 0x40cfe2
mov ecx, dword [ebp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cfd8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d1ad
push edx
push ecx
call fcn.004142b0
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 0x40d028
mov ecx, dword [ebp + 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d01e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d1ad
push edx
push ecx
call fcn.004142b0
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 0x40d074
mov ecx, dword [ebp + 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d06a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d1ad
push edx
push ecx
call fcn.004142b0
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 0x40d0c9
mov ecx, dword [ebp + 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d0bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d1ad
push edx
push ecx
call fcn.004142b0
add esp, 8
mov edx, dword [ebp + 0xc4]
mov dword [ebp + 0xa8], 0
mov dword [ebp + 0xac], 0xf
mov byte [ebp + 0x98], 0
cmp edx, 0x10
jb 0x40d11e
mov ecx, dword [ebp + 0xb0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d114
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d1ad
push edx
push ecx
call fcn.004142b0
add esp, 8
mov edx, dword [ebp + 0xdc]
mov dword [ebp + 0xc0], 0
mov dword [ebp + 0xc4], 0xf
mov byte [ebp + 0xb0], 0
cmp edx, 0x10
jb 0x40d16f
mov ecx, dword [ebp + 0xc8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d165
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d1ad
push edx
push ecx
call fcn.004142b0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.invalid_stoi_argument
call fcn.00413dea
call fcn.00418a24
call fcn.00418a24
call fcn.00418a24
call fcn.00418a24
call fcn.00418a24
push str.invalid_stoi_argument
call fcn.00413dea
push str.stoi_argument_out_of_range
call fcn.00413e2a
call fcn.00418a24
nop
invalid