Function at 0x46fdb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x58005c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x7cf
push 0x5810a0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4702f3
mov esi, 0x5810a0
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x46fdf0
sub esi, ecx
mov ecx, dword [0x582ffc]
sar esi, 1
mov dword [ebp - 0x214], ecx
cmp esi, ecx
ja 0x46fe40
cmp ecx, 8
mov dword [0x582ff8], esi
mov edi, 0x582fe8
cmovae edi, dword [0x582fe8]
add esi, esi
push esi
push 0x5810a0
push edi
call fcn.00481c60
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x46ff41
cmp esi, 0x7ffffffe
ja 0x470306
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x46fe65
mov ebx, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x46fe9f
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x46fe80
mov ebx, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x46fe9f
lea eax, [edx + ecx]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
cmp eax, 0x7fffffff
ja 0x470310
add eax, eax
cmp eax, 0x1000
jb 0x46fec6
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x470310
push ecx
call fcn.0047f873
add esp, 4
test eax, eax
je 0x47030b
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x46fed9
test eax, eax
je 0x46fed7
push eax
call fcn.0047f873
add esp, 4
mov edi, eax
jmp 0x46fed9
xor edi, edi
mov dword [0x582ff8], esi
add esi, esi
push esi
push 0x5810a0
push edi
mov dword [0x582ffc], ebx
call fcn.00481c60
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp - 0x214]
cmp eax, 8
jb 0x46ff3b
lea ecx, [eax*2 + 2]
mov eax, dword [0x582fe8]
cmp ecx, 0x1000
jb 0x46ff31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47030b
mov eax, edx
push ecx
push eax
call fcn.0047faf4
add esp, 8
mov dword [0x582fe8], edi
mov ebx, 0x5c
mov eax, 0x58203e
lea edx, [ebx - 0x2d]
nop
movzx ecx, word [eax]
cmp bx, cx
je 0x46ff5d
cmp dx, cx
jne 0x46ff64
cmp eax, 0x58203e
jne 0x46ff70
sub eax, 2
cmp eax, 0x5810a0
jae 0x46ff50
jmp 0x46ff87
sub eax, 0x5810a0
sar eax, 1
je 0x46ff87
lea ecx, [eax*2 + 0x5810a2]
cmp eax, 0x7cf
jb 0x46ff8c
mov ecx, 0x5810a0
mov esi, ecx
mov dword [ebp - 0x214], ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x46ff97
mov eax, dword [0x583014]
sub esi, edx
sar esi, 1
mov dword [ebp - 0x218], eax
cmp esi, eax
ja 0x46ffe2
cmp eax, 8
mov dword [0x583010], esi
mov edi, 0x583000
cmovae edi, dword [0x583000]
add esi, esi
push esi
push ecx
push edi
call fcn.00481c60
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x4700e8
cmp esi, 0x7ffffffe
ja 0x470306
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x470007
mov ebx, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x470040
mov ecx, eax
mov edx, 0x7ffffffe
shr ecx, 1
sub edx, ecx
cmp eax, edx
jbe 0x470022
mov ebx, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x470040
add eax, ecx
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
cmp eax, 0x7fffffff
ja 0x470310
add eax, eax
cmp eax, 0x1000
jb 0x470067
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x470310
push ecx
call fcn.0047f873
add esp, 4
test eax, eax
je 0x47030b
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x47007a
test eax, eax
je 0x470078
push eax
call fcn.0047f873
add esp, 4
mov edi, eax
jmp 0x47007a
xor edi, edi
mov dword [0x583010], esi
add esi, esi
push esi
push dword [ebp - 0x214]
mov dword [0x583014], ebx
push edi
call fcn.00481c60
mov ecx, dword [ebp - 0x218]
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
cmp ecx, 8
jb 0x4700dd
mov eax, dword [0x583000]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4700d3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47030b
mov eax, edx
push ecx
push eax
call fcn.0047faf4
add esp, 8
mov ebx, 0x5c
mov dword [0x583000], edi
mov eax, 0x58203e
mov edx, 0x2f
movzx ecx, word [eax]
cmp bx, cx
je 0x4700ff
cmp dx, cx
jne 0x470106
cmp eax, 0x58203e
jne 0x470112
sub eax, 2
cmp eax, 0x5810a0
jae 0x4700f2
jmp 0x47012c
sub eax, 0x5810a0
sar eax, 1
je 0x47012c
cmp eax, 0x7cf
jae 0x47012c
xor ecx, ecx
mov word [eax*2 + 0x5810a2], cx
push 0
push 0x1a
push 0x582040
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4701c0
mov ecx, 0x582040
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470150
sub ecx, edx
sar ecx, 1
lea edx, [ecx + 1]
cmp edx, 0x7cf
ja 0x4701c0
lea eax, [ecx + 6]
cmp eax, 0x7cf
ja 0x4701c0
test ecx, ecx
je 0x470197
cmp word [ecx*2 + 0x58203e], 0x5c
je 0x470195
lea eax, [ecx + 7]
cmp eax, 0x7cf
ja 0x4701c0
mov word [ecx*2 + 0x582040], bx
mov ecx, edx
movq xmm0, qword [str.Zoom_]
mov ax, word [0x4d7174]
movq qword [ecx*2 + 0x582040], xmm0
mov word [ecx*2 + 0x582048], ax
xor eax, eax
mov word [ecx*2 + 0x58204a], ax
push 4
push 0
mov dword [ebp - 0x218], 0x24
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x582fe4], eax
test eax, eax
je 0x4702f3
mov dword [eax], 0
xor esi, esi
push 0x20c
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004821f0
mov edi, dword [ebp + esi - 0x218]
lea eax, [ebp - 0x210]
add esp, 0xc
push 0
push edi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x470246
cmp edi, 0x24
jne 0x4702ee
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4702ee
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470250
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x212], 0x5c
je 0x470273
mov word [ebp + ecx*2 - 0x210], bx
inc ecx
lea edi, [ecx + ecx]
lea ebx, [edi + 2]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x582fe4]
mov dword [esi + ecx], eax
mov eax, dword [0x582fe4]
mov eax, dword [esi + eax]
test eax, eax
je 0x4702ee
push ebx
push 0
push eax
call fcn.004821f0
push edi
lea eax, [ebp - 0x210]
push eax
mov eax, dword [0x582fe4]
push dword [esi + eax]
call fcn.00481c60
add esi, 4
add esp, 0x18
mov ebx, 0x5c
cmp esi, 4
jb 0x4701f0
pop edi
pop esi
lea eax, [ebx - 0x5b]
mov dword [0x582fe0], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f860
mov esp, ebp
pop ebp
ret
call fcn.0046fd40
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f860
mov esp, ebp
pop ebp
ret
call fcn.0040160f
call fcn.00488b21
call fcn.00401589
int3