Function at 0x40ea60
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 - 0x3c], 0
mov ecx, esp
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x54], 0
push 0x43fb30
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
call fcn.004147b0
lea ecx, [ebp - 0x34]
call fcn.00402fb0
add esp, 0x18
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x40eab4
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.00415020
add esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
mov byte [ebp - 0x18], 0
lea edx, [eax + 3]
cmp esi, edx
jb 0x40f53b
sub esi, edx
lea eax, [ebp + 0x38]
mov ecx, 0x1e
cmp esi, ecx
cmovb ecx, esi
cmp edi, 0x10
push ecx
cmovae eax, ebx
lea ecx, [ebp - 0x18]
add eax, edx
push eax
call fcn.00414b30
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x64]
call fcn.00414610
mov edx, dword [ebp - 4]
cmp edx, 0x10
jb 0x40eb53
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40eb49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f540
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x40eb87
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40eb7d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f540
push edx
push ecx
call fcn.00415fcc
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x43fb30
call fcn.004147b0
lea ecx, [ebp - 0x34]
call fcn.00402fb0
add esp, 0x18
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x40ebab
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.00415020
add esp, 0xc
mov dword [ebp - 8], 0
cmp esi, eax
mov dword [ebp - 4], 0xf
lea ecx, [ebp + 0x38]
mov byte [ebp - 0x18], 0
cmovb eax, esi
cmp dword [ebp + 0x4c], 0x10
push eax
cmovae ecx, dword [ebp + 0x38]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00414b30
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0x38]
call fcn.00414610
mov edx, dword [ebp - 4]
cmp edx, 0x10
jb 0x40ec34
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ec2a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f545
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x40ec68
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ec5e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f545
push edx
push ecx
call fcn.00415fcc
add esp, 8
call fcn.0041a3d3
cmp dword [ebp + 0x7c], 0x10
lea esi, [ebp + 0x68]
mov edi, eax
lea eax, [ebp - 0x1c]
cmovae esi, dword [ebp + 0x68]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.0041b909
add esp, 0xc
cmp esi, dword [ebp - 0x1c]
je 0x40f54a
cmp dword [edi], 0x22
je 0x40f57c
cmp eax, 3
ja case.default.0x40ecaa
jmp dword [eax*4 + 0x40f58c]
sub esp, 0x18
lea eax, [ebp + 0x80]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
mov ecx, esp
call fcn.004057f0
lea ecx, [ebp - 0x34]
call fcn.0040c830
add esp, 0x60
lea ecx, [ebp - 0x4c]
push eax
call fcn.00414610
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb case.default.0x40ecaa
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40eee8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f554
jmp 0x40eee8
sub esp, 0x18
lea eax, [ebp + 0x80]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.004147b0
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 0x40ed91
sub ecx, edx
lea eax, [ebp - 0x1a0]
push ecx
push eax
mov ecx, esi
call fcn.00414b30
lea ecx, [ebp - 0x34]
call fcn.0040c830
add esp, 0x60
lea ecx, [ebp - 0x4c]
push eax
call fcn.00414610
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb case.default.0x40ecaa
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40eee8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f559
jmp 0x40eee8
sub esp, 0x18
lea eax, [ebp + 0x80]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
mov ecx, esp
call fcn.004059f0
lea ecx, [ebp - 0x34]
call fcn.0040c830
add esp, 0x60
lea ecx, [ebp - 0x4c]
push eax
call fcn.00414610
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb case.default.0x40ecaa
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40eee8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f55e
jmp 0x40eee8
sub esp, 0x18
lea eax, [ebp + 0x80]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
mov ecx, esp
call fcn.004058f0
lea ecx, [ebp - 0x34]
call fcn.0040c830
add esp, 0x60
lea ecx, [ebp - 0x4c]
push eax
call fcn.00414610
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb case.default.0x40ecaa
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40eee8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f563
push edx
push ecx
call fcn.00415fcc
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x4c]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.004147b0
call fcn.00408b60
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
push 0x43c10c
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.004197f6
add esp, 0x38
test eax, eax
je 0x40f223
push eax
call fcn.00419884
add esp, 4
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x18]
push eax
call fcn.004147b0
cmp dword [ebp - 4], 0x10
lea ecx, [ebp - 0x98]
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push ecx
push eax
call fcn.0041a34f
mov edx, dword [ebp - 4]
or edi, 0xffffffff
add esp, 8
test eax, eax
cmove edi, dword [ebp - 0x84]
cmp edx, 0x10
jb 0x40efa4
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ef9a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f568
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
mov byte [ebp - 0x18], 0
call fcn.0041a3d3
cmp dword [ebp + 0xac], 0x10
lea esi, [ebp + 0x98]
mov ebx, eax
lea eax, [ebp - 0x1c]
cmovae esi, dword [ebp + 0x98]
push 0xa
push eax
push esi
mov dword [ebx], 0
call fcn.0041b909
add esp, 0xc
cmp esi, dword [ebp - 0x1c]
je 0x40f56d
cmp dword [ebx], 0x22
je 0x40f57c
cmp edi, eax
jle 0x40f223
sub esp, 0x18
lea eax, [ebp - 0x64]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp - 0x4c]
mov ecx, esp
push eax
call fcn.004147b0
call fcn.00404570
add esp, 0x30
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
test al, al
je 0x40f21c
push 0x43fde8
call fcn.004147b0
mov ecx, esi
call fcn.00402fb0
mov ecx, esp
push 0x43fd70
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004147b0
call fcn.0040c310
add esp, 0x78
lea eax, [ebp + 0xb0]
cmp dword [ebp + 0xc4], 0x10
cmovae eax, dword [ebp + 0xb0]
cmp dword [ebp + 0xc0], 1
jne 0x40f27c
cmp byte [eax], 0x31
jne 0x40f27c
lea eax, [ebp - 0x4c]
push eax
sub esp, 0x1c
mov ecx, esp
push 0x43f938
call fcn.004147b0
lea ecx, [ebp - 0x80]
call fcn.00402fb0
add esp, 0x1c
lea ecx, [ebp - 0x34]
mov edx, eax
call fcn.00414d60
add esp, 4
mov ecx, eax
push 0x43c108
call fcn.004145a0
sub esp, 0x18
lea edx, [ebp - 0x18]
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x18], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x64]
push eax
call fcn.00414d60
sub esp, 0x14
lea eax, [ebp - 0x4c]
mov esi, esp
sub esp, 0x18
mov ecx, esp
push eax
call fcn.004147b0
mov ecx, esi
call fcn.00405310
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x43f950
call fcn.004147b0
mov ecx, esi
call fcn.00402fb0
add esp, 0x18
call fcn.004031f0
mov edx, dword [ebp - 4]
add esp, 0x48
cmp edx, 0x10
jb 0x40f18a
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f180
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f577
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x20]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
mov byte [ebp - 0x18], 0
cmp edx, 0x10
jb 0x40f1d0
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f1c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f577
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp edx, 0x10
jb 0x40f27c
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f210
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f577
push edx
push ecx
call fcn.00415fcc
add esp, 8
jmp 0x40f27c
push 0x4405f8
jmp 0x40f232
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x440418
call fcn.004147b0
mov ecx, esi
call fcn.00402fb0
mov ecx, esp
push 0x43fd70
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.004147b0
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004147b0
call fcn.0040c310
add esp, 0x78
mov edx, dword [ebp - 0x50]
cmp edx, 0x10
jb 0x40f2b0
mov ecx, dword [ebp - 0x64]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f2a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f586
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp - 0x38]
cmp edx, 0x10
jb 0x40f2e4
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f2da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f586
push edx
push ecx
call fcn.00415fcc
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp edx, 0x10
jb 0x40f32a
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f320
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f586
push edx
push ecx
call fcn.00415fcc
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 0x40f370
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f366
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f586
push edx
push ecx
call fcn.00415fcc
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 0x40f3b6
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f3ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f586
push edx
push ecx
call fcn.00415fcc
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 0x40f3fc
mov ecx, dword [ebp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f3f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f586
push edx
push ecx
call fcn.00415fcc
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 0x40f442
mov ecx, dword [ebp + 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f438
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f586
push edx
push ecx
call fcn.00415fcc
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 0x40f48e
mov ecx, dword [ebp + 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f484
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f586
push edx
push ecx
call fcn.00415fcc
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 0x40f4e3
mov ecx, dword [ebp + 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f4d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f586
push edx
push ecx
call fcn.00415fcc
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 0x40f534
mov ecx, dword [ebp + 0xb0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f52a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f586
push edx
push ecx
call fcn.00415fcc
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00414c60
call fcn.0041bb2d
call fcn.0041bb2d
push str.invalid_stoi_argument
call fcn.00415719
call fcn.0041bb2d
call fcn.0041bb2d
call fcn.0041bb2d
call fcn.0041bb2d
call fcn.0041bb2d
push str.invalid_stoi_argument
call fcn.00415719
call fcn.0041bb2d
push str.stoi_argument_out_of_range
call fcn.00415759
call fcn.0041bb2d
nop
mov cl, 0xec
inc eax
add byte [ebx], dh
in eax, dx
inc eax
add ah, dh
in eax, dx
inc eax
add byte [ebx - 0x12], dh
inc eax
add ah, cl
int3