Function at 0x40e050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x43100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
sub esp, 0x18
mov dword [ebp - 0x118], 0
mov ecx, esp
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
mov dword [ebp - 0x130], 0
push 0x431afc
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
call fcn.00413990
lea ecx, [ebp - 0x1a8]
call fcn.004029f0
add esp, 0x18
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x40e0c3
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.004142e0
add esp, 0xc
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], 0xf
mov byte [ebp - 0x190], 0
lea edx, [eax + 3]
cmp esi, edx
jb 0x40ec93
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 - 0x190]
add eax, edx
push eax
call fcn.00413cf0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x140]
call fcn.004138d0
mov edx, dword [ebp - 0x17c]
cmp edx, 0x10
jb 0x40e17a
mov ecx, dword [ebp - 0x190]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e170
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ec98
push edx
push ecx
call fcn.0041535e
add esp, 8
mov edx, dword [ebp - 0x194]
cmp edx, 0x10
jb 0x40e1b4
mov ecx, dword [ebp - 0x1a8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e1aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ec98
push edx
push ecx
call fcn.0041535e
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x431afc
call fcn.00413990
lea ecx, [ebp - 0x1a8]
call fcn.004029f0
add esp, 0x18
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x40e1db
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.004142e0
add esp, 0xc
mov dword [ebp - 0x180], 0
cmp esi, eax
mov dword [ebp - 0x17c], 0xf
lea ecx, [ebp + 0x38]
mov byte [ebp - 0x190], 0
cmovb eax, esi
cmp dword [ebp + 0x4c], 0x10
push eax
cmovae ecx, dword [ebp + 0x38]
push ecx
lea ecx, [ebp - 0x190]
call fcn.00413cf0
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp + 0x38]
call fcn.004138d0
mov edx, dword [ebp - 0x17c]
cmp edx, 0x10
jb 0x40e279
mov ecx, dword [ebp - 0x190]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e26f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ec9d
push edx
push ecx
call fcn.0041535e
add esp, 8
mov edx, dword [ebp - 0x194]
cmp edx, 0x10
jb 0x40e2b3
mov ecx, dword [ebp - 0x1a8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e2a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ec9d
push edx
push ecx
call fcn.0041535e
add esp, 8
call fcn.004182c0
cmp dword [ebp + 0x7c], 0x10
lea esi, [ebp + 0x68]
mov edi, eax
lea eax, [ebp - 0x174]
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 - 0x174]
je 0x40eca2
cmp dword [edi], 0x22
je 0x40ecd4
cmp eax, 3
ja case.default.0x40e2fb
jmp dword [eax*4 + 0x40ece4]
sub esp, 0x18
lea eax, [ebp + 0x80]
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 - 0x1a8]
call fcn.0040bb70
add esp, 0x60
lea ecx, [ebp - 0x128]
push eax
call fcn.004138d0
mov edx, dword [ebp - 0x194]
cmp edx, 0x10
jb case.default.0x40e2fb
mov ecx, dword [ebp - 0x1a8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e56e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecac
jmp 0x40e56e
sub esp, 0x18
lea eax, [ebp + 0x80]
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
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e3f0
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.00413cf0
lea ecx, [ebp - 0x1a8]
call fcn.0040bb70
add esp, 0x60
lea ecx, [ebp - 0x128]
push eax
call fcn.004138d0
mov edx, dword [ebp - 0x194]
cmp edx, 0x10
jb case.default.0x40e2fb
mov ecx, dword [ebp - 0x1a8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e56e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecb1
jmp 0x40e56e
sub esp, 0x18
lea eax, [ebp + 0x80]
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 - 0x1a8]
call fcn.0040bb70
add esp, 0x60
lea ecx, [ebp - 0x128]
push eax
call fcn.004138d0
mov edx, dword [ebp - 0x194]
cmp edx, 0x10
jb case.default.0x40e2fb
mov ecx, dword [ebp - 0x1a8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e56e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecb6
jmp 0x40e56e
sub esp, 0x18
lea eax, [ebp + 0x80]
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 - 0x1a8]
call fcn.0040bb70
add esp, 0x60
lea ecx, [ebp - 0x128]
push eax
call fcn.004138d0
mov edx, dword [ebp - 0x194]
cmp edx, 0x10
jb case.default.0x40e2fb
mov ecx, dword [ebp - 0x1a8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e56e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecbb
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 0x40e95c
push eax
call fcn.004176ca
add esp, 4
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x190]
push eax
call fcn.00413990
cmp dword [ebp - 0x17c], 0x10
lea ecx, [ebp - 0x170]
lea eax, [ebp - 0x190]
cmovae eax, dword [ebp - 0x190]
push ecx
push eax
call fcn.0041823c
mov edx, dword [ebp - 0x17c]
or edi, 0xffffffff
add esp, 8
test eax, eax
cmove edi, dword [ebp - 0x15c]
cmp edx, 0x10
jb 0x40e64b
mov ecx, dword [ebp - 0x190]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e641
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecc0
push edx
push ecx
call fcn.0041535e
add esp, 8
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], 0xf
mov byte [ebp - 0x190], 0
call fcn.004182c0
cmp dword [ebp + 0xac], 0x10
lea esi, [ebp + 0x98]
mov ebx, eax
lea eax, [ebp - 0x174]
cmovae esi, dword [ebp + 0x98]
push 0xa
push eax
push esi
mov dword [ebx], 0
call fcn.00418588
add esp, 0xc
cmp esi, dword [ebp - 0x174]
je 0x40ecc5
cmp dword [ebx], 0x22
je 0x40ecd4
cmp edi, eax
jle 0x40e95c
sub esp, 0x18
lea eax, [ebp - 0x140]
mov ecx, esp
push eax
call fcn.00413990
sub esp, 0x18
lea eax, [ebp - 0x128]
mov ecx, esp
push eax
call fcn.00413990
call fcn.004039a0
add esp, 0x30
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
test al, al
je 0x40e955
push 0x431d9c
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
add esp, 0x78
lea eax, [ebp + 0xb0]
cmp dword [ebp + 0xc4], 0x10
cmovae eax, dword [ebp + 0xb0]
cmp dword [ebp + 0xc0], 1
jne 0x40e9b5
cmp byte [eax], 0x31
jne 0x40e9b5
lea eax, [ebp - 0x128]
push eax
sub esp, 0x1c
mov ecx, esp
push 0x431934
call fcn.00413990
lea ecx, [ebp - 0x158]
call fcn.004029f0
add esp, 0x1c
lea ecx, [ebp - 0x1a8]
mov edx, eax
call fcn.00413f30
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 0x40e7cf
lea eax, [edx + 2]
mov dword [ecx + 0x10], eax
mov eax, ecx
cmp esi, 0x10
jb 0x40e7bf
mov eax, dword [ecx]
mov esi, 0x202c
mov word [eax + edx], si
mov byte [eax + edx + 2], 0
jmp 0x40e7ec
push 2
push 0x42eedc
mov byte [ebp - 0x174], 0
push dword [ebp - 0x174]
push 2
call fcn.00414630
mov ecx, eax
movups xmm0, xmmword [ecx]
sub esp, 0x18
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x190]
movups xmmword [ebp - 0x190], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0x180], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov ecx, esp
push eax
call fcn.00413f30
sub esp, 0x14
lea eax, [ebp - 0x128]
mov esi, esp
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00413990
mov ecx, esi
call fcn.00404c10
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x43194c
call fcn.00413990
mov ecx, esi
call fcn.004029f0
add esp, 0x18
call fcn.00402c60
mov edx, dword [ebp - 0x17c]
add esp, 0x48
cmp edx, 0x10
jb 0x40e8a5
mov ecx, dword [ebp - 0x190]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e89b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eccf
push edx
push ecx
call fcn.0041535e
add esp, 8
mov edx, dword [ebp - 0x194]
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], 0xf
mov byte [ebp - 0x190], 0
cmp edx, 0x10
jb 0x40e8fa
mov ecx, dword [ebp - 0x1a8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e8f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eccf
push edx
push ecx
call fcn.0041535e
add esp, 8
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0xf
mov byte [ebp - 0x1a8], 0
cmp edx, 0x10
jb 0x40e9b5
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e949
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eccf
push edx
push ecx
call fcn.0041535e
add esp, 8
jmp 0x40e9b5
push 0x432564
jmp 0x40e96b
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
add esp, 0x78
mov edx, dword [ebp - 0x12c]
cmp edx, 0x10
jb 0x40e9ef
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e9e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecde
push edx
push ecx
call fcn.0041535e
add esp, 8
mov edx, dword [ebp - 0x114]
cmp edx, 0x10
jb 0x40ea29
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ea1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecde
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 0x40ea78
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ea6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecde
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 0x40eabe
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40eab4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecde
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 0x40eb04
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40eafa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecde
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 0x40eb4a
mov ecx, dword [ebp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40eb40
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecde
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 0x40eb90
mov ecx, dword [ebp + 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40eb86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecde
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 0x40ebdc
mov ecx, dword [ebp + 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ebd2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecde
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 0x40ec31
mov ecx, dword [ebp + 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ec27
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecde
push edx
push ecx
call fcn.0041535e
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 0x40ec82
mov ecx, dword [ebp + 0xb0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ec78
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ecde
push edx
push ecx
call fcn.0041535e
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414cec
mov esp, ebp
pop ebp
ret
call fcn.00413e30
call fcn.004187ac
call fcn.004187ac
push str.invalid_stoi_argument
call fcn.00414c8c
call fcn.004187ac
call fcn.004187ac
call fcn.004187ac
call fcn.004187ac
call fcn.004187ac
push str.invalid_stoi_argument
call fcn.00414c8c
call fcn.004187ac
push str.stoi_argument_out_of_range
call fcn.00414ccc
call fcn.004187ac
nop
add ah, bl
inc eax
add byte [eax + 0x5f0040e3], dl
in al, 0x40
add ch, ch
in al, 0x40
add ah, cl
int3