Function at 0x40d6e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
push esi
push edi
sub esp, 0x18
mov dword [ebp - 0x40], 0
mov ecx, esp
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
mov dword [ebp - 0x58], 0
push 0x435b04
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
call fcn.00412c60
lea ecx, [ebp - 0x38]
call fcn.00402b70
add esp, 0x18
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x40d734
mov edx, dword [eax]
push dword [eax + 0x10]
mov edi, dword [ebp + 0x4c]
lea ecx, [ebp + 0x38]
mov ebx, dword [ebp + 0x38]
cmp edi, 0x10
mov esi, dword [ebp + 0x48]
push edx
cmovae ecx, ebx
mov edx, esi
push ecx
call fcn.004135b0
add esp, 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0xf
mov byte [ebp - 0x20], 0
lea edx, [eax + 3]
cmp esi, edx
jb 0x40e1f6
sub esi, edx
lea eax, [ebp + 0x38]
mov ecx, 0x12
cmp esi, ecx
cmovb ecx, esi
cmp edi, 0x10
push ecx
cmovae eax, ebx
lea ecx, [ebp - 0x20]
add eax, edx
push eax
call fcn.00412fd0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x68]
call fcn.00412ac0
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x40d7d3
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d7c9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e1fb
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb 0x40d807
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d7fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e1fb
push edx
push ecx
call fcn.00414180
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x435b04
call fcn.00412c60
lea ecx, [ebp - 0x38]
call fcn.00402b70
add esp, 0x18
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x40d82b
mov edx, dword [eax]
push dword [eax + 0x10]
cmp dword [ebp + 0x4c], 0x10
lea ecx, [ebp + 0x38]
mov esi, dword [ebp + 0x48]
cmovae ecx, dword [ebp + 0x38]
push edx
push ecx
mov edx, esi
call fcn.004135b0
add esp, 0xc
mov dword [ebp - 0x10], 0
cmp esi, eax
mov dword [ebp - 0xc], 0xf
lea ecx, [ebp + 0x38]
mov byte [ebp - 0x20], 0
cmovb eax, esi
cmp dword [ebp + 0x4c], 0x10
push eax
cmovae ecx, dword [ebp + 0x38]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00412fd0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0x38]
call fcn.00412ac0
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x40d8b4
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d8aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e200
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb 0x40d8e8
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d8de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e200
push edx
push ecx
call fcn.00414180
add esp, 8
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 0x40e205
cmp dword [edi], 0x22
je 0x40e237
cmp eax, 3
ja case.default.0x40d92a
jmp dword [eax*4 + 0x40e248]
sub esp, 0x18
lea eax, [ebp + 0x80]
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 - 0x38]
call fcn.0040b3f0
add esp, 0x60
lea ecx, [ebp - 0x50]
push eax
call fcn.00412ac0
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb case.default.0x40d92a
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40db68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e20f
jmp 0x40db68
sub esp, 0x18
lea eax, [ebp + 0x80]
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 - 0x1a0]
mov esi, esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x1a0]
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 0x40da11
sub ecx, edx
lea eax, [ebp - 0x1a0]
push ecx
push eax
mov ecx, esi
call fcn.00412fd0
lea ecx, [ebp - 0x38]
call fcn.0040b3f0
add esp, 0x60
lea ecx, [ebp - 0x50]
push eax
call fcn.00412ac0
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb case.default.0x40d92a
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40db68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e214
jmp 0x40db68
sub esp, 0x18
lea eax, [ebp + 0x80]
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 - 0x38]
call fcn.0040b3f0
add esp, 0x60
lea ecx, [ebp - 0x50]
push eax
call fcn.00412ac0
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb case.default.0x40d92a
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40db68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e219
jmp 0x40db68
sub esp, 0x18
lea eax, [ebp + 0x80]
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 - 0x38]
call fcn.0040b3f0
add esp, 0x60
lea ecx, [ebp - 0x50]
push eax
call fcn.00412ac0
mov edx, dword [ebp - 0x24]
cmp edx, 0x10
jb case.default.0x40d92a
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40db68
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e21e
push edx
push ecx
call fcn.00414180
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x50]
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 - 0x3c], 0x10
lea eax, [ebp - 0x50]
push 0x432a08
cmovae eax, dword [ebp - 0x50]
push eax
call fcn.0041658c
add esp, 0x38
test eax, eax
je 0x40dede
push eax
call fcn.0041661a
add esp, 4
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x20]
push eax
call fcn.00412c60
cmp dword [ebp - 0xc], 0x10
lea ecx, [ebp - 0x98]
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
call fcn.0041718c
mov edx, dword [ebp - 0xc]
or edi, 0xffffffff
add esp, 8
test eax, eax
cmove edi, dword [ebp - 0x84]
cmp edx, 0x10
jb 0x40dc24
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dc1a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e223
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 + 0xac], 0x10
lea esi, [ebp + 0x98]
mov ebx, eax
lea eax, [ebp - 4]
cmovae esi, dword [ebp + 0x98]
push 0xa
push eax
push esi
mov dword [ebx], 0
call fcn.004186d0
add esp, 0xc
cmp esi, dword [ebp - 4]
je 0x40e228
cmp dword [ebx], 0x22
je 0x40e237
cmp edi, eax
jle 0x40dede
sub esp, 0x18
lea eax, [ebp - 0x68]
mov ecx, esp
push eax
call fcn.00412c60
sub esp, 0x18
lea eax, [ebp - 0x50]
mov ecx, esp
push eax
call fcn.00412c60
call fcn.00403ac0
add esp, 0x30
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
test al, al
je 0x40ded7
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 + 0xb0]
cmp dword [ebp + 0xc4], 0x10
cmovae eax, dword [ebp + 0xb0]
cmp dword [ebp + 0xc0], 1
jne 0x40df37
cmp byte [eax], 0x31
jne 0x40df37
lea eax, [ebp - 0x50]
push eax
sub esp, 0x1c
mov ecx, esp
push 0x435924
call fcn.00412c60
lea ecx, [ebp - 0x80]
call fcn.00402b70
add esp, 0x1c
lea ecx, [ebp - 0x38]
mov edx, eax
call fcn.00413200
mov ecx, eax
add esp, 4
mov esi, dword [ecx + 0x14]
mov eax, esi
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 2
jb 0x40dd8a
lea eax, [edx + 2]
mov dword [ecx + 0x10], eax
mov eax, ecx
cmp esi, 0x10
jb 0x40dd7a
mov eax, dword [ecx]
mov esi, 0x202c
mov word [eax + edx], si
mov byte [eax + edx + 2], 0
jmp 0x40dda1
push 2
push 0x432a04
mov byte [ebp - 4], 0
push dword [ebp - 4]
push 2
call fcn.00413690
mov ecx, eax
movups xmm0, xmmword [ecx]
sub esp, 0x18
lea eax, [ebp - 0x68]
lea edx, [ebp - 0x20]
movups xmmword [ebp - 0x20], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0x10], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov ecx, esp
push eax
call fcn.00413200
sub esp, 0x14
lea eax, [ebp - 0x50]
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
mov edx, dword [ebp - 0xc]
add esp, 0x48
cmp edx, 0x10
jb 0x40de45
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40de3b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e232
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0xf
mov byte [ebp - 0x20], 0
cmp edx, 0x10
jb 0x40de8b
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40de81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e232
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp edx, 0x10
jb 0x40df37
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40decb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e232
push edx
push ecx
call fcn.00414180
add esp, 8
jmp 0x40df37
push 0x4365b4
jmp 0x40deed
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 - 0x54]
cmp edx, 0x10
jb 0x40df6b
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40df61
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e241
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x40df9f
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40df95
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e241
push edx
push ecx
call fcn.00414180
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
cmp edx, 0x10
jb 0x40dfe5
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40dfdb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e241
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 0x40e02b
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e021
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e241
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 0x40e071
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e067
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e241
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 0x40e0b7
mov ecx, dword [ebp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e0ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e241
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 0x40e0fd
mov ecx, dword [ebp + 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e0f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e241
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 0x40e149
mov ecx, dword [ebp + 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e13f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e241
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 0x40e19e
mov ecx, dword [ebp + 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e194
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e241
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 0x40e1ef
mov ecx, dword [ebp + 0xb0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e1e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e241
push edx
push ecx
call fcn.00414180
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00413100
call fcn.004188f4
call fcn.004188f4
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
call fcn.004188f4
push str.stoi_argument_out_of_range
call fcn.00413cfa
call fcn.004188f4
nop
xor ecx, ebx
inc eax
add byte [ebx + 0x740040d9], dh
fiadd dword [eax]
fiadd dword [eax]
int3