Function at 0x40d250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
call fcn.00418380
cmp dword [ebp + 0x7c], 0x10
lea esi, [ebp + 0x68]
mov edi, eax
lea eax, [ebp - 0x15c]
cmovae esi, dword [ebp + 0x68]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.00418648
add esp, 0xc
cmp esi, dword [ebp - 0x15c]
je 0x40db0e
cmp dword [edi], 0x22
je 0x40db3b
cmp eax, 3
ja case.default.0x40d2c9
jmp dword [eax*4 + 0x40db4c]
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
mov ecx, esp
call fcn.00404ff0
lea ecx, [ebp - 0x178]
call fcn.0040bcd0
add esp, 0x60
lea ecx, [ebp - 0x128]
push eax
call fcn.00413a40
mov edx, dword [ebp - 0x164]
cmp edx, 0x10
jb case.default.0x40d2c9
mov ecx, dword [ebp - 0x178]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d53e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db18
jmp 0x40d53e
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
lea eax, [ebp - 0x110]
mov esi, esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x110]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [esi], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d3c0
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.00413e60
lea ecx, [ebp - 0x178]
call fcn.0040bcd0
add esp, 0x60
lea ecx, [ebp - 0x128]
push eax
call fcn.00413a40
mov edx, dword [ebp - 0x164]
cmp edx, 0x10
jb case.default.0x40d2c9
mov ecx, dword [ebp - 0x178]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d53e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db1d
jmp 0x40d53e
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
mov ecx, esp
call fcn.00405270
lea ecx, [ebp - 0x178]
call fcn.0040bcd0
add esp, 0x60
lea ecx, [ebp - 0x128]
push eax
call fcn.00413a40
mov edx, dword [ebp - 0x164]
cmp edx, 0x10
jb case.default.0x40d2c9
mov ecx, dword [ebp - 0x178]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d53e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db22
jmp 0x40d53e
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
mov ecx, esp
call fcn.00405130
lea ecx, [ebp - 0x178]
call fcn.0040bcd0
add esp, 0x60
lea ecx, [ebp - 0x128]
push eax
call fcn.00413a40
mov edx, dword [ebp - 0x164]
cmp edx, 0x10
jb case.default.0x40d2c9
mov ecx, dword [ebp - 0x178]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d53e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db27
push edx
push ecx
call fcn.0041541e
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00413b00
call fcn.00407c40
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
push 0x42eed4
cmovae eax, dword [ebp - 0x128]
push eax
call fcn.004176fc
add esp, 0x38
test eax, eax
je 0x40d7bc
push eax
call fcn.0041778a
add esp, 4
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x178]
push eax
call fcn.00413b00
cmp dword [ebp - 0x164], 0x10
lea ecx, [ebp - 0x158]
lea eax, [ebp - 0x178]
cmovae eax, dword [ebp - 0x178]
push ecx
push eax
call fcn.004182fc
mov edx, dword [ebp - 0x164]
or ebx, 0xffffffff
add esp, 8
test eax, eax
cmove ebx, dword [ebp - 0x144]
cmp edx, 0x10
jb 0x40d61b
mov ecx, dword [ebp - 0x178]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d611
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db2c
push edx
push ecx
call fcn.0041541e
add esp, 8
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0xf
mov byte [ebp - 0x178], 0
call fcn.00418380
cmp dword [ebp + 0xc4], 0x10
lea esi, [ebp + 0xb0]
mov edi, eax
lea eax, [ebp - 0x15c]
cmovae esi, dword [ebp + 0xb0]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.00418648
add esp, 0xc
cmp esi, dword [ebp - 0x15c]
je 0x40db31
cmp dword [edi], 0x22
je 0x40db3b
cmp ebx, eax
jle 0x40d7bc
sub esp, 0x18
mov ecx, esp
push 0
push 0x42e35b
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
call fcn.00413e60
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
lea eax, [ebp + 0x80]
mov ecx, esp
push eax
call fcn.00413b00
call fcn.00403890
add esp, 0x48
sub esp, 0x18
mov esi, esp
sub esp, 0x18
cmp dword [0x433304], 0x2a
mov ecx, esp
jne 0x40d7b5
push 0x431d9c
call fcn.00413b00
mov ecx, esi
call fcn.00402ac0
mov ecx, esp
push 0x431d24
call fcn.00413b00
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00413b00
call fcn.0040b720
add esp, 0x78
lea eax, [ebp + 0xc8]
cmp dword [ebp + 0xdc], 0x10
cmovae eax, dword [ebp + 0xc8]
cmp dword [ebp + 0xd8], 1
jne 0x40d815
cmp byte [eax], 0x31
jne 0x40d815
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
lea eax, [ebp - 0x128]
mov esi, esp
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00413b00
mov ecx, esi
call fcn.00404ac0
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x43194c
call fcn.00413b00
mov ecx, esi
call fcn.00402ac0
add esp, 0x18
call fcn.00402d30
add esp, 0x48
jmp 0x40d815
push 0x432564
jmp 0x40d7cb
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x43239c
call fcn.00413b00
mov ecx, esi
call fcn.00402ac0
mov ecx, esp
push 0x431d24
call fcn.00413b00
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.00413b00
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00413b00
call fcn.0040b720
add esp, 0x78
mov edx, dword [ebp - 0x114]
cmp edx, 0x10
jb 0x40d84f
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d845
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db45
push edx
push ecx
call fcn.0041541e
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
cmp edx, 0x10
jb 0x40d89e
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d894
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db45
push edx
push ecx
call fcn.0041541e
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 0x40d8e4
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d8da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db45
push edx
push ecx
call fcn.0041541e
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 0x40d92a
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d920
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db45
push edx
push ecx
call fcn.0041541e
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 0x40d970
mov ecx, dword [ebp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d966
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db45
push edx
push ecx
call fcn.0041541e
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 0x40d9b6
mov ecx, dword [ebp + 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d9ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db45
push edx
push ecx
call fcn.0041541e
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 0x40da02
mov ecx, dword [ebp + 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d9f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db45
push edx
push ecx
call fcn.0041541e
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 0x40da57
mov ecx, dword [ebp + 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40da4d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db45
push edx
push ecx
call fcn.0041541e
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 0x40daac
mov ecx, dword [ebp + 0xb0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40daa2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db45
push edx
push ecx
call fcn.0041541e
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 0x40dafd
mov ecx, dword [ebp + 0xc8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40daf3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db45
push edx
push ecx
call fcn.0041541e
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414dac
mov esp, ebp
pop ebp
ret
push str.invalid_stoi_argument
call fcn.00414d4c
call fcn.0041886c
call fcn.0041886c
call fcn.0041886c
call fcn.0041886c
call fcn.0041886c
push str.invalid_stoi_argument
call fcn.00414d4c
push str.stoi_argument_out_of_range
call fcn.00414d8c
call fcn.0041886c
nop
rcl dl, 1
inc eax
add byte [esi - 0x2d], bl
inc eax
add byte [edi], ch
aam 0x40
add byte [ebp - 0x33ffbf2c], bh
int3