Function at 0x40da00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
call fcn.004182c0
cmp dword [ebp + 0x7c], 0x10
lea esi, [ebp + 0x68]
mov edi, eax
lea eax, [ebp - 0x12c]
cmovae esi, dword [ebp + 0x68]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.00418588
add esp, 0xc
cmp esi, dword [ebp - 0x12c]
je 0x40e01d
cmp dword [edi], 0x22
je 0x40e013
cmp eax, 3
ja case.default.0x40da78
jmp dword [eax*4 + 0x40e040]
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
mov ecx, esp
call fcn.00405140
lea ecx, [ebp - 0x144]
call fcn.0040bb70
add esp, 0x60
lea ecx, [ebp - 0x128]
push eax
call fcn.004138d0
mov edx, dword [ebp - 0x130]
cmp edx, 0x10
jb case.default.0x40da78
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dcee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e027
jmp 0x40dcee
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00413990
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 + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40db70
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.00413cf0
lea ecx, [ebp - 0x144]
call fcn.0040bb70
add esp, 0x60
lea ecx, [ebp - 0x128]
push eax
call fcn.004138d0
mov edx, dword [ebp - 0x130]
cmp edx, 0x10
jb case.default.0x40da78
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dcee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e02c
jmp 0x40dcee
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
mov ecx, esp
call fcn.004053c0
lea ecx, [ebp - 0x144]
call fcn.0040bb70
add esp, 0x60
lea ecx, [ebp - 0x128]
push eax
call fcn.004138d0
mov edx, dword [ebp - 0x130]
cmp edx, 0x10
jb case.default.0x40da78
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dcee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e031
jmp 0x40dcee
sub esp, 0x18
lea eax, [ebp + 0x98]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
mov ecx, esp
call fcn.00405280
lea ecx, [ebp - 0x144]
call fcn.0040bb70
add esp, 0x60
lea ecx, [ebp - 0x128]
push eax
call fcn.004138d0
mov edx, dword [ebp - 0x130]
cmp edx, 0x10
jb case.default.0x40da78
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dcee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e036
push edx
push ecx
call fcn.0041535e
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00413990
call fcn.00407d40
cmp dword [ebp - 0x114], 0x10
lea eax, [ebp - 0x128]
push 0x42eee0
cmovae eax, dword [ebp - 0x128]
push eax
call fcn.0041763c
add esp, 0x38
test eax, eax
je 0x40dd6c
push eax
call fcn.004176ca
sub esp, 0x14
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.00413990
call fcn.00403c40
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x431d9c
jmp 0x40dd7b
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x43239c
call fcn.00413990
mov ecx, esi
call fcn.004029f0
mov ecx, esp
push 0x431d24
call fcn.00413990
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00413990
call fcn.0040b630
mov edx, dword [ebp - 0x114]
add esp, 0x78
cmp edx, 0x10
jb 0x40ddff
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ddf5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e03b
push edx
push ecx
call fcn.0041535e
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 0x40de4e
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40de44
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e03b
push edx
push ecx
call fcn.0041535e
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 0x40de94
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40de8a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e03b
push edx
push ecx
call fcn.0041535e
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 0x40deda
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ded0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e03b
push edx
push ecx
call fcn.0041535e
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 0x40df20
mov ecx, dword [ebp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40df16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e03b
push edx
push ecx
call fcn.0041535e
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 0x40df66
mov ecx, dword [ebp + 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40df5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e03b
push edx
push ecx
call fcn.0041535e
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 0x40dfb2
mov ecx, dword [ebp + 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dfa8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e03b
push edx
push ecx
call fcn.0041535e
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 0x40e003
mov ecx, dword [ebp + 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dff9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e03b
push edx
push ecx
call fcn.0041535e
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00414cec
mov esp, ebp
pop ebp
ret
push str.stoi_argument_out_of_range
call fcn.00414ccc
add byte [eax + 0x28], ch
jecxz 0x40e063
push str.invalid_stoi_argument
call fcn.00414c8c
add al, ch
insb byte es:[edi], dx
add byte [eax], al
call fcn.004187ac
call fcn.004187ac
call fcn.004187ac
call fcn.004187ac
call fcn.004187ac
jg 0x40e01c
inc eax
add byte [0xdf0040db], cl
fild dword [eax]
insd dword es:[edi], dx
fadd qword [eax]