Function at 0x40c890
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.00417210
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.004186d0
add esp, 0xc
cmp esi, dword [ebp - 4]
je 0x40d0a6
cmp dword [edi], 0x22
je 0x40d0d3
cmp eax, 3
ja case.default.0x40c8f0
jmp dword [eax*4 + 0x40d0e4]
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
mov ecx, esp
call fcn.00404f40
lea ecx, [ebp - 0x20]
call fcn.0040b3f0
add esp, 0x60
lea ecx, [ebp - 0x38]
push eax
call fcn.00412ac0
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb case.default.0x40c8f0
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cb2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d0b0
jmp 0x40cb2e
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00412c60
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 0x40c9d7
sub ecx, edx
lea eax, [ebp - 0x170]
push ecx
push eax
mov ecx, esi
call fcn.00412fd0
lea ecx, [ebp - 0x20]
call fcn.0040b3f0
add esp, 0x60
lea ecx, [ebp - 0x38]
push eax
call fcn.00412ac0
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb case.default.0x40c8f0
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cb2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d0b5
jmp 0x40cb2e
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
mov ecx, esp
call fcn.00405140
lea ecx, [ebp - 0x20]
call fcn.0040b3f0
add esp, 0x60
lea ecx, [ebp - 0x38]
push eax
call fcn.00412ac0
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb case.default.0x40c8f0
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cb2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d0ba
jmp 0x40cb2e
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
mov ecx, esp
call fcn.00405040
lea ecx, [ebp - 0x20]
call fcn.0040b3f0
add esp, 0x60
lea ecx, [ebp - 0x38]
push eax
call fcn.00412ac0
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb case.default.0x40c8f0
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cb2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d0bf
push edx
push ecx
call fcn.00414180
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x38]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00412c60
call fcn.004078f0
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x38]
push 0x432a08
cmovae eax, dword [ebp - 0x38]
push eax
call fcn.0041658c
add esp, 0x38
test eax, eax
je 0x40cd6d
push eax
call fcn.0041661a
add esp, 4
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x20]
push eax
call fcn.00412c60
cmp dword [ebp - 0xc], 0x10
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
call fcn.0041718c
mov edx, dword [ebp - 0xc]
or ebx, 0xffffffff
add esp, 8
test eax, eax
cmove ebx, dword [ebp - 0x54]
cmp edx, 0x10
jb 0x40cbe4
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cbda
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d0c4
push edx
push ecx
call fcn.00414180
add esp, 8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0xf
mov byte [ebp - 0x20], 0
call fcn.00417210
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.004186d0
add esp, 0xc
cmp esi, dword [ebp - 4]
je 0x40d0c9
cmp dword [edi], 0x22
je 0x40d0d3
cmp ebx, eax
jle 0x40cd6d
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.00412fd0
sub esp, 0x18
lea eax, [ebp - 0x38]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
lea eax, [ebp + 0x80]
mov ecx, esp
push eax
call fcn.00412c60
call fcn.004038e0
add esp, 0x48
sub esp, 0x18
mov esi, esp
sub esp, 0x18
cmp dword [0x43734c], 0x2a
mov ecx, esp
jne 0x40cd66
push 0x435da4
call fcn.00412c60
mov ecx, esi
call fcn.00402b70
mov ecx, esp
push 0x435d2c
call fcn.00412c60
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00412c60
call fcn.0040aed0
add esp, 0x78
lea eax, [ebp + 0xc8]
cmp dword [ebp + 0xdc], 0x10
cmovae eax, dword [ebp + 0xc8]
cmp dword [ebp + 0xd8], 1
jne 0x40cdc6
cmp byte [eax], 0x31
jne 0x40cdc6
sub esp, 0x18
lea eax, [ebp - 0x38]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
lea eax, [ebp - 0x38]
mov esi, esp
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00412c60
mov ecx, esi
call fcn.00404a60
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x43593c
call fcn.00412c60
mov ecx, esi
call fcn.00402b70
add esp, 0x18
call fcn.00402db0
add esp, 0x48
jmp 0x40cdc6
push 0x4365b4
jmp 0x40cd7c
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x4363d4
call fcn.00412c60
mov ecx, esi
call fcn.00402b70
mov ecx, esp
push 0x435d2c
call fcn.00412c60
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00412c60
call fcn.0040aed0
add esp, 0x78
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb 0x40cdfa
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cdf0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d0dd
push edx
push ecx
call fcn.00414180
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 0x40ce40
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ce36
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d0dd
push edx
push ecx
call fcn.00414180
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 0x40ce86
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ce7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d0dd
push edx
push ecx
call fcn.00414180
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 0x40cecc
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cec2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d0dd
push edx
push ecx
call fcn.00414180
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 0x40cf12
mov ecx, dword [ebp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cf08
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d0dd
push edx
push ecx
call fcn.00414180
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 0x40cf58
mov ecx, dword [ebp + 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cf4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d0dd
push edx
push ecx
call fcn.00414180
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 0x40cfa4
mov ecx, dword [ebp + 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cf9a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d0dd
push edx
push ecx
call fcn.00414180
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 0x40cff9
mov ecx, dword [ebp + 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40cfef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d0dd
push edx
push ecx
call fcn.00414180
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 0x40d04e
mov ecx, dword [ebp + 0xb0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d044
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d0dd
push edx
push ecx
call fcn.00414180
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 0x40d09f
mov ecx, dword [ebp + 0xc8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d095
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d0dd
push edx
push ecx
call fcn.00414180
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.invalid_stoi_argument
call fcn.00413cba
call fcn.004188f4
call fcn.004188f4
call fcn.004188f4
call fcn.004188f4
call fcn.004188f4
push str.invalid_stoi_argument
call fcn.00413cba
push str.stoi_argument_out_of_range
call fcn.00413cfa
call fcn.004188f4
nop
test eax, 0xc9790040
inc eax
add byte [edx], bh
retf 0x40