Function at 0x4033ec
Capabilities:
Get common file path

Disassembly:
mov eax, 0x40f293
call fcn.004074c0
sub esp, 0x280
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 3
call fcn.00401a8a
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.00401a8a
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00401a8a
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.00401a8a
mov al, byte [ebp + 0x13]
xor ebx, ebx
mov byte [ebp - 0x34], al
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov al, byte [ebp + 0x13]
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x44], al
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov esi, 0x104
lea eax, [ebp - 0x188]
push esi
push eax
push ebx
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
je 0x40387c
lea eax, [ebp - 0x28c]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
test eax, eax
je 0x40387c
lea eax, [ebp - 0x188]
lea ecx, [ebp - 0x68]
push eax
call fcn.00401d74
lea eax, [ebp - 0x28c]
lea ecx, [ebp - 0x84]
push eax
call fcn.00401d74
mov esi, 0x4124d8
lea ecx, [ebp - 0x24]
push esi
call fcn.00401c0f
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 8
call fcn.00402374
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.00401d53
push esi
lea ecx, [ebp - 0x24]
call fcn.00401c0f
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x44]
push eax
lea eax, [ebp + 0x14]
push eax
mov byte [ebp - 4], 9
call fcn.00402374
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.00401d53
sub esp, 0xc
lea eax, [edi + 0xc]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00401c73
sub esp, 0xc
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x18], esp
push edi
call fcn.00401c73
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
mov byte [ebp - 4], 7
call fcn.00403061
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xb
call fcn.00401de9
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.00401d53
mov esi, 0x413370
lea ecx, [ebp - 0x50]
push esi
call fcn.004020d2
test al, al
je 0x4035d3
sub esp, 0xc
lea eax, [ebp - 0x50]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00401c73
sub esp, 0xc
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.SoftwareMicrosoftWindowsCurrentVersionRun
call fcn.00401c0f
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
mov byte [ebp - 4], 7
call fcn.00403061
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xd
call fcn.00401de9
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.00401d53
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00401018
pop ecx
test eax, eax
pop ecx
jne 0x4035d3
push 2
pop esi
jmp 0x40387f
cmp dword [ebp - 0x40], 0
je 0x403640
mov eax, dword [ebp - 0x3c]
push 0xc
sub eax, dword [ebp - 0x40]
pop ecx
cdq
idiv ecx
cmp ebx, eax
jae 0x403640
push esi
push ebx
lea ecx, [ebp - 0x44]
call fcn.004024de
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00401c73
sub esp, 0xc
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.SoftwareMicrosoftWindowsCurrentVersionRun
call fcn.00401c0f
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
mov byte [ebp - 4], 7
call fcn.00403061
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.004020d2
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.00401d53
inc ebx
jmp 0x4035d3
sub esp, 0x10
lea eax, [ebp - 0x34]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.00403a1d
lea eax, [ebp - 0x78]
mov ecx, edi
push eax
call fcn.004038fa
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x10
call fcn.00403abe
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.00403a8b
sub esp, 0x10
lea eax, [ebp - 0x44]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.00403a1d
lea eax, [ebp - 0x78]
mov ecx, edi
push eax
call fcn.004038fa
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x11
call fcn.00403abe
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.00403a8b
xor ebx, ebx
mov esi, 0x4124a0
cmp dword [ebp - 0x30], 0
je 0x403753
mov eax, dword [ebp - 0x2c]
push 0xc
sub eax, dword [ebp - 0x30]
pop ecx
cdq
idiv ecx
cmp ebx, eax
jae 0x40373d
lea eax, [ebp - 0x74]
push str._t_n_r
push eax
lea ecx, [ebp - 0x84]
call fcn.00401fbd
mov dword [ebp - 0x14], eax
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x12
call fcn.004024de
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00401f6f
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x13
call fcn.00401de9
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x12
call fcn.00401d53
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 7
call fcn.00401d53
push esi
push dword [ebp - 0x54]
call fcn.004077c3
pop ecx
test eax, eax
pop ecx
je 0x40373d
push eax
call fcn.00407643
pop ecx
inc ebx
jmp 0x4036b1
cmp dword [ebp - 0x30], 0
je 0x403753
mov eax, dword [ebp - 0x2c]
push 0xc
sub eax, dword [ebp - 0x30]
pop ecx
cdq
idiv ecx
cmp ebx, eax
jb 0x40375a
push 5
jmp 0x4035cd
push esi
push dword [ebp - 0x60]
call fcn.004077c3
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40387c
push 0x41245c
push dword [ebp - 0x54]
call fcn.004077c3
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
pop ecx
je 0x403875
push esi
call fcn.004078e6
and dword [ebp - 0x10], 0
pop ecx
test byte [esi + 0xc], 0x10
jne 0x4037cf
cmp dword [ebp - 0x10], 0x20
jl 0x4037b5
cmp dword [ebp - 0x10], 0x30
jge 0x4037b5
call fcn.004077e0
cdq
mov ecx, 0xff
idiv ecx
mov al, dl
push dword [ebp - 0x14]
movzx eax, al
push eax
call fcn.0040798c
push esi
call fcn.004078e6
add esp, 0xc
inc dword [ebp - 0x10]
jmp 0x403794
push dword [ebp - 0x14]
call fcn.00407643
pop ecx
push ebx
lea ecx, [ebp - 0x44]
call fcn.004024de
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00401c73
sub esp, 0xc
lea eax, [edi + 0xc]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov byte [ebp - 4], 0x14
call fcn.00401c73
sub esp, 0xc
mov byte [ebp - 4], 0x15
mov ecx, esp
mov dword [ebp - 0x10], esp
push edi
call fcn.00401c73
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.00403149
sub esp, 0xc
lea eax, [ebp - 0x5c]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00401c73
push ebx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x16
call fcn.004024de
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00401c73
sub esp, 0xc
mov byte [ebp - 4], 0x17
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.SoftwareMicrosoftWindowsCurrentVersionRun
call fcn.00401c0f
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.00403149
mov dword [ebp - 0x10], 1
push esi
call fcn.00407643
pop ecx
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.00403a8b
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.00403a8b
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.00401d53
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00401d53
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.00401d53
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00401d53
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401d53
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00401d53
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x18