Function at 0x40e960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498c88
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x4cb070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c4], edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x2cc], edi
mov dword [edi + 0x10], 0
jb 0x40e9c2
mov eax, dword [edi]
jmp 0x40e9c4
mov eax, edi
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x18]
mov dword [ebp - 4], ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x40e9e1
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], ecx
mov dword [edi + 0x38], ecx
push 0x208
push ecx
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
call fcn.00474730
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
cmp word [ebp - 0x218], ax
jne 0x40ea44
xor ecx, ecx
jmp 0x40ea5f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ea50
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x254]
call fcn.0040a9c0
push 0xd
push 0x4af370
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 3
call fcn.00403730
xor eax, eax
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
cmp word [ebp - 0x218], ax
jne 0x40eab2
xor ecx, ecx
jmp 0x40eacf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40eac0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x23c]
call fcn.0040a9c0
push 0x1e
push str._shimgvw.dll_ImageView_PrintTo
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 4
call fcn.00403730
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
movq qword [ebp - 0x224], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x224]
call fcn.004104a0
push 3
xor eax, eax
mov dword [ebp - 0x2ac], 7
push 0x4af3cc
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2b0], 0
mov word [ebp - 0x2c0], ax
call fcn.0040a9c0
lea eax, [ebp - 0x2c0]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x224]
call fcn.004107b0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2ac]
cmp eax, 8
jb 0x40eba8
inc eax
lea ecx, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c0]
call fcn.0040aba0
push 2
xor eax, eax
mov dword [ebp - 0x2ac], 7
push 0x4af3d4
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2b0], 0
mov word [ebp - 0x2c0], ax
call fcn.0040a9c0
lea eax, [ebp - 0x2c0]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x224]
call fcn.004107b0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2ac]
cmp eax, 8
jb 0x40ec0f
inc eax
lea ecx, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c0]
call fcn.0040aba0
push 2
xor eax, eax
mov dword [ebp - 0x2ac], 7
push 0x4af3dc
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2b0], 0
mov word [ebp - 0x2c0], ax
call fcn.0040a9c0
lea eax, [ebp - 0x2c0]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x224]
call fcn.004107b0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2ac]
cmp eax, 8
jb 0x40ec76
inc eax
lea ecx, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c0]
call fcn.0040aba0
push 2
xor eax, eax
mov dword [ebp - 0x2ac], 7
push 0x4af3e4
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2b0], 0
mov word [ebp - 0x2c0], ax
call fcn.0040a9c0
lea eax, [ebp - 0x2c0]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x224]
call fcn.004107b0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2ac]
cmp eax, 8
jb 0x40ecdd
inc eax
lea ecx, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c0]
call fcn.0040aba0
push 2
xor eax, eax
mov dword [ebp - 0x2ac], 7
push 0x4af3ec
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2b0], 0
mov word [ebp - 0x2c0], ax
call fcn.0040a9c0
lea eax, [ebp - 0x2c0]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x224]
call fcn.004107b0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2ac]
cmp eax, 8
jb 0x40ed44
inc eax
lea ecx, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c0]
call fcn.0040aba0
push 0x54
lea eax, [ebp - 0x2a8]
push 0
push eax
call fcn.00474730
add esp, 0xc
lea ecx, [ebp - 0x224]
cmp dword [ebp - 0x240], 8
lea eax, [ebp - 0x254]
cmovae eax, dword [ebp - 0x254]
push ecx
push eax
sub esp, 8
lea ecx, [ebp - 0x2a8]
call fcn.0040e6c0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2a8]
mov eax, dword [edi + 0x34]
cmp ecx, eax
jae 0x40eddc
mov edx, dword [edi + 0x30]
cmp edx, ecx
ja 0x40eddc
sub ecx, edx
mov eax, 0x30c30c31
imul ecx
mov eax, dword [edi + 0x34]
sar edx, 4
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp eax, dword [edi + 0x38]
jne 0x40edbd
push ecx
lea ecx, [edi + 0x30]
call fcn.00410940
mov ecx, dword [edi + 0x34]
imul eax, ebx, 0x54
mov dword [ebp - 0x2c4], ecx
mov dword [ebp - 0x2c8], ecx
add eax, dword [edi + 0x30]
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x40ee0d
jmp 0x40ee07
cmp eax, dword [edi + 0x38]
jne 0x40edea
push ecx
lea ecx, [edi + 0x30]
call fcn.00410940
mov ecx, dword [edi + 0x34]
mov dword [ebp - 0x2c8], ecx
mov dword [ebp - 0x2c4], ecx
mov byte [ebp - 4], 0xd
test ecx, ecx
je 0x40ee0d
lea eax, [ebp - 0x2a8]
push eax
call fcn.0040ff10
add dword [edi + 0x34], 0x54
lea ecx, [ebp - 0x2a8]
call fcn.0040e860
mov esi, dword [ebp - 0x224]
test esi, esi
je 0x40ee5d
push dword [ebp - 0x2c8]
mov edx, dword [ebp - 0x220]
push ecx
mov ecx, esi
call fcn.00411080
mov ecx, dword [ebp - 0x21c]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.004109d0
mov eax, dword [ebp - 0x228]
cmp eax, 8
jb 0x40ee7b
inc eax
lea ecx, [ebp - 0x23c]
push eax
push dword [ebp - 0x23c]
call fcn.0040aba0
mov ecx, dword [ebp - 0x240]
xor eax, eax
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x23c], ax
cmp ecx, 8
jb 0x40eeb6
inc ecx
push ecx
push dword [ebp - 0x254]
lea ecx, [ebp - 0x254]
call fcn.0040aba0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00459a5d
mov esp, ebp
pop ebp
ret