Function at 0x40f990
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 0x447b30
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
call fcn.00414750
lea ecx, [ebp - 0x34]
call fcn.004034e0
add esp, 0x18
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x40f9e4
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.00415880
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 0x41046b
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.00414eb0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x64]
call fcn.004145b0
mov edx, dword [ebp - 4]
cmp edx, 0x10
jb 0x40fa83
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fa79
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410470
push edx
push ecx
call fcn.00417582
add esp, 8
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x40fab7
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40faad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410470
push edx
push ecx
call fcn.00417582
add esp, 8
sub esp, 0x18
mov ecx, esp
push 0x447b30
call fcn.00414750
lea ecx, [ebp - 0x34]
call fcn.004034e0
add esp, 0x18
mov edx, eax
cmp dword [eax + 0x14], 0x10
jb 0x40fadb
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.00415880
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.00414eb0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0x38]
call fcn.004145b0
mov edx, dword [ebp - 4]
cmp edx, 0x10
jb 0x40fb64
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fb5a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410475
push edx
push ecx
call fcn.00417582
add esp, 8
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x40fb98
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fb8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410475
push edx
push ecx
call fcn.00417582
add esp, 8
call fcn.0041ccc4
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.0041e7ba
add esp, 0xc
cmp esi, dword [ebp - 0x1c]
je 0x41047a
cmp dword [edi], 0x22
je 0x4104ac
cmp eax, 3
ja case.default.0x40fbda
jmp dword [eax*4 + 0x4104bc]
sub esp, 0x18
lea eax, [ebp + 0x80]
mov ecx, esp
push eax
call fcn.00414750
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00414750
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00414750
sub esp, 0x18
mov ecx, esp
call fcn.00406610
lea ecx, [ebp - 0x34]
call fcn.0040d770
add esp, 0x60
lea ecx, [ebp - 0x4c]
push eax
call fcn.004145b0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb case.default.0x40fbda
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fe18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410484
jmp 0x40fe18
sub esp, 0x18
lea eax, [ebp + 0x80]
mov ecx, esp
push eax
call fcn.00414750
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00414750
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00414750
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 0x40fcc1
sub ecx, edx
lea eax, [ebp - 0x1a0]
push ecx
push eax
mov ecx, esi
call fcn.00414eb0
lea ecx, [ebp - 0x34]
call fcn.0040d770
add esp, 0x60
lea ecx, [ebp - 0x4c]
push eax
call fcn.004145b0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb case.default.0x40fbda
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fe18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410489
jmp 0x40fe18
sub esp, 0x18
lea eax, [ebp + 0x80]
mov ecx, esp
push eax
call fcn.00414750
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00414750
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00414750
sub esp, 0x18
mov ecx, esp
call fcn.00406810
lea ecx, [ebp - 0x34]
call fcn.0040d770
add esp, 0x60
lea ecx, [ebp - 0x4c]
push eax
call fcn.004145b0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb case.default.0x40fbda
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fe18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41048e
jmp 0x40fe18
sub esp, 0x18
lea eax, [ebp + 0x80]
mov ecx, esp
push eax
call fcn.00414750
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00414750
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00414750
sub esp, 0x18
mov ecx, esp
call fcn.00406710
lea ecx, [ebp - 0x34]
call fcn.0040d770
add esp, 0x60
lea ecx, [ebp - 0x4c]
push eax
call fcn.004145b0
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb case.default.0x40fbda
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fe18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410493
push edx
push ecx
call fcn.00417582
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x4c]
mov ecx, esp
push eax
call fcn.00414750
sub esp, 0x18
lea eax, [ebp + 0x38]
mov ecx, esp
push eax
call fcn.00414750
call fcn.00409a80
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
push 0x44422c
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.0041bf26
add esp, 0x38
test eax, eax
je 0x410153
push eax
call fcn.0041bfb4
add esp, 4
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x18]
push eax
call fcn.00414750
cmp dword [ebp - 4], 0x10
lea ecx, [ebp - 0x98]
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push ecx
push eax
call fcn.0041cc40
mov edx, dword [ebp - 4]
or edi, 0xffffffff
add esp, 8
test eax, eax
cmove edi, dword [ebp - 0x84]
cmp edx, 0x10
jb 0x40fed4
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40feca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410498
push edx
push ecx
call fcn.00417582
add esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xf
mov byte [ebp - 0x18], 0
call fcn.0041ccc4
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.0041e7ba
add esp, 0xc
cmp esi, dword [ebp - 0x1c]
je 0x41049d
cmp dword [ebx], 0x22
je 0x4104ac
cmp edi, eax
jle 0x410153
sub esp, 0x18
lea eax, [ebp - 0x64]
mov ecx, esp
push eax
call fcn.00414750
sub esp, 0x18
lea eax, [ebp - 0x4c]
mov ecx, esp
push eax
call fcn.00414750
call fcn.00405190
add esp, 0x30
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
test al, al
je 0x41014c
push 0x447de8
call fcn.00414750
mov ecx, esi
call fcn.004034e0
mov ecx, esp
push 0x447d70
call fcn.00414750
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00414750
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.00414750
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00414750
call fcn.0040d250
add esp, 0x78
lea eax, [ebp + 0xb0]
cmp dword [ebp + 0xc4], 0x10
cmovae eax, dword [ebp + 0xb0]
cmp dword [ebp + 0xc0], 1
jne 0x4101ac
cmp byte [eax], 0x31
jne 0x4101ac
lea eax, [ebp - 0x4c]
push eax
sub esp, 0x1c
mov ecx, esp
push 0x447938
call fcn.00414750
lea ecx, [ebp - 0x80]
call fcn.004034e0
add esp, 0x1c
lea ecx, [ebp - 0x34]
mov edx, eax
call fcn.00415380
add esp, 4
mov ecx, eax
push 0x444228
call fcn.00414540
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.00415380
sub esp, 0x14
lea eax, [ebp - 0x4c]
mov esi, esp
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00414750
mov ecx, esi
call fcn.00406130
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x447950
call fcn.00414750
mov ecx, esi
call fcn.004034e0
add esp, 0x18
call fcn.00403720
mov edx, dword [ebp - 4]
add esp, 0x48
cmp edx, 0x10
jb 0x4100ba
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4100b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104a7
push edx
push ecx
call fcn.00417582
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 0x410100
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4100f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104a7
push edx
push ecx
call fcn.00417582
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 0x4101ac
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410140
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104a7
push edx
push ecx
call fcn.00417582
add esp, 8
jmp 0x4101ac
push 0x4485f8
jmp 0x410162
sub esp, 0x18
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x448418
call fcn.00414750
mov ecx, esi
call fcn.004034e0
mov ecx, esp
push 0x447d70
call fcn.00414750
sub esp, 0x18
lea eax, [ebp + 0x50]
mov ecx, esp
push eax
call fcn.00414750
sub esp, 0x18
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.00414750
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00414750
call fcn.0040d250
add esp, 0x78
mov edx, dword [ebp - 0x50]
cmp edx, 0x10
jb 0x4101e0
mov ecx, dword [ebp - 0x64]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4101d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104b6
push edx
push ecx
call fcn.00417582
add esp, 8
mov edx, dword [ebp - 0x38]
cmp edx, 0x10
jb 0x410214
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41020a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104b6
push edx
push ecx
call fcn.00417582
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 0x41025a
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410250
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104b6
push edx
push ecx
call fcn.00417582
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 0x4102a0
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410296
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104b6
push edx
push ecx
call fcn.00417582
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 0x4102e6
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4102dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104b6
push edx
push ecx
call fcn.00417582
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 0x41032c
mov ecx, dword [ebp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410322
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104b6
push edx
push ecx
call fcn.00417582
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 0x410372
mov ecx, dword [ebp + 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410368
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104b6
push edx
push ecx
call fcn.00417582
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 0x4103be
mov ecx, dword [ebp + 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4103b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104b6
push edx
push ecx
call fcn.00417582
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 0x410413
mov ecx, dword [ebp + 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410409
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104b6
push edx
push ecx
call fcn.00417582
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 0x410464
mov ecx, dword [ebp + 0xb0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41045a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4104b6
push edx
push ecx
call fcn.00417582
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00415060
call fcn.0041ea01
call fcn.0041ea01
push str.invalid_stoi_argument
call fcn.00416240
call fcn.0041ea01
call fcn.0041ea01
call fcn.0041ea01
call fcn.0041ea01
call fcn.0041ea01
push str.invalid_stoi_argument
call fcn.00416240
call fcn.0041ea01
push str.stoi_argument_out_of_range
call fcn.00416280
call fcn.0041ea01
add byte [eax], al
nop
loope 0x4104b9
inc eax
add byte [ebx - 4], ah
inc eax
add byte [edi*8 - 0x25cffc0], ah
inc eax
add ah, cl
int3