Function at 0x40d5be
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
movzx eax, byte [ebp + 0x38]
test eax, eax
je 0x40d629
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x54], eax
push 0xf8e
push 1
push dword [ebp - 0x64]
push dword [ebp - 0x44]
push 0x4eeb
push dword [ebp - 0x90]
push dword [ebp - 0x4c]
push dword [ebp - 0x70]
push 0x4688
push dword [ebp - 0x54]
call fcn.0040d8fa
add esp, 0x28
jmp 0x40d8f6
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x34]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x94], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x7c]
movzx eax, byte [eax]
test eax, eax
je 0x40d784
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x40d772
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x40d6a6
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 2
jg 0x40d770
mov dword [ebp - 0xac], 0x26ff23b1
mov dword [ebp - 0xc8], 0x69f4981f
mov dword [ebp - 0xb4], 7
mov dword [ebp - 0xc4], 0x17b722ba
mov dword [ebp - 0xbc], 0x85589b58
mov dword [ebp - 0xc0], 0x7c7ab89b
mov dword [ebp - 0xb0], 0xfffffff6
mov dword [ebp - 0xa8], 0x9c3997b0
mov dword [ebp - 0xa4], 0x9c3997b0
mov dword [ebp - 0xa0], 0x9c3997b0
mov dword [ebp - 0x9c], 0x9c3997b0
lea ecx, [ebp - 0x19]
call fcn.00428b1d
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0xdc]
call fcn.00428b20
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0xd4]
call fcn.00428acc
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0xd4]
call fcn.00428af2
jmp 0x40d69b
jmp 0x40d77f
push 0x24d9
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x40d8f6
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
movzx eax, byte [eax]
test eax, eax
je 0x40d7f9
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
jmp 0x40d7d7
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 2
jge 0x40d7f4
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 0x58]
call fcn.00428b0e
mov dword [eax], 0xbca63185
jmp 0x40d7cc
jmp 0x40d8f6
mov dword [ebp - 4], 0xfffe
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x24], 0x25b054db
mov dword [ebp - 0x38], 5
mov dword [ebp - 0x14], 0
jmp 0x40d825
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jge 0x40d838
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x68], 9
jmp 0x40d81e
mov byte [ebp - 5], 0
movzx eax, byte [ebp - 5]
test eax, eax
je 0x40d85a
push 0x7dda
push 0
push 0
push 0x10bd
call fcn.0041eed7
add esp, 0x10
mov eax, dword [ebp - 4]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 4]
cmp dword [ebp - 4], eax
jge 0x40d874
mov dword [ebp - 0x20], 1
jmp 0x40d878
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x10]
cmp eax, 0xfffffffb
je 0x40d896
mov dword [ebp - 0x2c], 1
jmp 0x40d89a
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40d8b2
cmp dword [ebp - 0x10], 0
jne 0x40d8b2
and dword [ebp - 0x28], 0
jmp 0x40d8b9
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x28], eax
je 0x40d8ca
mov dword [ebp - 0x60], 1
jmp 0x40d8ce
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x10], eax
jne 0x40d8df
mov dword [ebp - 0x30], 1
jmp 0x40d8e3
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp + eax - 0x68], ecx
mov esp, ebp
pop ebp
ret