Function at 0x4033ec
Capabilities:
Get common file path

Disassembly:
mov eax, 0x40f2a3
call fcn.004074d0
sub esp, 0x288
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 3
call fcn.00401a8a
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.00401a8a
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.00401a8a
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00401a8a
mov al, byte [ebp + 0x13]
xor ebx, ebx
mov byte [ebp - 0x3c], al
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov al, byte [ebp + 0x13]
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x4c], al
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov esi, 0x104
lea eax, [ebp - 0x190]
push esi
push eax
push ebx
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
je 0x40389e
lea eax, [ebp - 0x294]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
test eax, eax
je 0x40389e
lea eax, [ebp - 0x190]
lea ecx, [ebp - 0x70]
push eax
call fcn.00401d74
lea eax, [ebp - 0x294]
lea ecx, [ebp - 0x8c]
push eax
call fcn.00401d74
mov esi, 0x4124d8
lea ecx, [ebp - 0x2c]
push esi
call fcn.00401c0f
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 8
call fcn.00402374
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00401d53
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401c0f
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x14]
push eax
mov byte [ebp - 4], 9
call fcn.00402374
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00401d53
sub esp, 0xc
lea eax, [edi + 0xc]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00401c73
sub esp, 0xc
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x10], esp
push edi
call fcn.00401c73
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
mov byte [ebp - 4], 7
call fcn.00403061
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xb
call fcn.00401de9
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00401d53
mov esi, 0x413340
lea ecx, [ebp - 0x58]
push esi
call fcn.004020d2
test al, al
je 0x4035d7
sub esp, 0xc
lea eax, [ebp - 0x58]
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 - 0x2c]
mov ecx, edi
push eax
mov byte [ebp - 4], 7
call fcn.00403061
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xd
call fcn.00401de9
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00401d53
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00401018
pop ecx
test eax, eax
pop ecx
jne 0x403653
push 2
pop esi
jmp 0x4038a1
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x48], ebx
je 0x40365a
mov eax, dword [ebp - 0x44]
push 0xc
sub eax, dword [ebp - 0x48]
pop ecx
cdq
idiv ecx
cmp dword [ebp - 0x10], eax
jae 0x40365a
push esi
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x10]
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 - 0x20], esp
push str.SoftwareMicrosoftWindowsCurrentVersionRun
call fcn.00401c0f
lea eax, [ebp - 0x2c]
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 - 0x2c]
mov byte [ebp - 0x19], al
mov byte [ebp - 4], 7
call fcn.00401d53
cmp byte [ebp - 0x19], bl
jne 0x403653
inc dword [ebp - 0x10]
jmp 0x4035da
push 4
jmp 0x4035d1
sub esp, 0x10
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403a3e
lea eax, [ebp - 0x80]
mov ecx, edi
push eax
call fcn.0040391b
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x10
call fcn.00403adf
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.00403aac
sub esp, 0x10
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00403a3e
lea eax, [ebp - 0x80]
mov ecx, edi
push eax
call fcn.0040391b
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
call fcn.00403adf
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.00403aac
mov dword [ebp - 0x10], ebx
mov esi, 0x4124a0
cmp dword [ebp - 0x38], ebx
je 0x403772
mov eax, dword [ebp - 0x34]
push 0xc
sub eax, dword [ebp - 0x38]
pop ecx
cdq
idiv ecx
cmp dword [ebp - 0x10], eax
jae 0x40375c
lea eax, [ebp - 0x7c]
push str._t_n_r
push eax
lea ecx, [ebp - 0x8c]
call fcn.00401fbd
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x12
call fcn.004024de
mov ecx, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00401f6f
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x13
call fcn.00401de9
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x12
call fcn.00401d53
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 7
call fcn.00401d53
push esi
push dword [ebp - 0x5c]
call fcn.004077d3
pop ecx
cmp eax, ebx
pop ecx
je 0x40375c
push eax
call fcn.00407653
inc dword [ebp - 0x10]
pop ecx
jmp 0x4036cc
cmp dword [ebp - 0x38], ebx
je 0x403772
mov eax, dword [ebp - 0x34]
push 0xc
sub eax, dword [ebp - 0x38]
pop ecx
cdq
idiv ecx
cmp dword [ebp - 0x10], eax
jb 0x403779
push 5
jmp 0x4035d1
push esi
push dword [ebp - 0x68]
call fcn.004077d3
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x40389e
push 0x41245c
push dword [ebp - 0x5c]
call fcn.004077d3
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x403897
push esi
call fcn.004078f6
pop ecx
mov dword [ebp - 0x14], ebx
test byte [esi + 0xc], 0x10
jne 0x4037ed
cmp dword [ebp - 0x14], 0x20
jl 0x4037d3
cmp dword [ebp - 0x14], 0x30
jge 0x4037d3
call fcn.004077f0
cdq
mov ecx, 0xff
idiv ecx
mov al, dl
push dword [ebp - 0x18]
movzx eax, al
push eax
call fcn.0040799c
push esi
call fcn.004078f6
add esp, 0xc
inc dword [ebp - 0x14]
jmp 0x4037b2
push dword [ebp - 0x18]
call fcn.00407653
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x4c]
call fcn.004024de
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00401c73
sub esp, 0xc
lea eax, [edi + 0xc]
mov ecx, esp
mov dword [ebp - 0x18], 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 - 0x14], esp
push edi
call fcn.00401c73
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.00403149
sub esp, 0xc
lea eax, [ebp - 0x64]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00401c73
push dword [ebp - 0x10]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x16
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], 0x17
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.SoftwareMicrosoftWindowsCurrentVersionRun
call fcn.00401c0f
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.00403149
mov dword [ebp - 0x14], 1
push esi
call fcn.00407653
pop ecx
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.00403aac
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.00403aac
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00401d53
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.00401d53
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 2
call fcn.00401d53
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00401d53
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
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