Function at 0x40e8f5
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x464
lea ebp, [esp - 4]
mov eax, dword [0x44bd40]
xor eax, ebp
mov dword [ebp + 0x464], eax
push 0x64
mov eax, 0x439bc1
call fcn.0042501a
mov eax, dword [ebp + 0x474]
mov edi, dword [ebp + 0x470]
mov esi, dword [ebp + 0x478]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x47c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x480]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x4c], eax
je 0x40ed8b
cmp eax, ebx
je 0x40ed8b
lea ecx, [ebp - 0x34]
call fcn.00401d70
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
cmp esi, ebx
mov dword [ebp - 4], ebx
je 0x40ea42
push esi
call fcn.00423fc0
test eax, eax
pop ecx
jbe 0x40ea42
push esi
lea ecx, [ebp + 0x1c]
call fcn.004033c0
push dword [ebp - 0x1c]
or edi, 0xffffffff
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], edi
call fcn.004033c0
mov esi, 0x43c604
push esi
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 2
call fcn.00403430
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp]
call fcn.00402e10
push dword [ebp - 0x38]
lea eax, [ebp - 0x70]
push ebx
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call fcn.00403490
push edi
push ebx
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 4
call fcn.00402630
push ebx
push 1
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00401ec0
push edi
push ebx
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00402450
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x34]
call fcn.004046b0
push edi
push esi
lea ecx, [ebp + 0x1c]
call fcn.00401a40
push ebx
push 1
lea ecx, [ebp]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
call fcn.00401ec0
cmp dword [ebp - 0x38], edi
jne 0x40e9ad
push ebx
push 1
lea ecx, [ebp + 0x38]
call fcn.00401ec0
push ebx
push 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], bl
call fcn.00401ec0
mov edi, dword [ebp - 0x24]
push dword [ebp - 0x1c]
lea ecx, [ebp + 0x38]
call fcn.004033c0
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.004046b0
push ebx
push 1
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], bl
call fcn.00401ec0
lea ecx, [ebp - 0x18]
call fcn.00401d70
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
push 0x43d9b0
push edi
mov byte [ebp - 4], 6
call fcn.0042569a
test eax, eax
pop ecx
pop ecx
jne 0x40ebdd
push 0x43c67c
push edi
call fcn.0042569a
test eax, eax
pop ecx
pop ecx
jne 0x40ebdd
push 0x103
lea eax, [ebp + 0x361]
push ebx
push eax
mov byte [ebp + 0x360], bl
call fcn.00421e30
mov esi, 0x104
push esi
lea eax, [ebp + 0x54]
push eax
push ebx
call fcn.0040acb2
push edi
lea eax, [ebp + 0x54]
push eax
push 0x43c910
lea eax, [ebp + 0x360]
push esi
push eax
call fcn.00422cc0
lea eax, [ebp + 0x360]
push esi
push eax
call fcn.00401000
add esp, 0x34
test eax, eax
je 0x40eb28
lea eax, [ebp + 0x360]
push eax
lea ecx, [ebp + 0x38]
call fcn.004033c0
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.0040be48
push ebx
push 1
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 6
call fcn.00401ec0
lea eax, [ebp + 0x158]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
lea eax, [ebp + 0x158]
push eax
push 0x43c910
lea eax, [ebp + 0x360]
push esi
push eax
call fcn.00422cc0
lea eax, [ebp + 0x360]
push esi
push eax
call fcn.00401000
add esp, 0x1c
test eax, eax
je 0x40eb92
lea eax, [ebp + 0x360]
push eax
lea ecx, [ebp + 0x38]
call fcn.004033c0
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.0040be48
push ebx
push 1
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 6
call fcn.00401ec0
push esi
lea eax, [ebp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
lea eax, [ebp + 0x25c]
push eax
push 0x43c910
lea eax, [ebp + 0x360]
push esi
push eax
call fcn.00422cc0
lea eax, [ebp + 0x360]
push esi
push eax
call fcn.00401000
add esp, 0x1c
test eax, eax
je 0x40ec10
push edi
lea ecx, [ebp + 0x38]
call fcn.004033c0
mov byte [ebp - 4], 0xa
jmp 0x40ebf5
push edi
call fcn.0040aa07
test eax, eax
pop ecx
je 0x40ec10
push edi
lea ecx, [ebp + 0x38]
call fcn.004033c0
mov byte [ebp - 4], 7
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040be48
push ebx
push 1
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 6
call fcn.00401ec0
cmp dword [ebp - 0x10], ebx
jne 0x40ec2c
lea ecx, [ebp - 0x18]
call fcn.004042e0
lea ecx, [ebp - 0x34]
call fcn.004042e0
mov eax, ebx
jmp 0x40ed8d
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
push dword [eax]
lea ecx, [ebp - 0x44]
call fcn.00401950
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x30]
lea ecx, [ebp - 0x44]
call fcn.00401950
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401270
test al, al
jne 0x40ed7b
push 0x10
pop edi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push dword [eax]
lea ecx, [ebp - 0x54]
call fcn.00401950
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x24], eax
jmp 0x40ed2d
lea ecx, [ebp - 0x28]
call fcn.00401600
cmp dword [eax + 0x18], edi
jb 0x40eca3
mov esi, dword [eax + 4]
jmp 0x40eca6
lea esi, [eax + 4]
lea ecx, [ebp - 0x20]
call fcn.00401600
cmp dword [eax + 0x18], edi
jb 0x40ecb8
mov eax, dword [eax + 4]
jmp 0x40ecbb
add eax, 4
push dword [ebp + 0x484]
push esi
push dword [ebp - 0x48]
push eax
push str.GetValueByQualifier__s___s___s___d__n
push 0x44d160
call fcn.00406f12
add esp, 0x18
lea ecx, [ebp - 0x28]
call fcn.00401600
cmp dword [eax + 0x18], edi
jb 0x40ecea
mov esi, dword [eax + 4]
jmp 0x40eced
lea esi, [eax + 4]
lea ecx, [ebp - 0x20]
call fcn.00401600
cmp dword [eax + 0x18], edi
jb 0x40ecff
mov eax, dword [eax + 4]
jmp 0x40ed02
add eax, 4
push esi
push dword [ebp + 0x484]
push dword [ebp - 0x4c]
push 0x43c600
push dword [ebp - 0x48]
push eax
call fcn.0040e8d1
add esp, 0x18
test eax, eax
ja 0x40edb0
lea ecx, [ebp - 0x28]
call fcn.00401630
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
call fcn.00401950
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401270
test al, al
je 0x40ec91
lea ecx, [ebp - 0x20]
call fcn.00401630
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x30]
lea ecx, [ebp - 0x44]
call fcn.00401950
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401270
test al, al
je 0x40ec6f
lea ecx, [ebp - 0x18]
call fcn.004042e0
lea ecx, [ebp - 0x34]
call fcn.004042e0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x464]
xor ecx, ebp
call fcn.00421e14
add ebp, 0x468
leave
ret
xor ebx, ebx
inc ebx
jmp 0x40ec15