Function at 0x41545a
Capabilities:
Get common file path
Terminate process

Disassembly:
push 0x644
mov eax, 0x56958d
call fcn.005106a0
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov ecx, 0x400
mov eax, esi
shr eax, 0x10
cmp ax, cx
jne 0x41548d
lea ecx, [edi + 0xcc]
call fcn.004121b6
jmp case.0x4154b7.1291
lea eax, [esi - 0x500]
xor ebx, ebx
cmp eax, 0xd
ja 0x4154a8
cmp dword [edi + 0x178], ebx
je 0x4154a8
mov dword [edi + 0x178], ebx
lea eax, [esi - 0x500]
cmp eax, 0xd
ja case.0x4154b7.1291
jmp dword [eax*4 + 0x4157f6]
push ebx
jmp 0x4157dd
mov ecx, edi
call fcn.00415a5b
jmp case.0x4154b7.1289
cmp dword [edi + 0x17c], ebx
jne case.0x4154b7.1291
mov ecx, edi
call fcn.004165e2
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 0x644], eax
call esi
mov dword [ebp - 0x648], eax
push ecx
mov ecx, esp
mov dword [ebp - 4], ebx
mov dword [ecx], eax
mov ecx, edi
call fcn.00413384
mov ecx, edi
call fcn.00415a5b
mov eax, dword [0x5dd104]
cmp dword [eax - 0xc], ebx
je 0x415568
push dword [edi + 4]
call esi
mov esi, dword [0x5dd104]
mov ebx, eax
cmp dword [esi - 4], 1
jle 0x41553e
push dword [esi - 0xc]
mov ecx, 0x5dd104
call fcn.00409175
mov esi, dword [0x5dd104]
push ebx
mov ecx, edi
call fcn.004159ab
mov edx, eax
mov ecx, esi
call fcn.0040d58f
pop ecx
push 0xffffffffffffffff
mov ecx, 0x5dd104
call fcn.00419a76
push ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
xor ebx, ebx
mov eax, dword [0x5cbbf8]
test eax, eax
jne 0x41557a
call fcn.0041290c
test eax, eax
je 0x415589
push ebx
push 1
push 0x7936
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x648]
call fcn.0040e394
jmp case.0x4154b7.1291
mov ecx, edi
call fcn.004165e2
mov eax, dword [edi + 4]
push eax
mov dword [ebp - 0x644], eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x648], eax
push ecx
mov ecx, esp
mov dword [ebp - 4], 1
mov dword [ecx], eax
mov ecx, edi
call fcn.00413384
mov ecx, edi
call fcn.00415184
jmp 0x415597
mov ecx, edi
call fcn.004165e2
mov eax, dword [edi + 0xc8]
test eax, eax
je 0x415605
cmp dword [eax + 0x78], 0xffffffff
je 0x415605
push ecx
push esi
mov ecx, edi
call fcn.00415d3d
jmp case.0x4154b7.1291
mov eax, dword [edi + 0xc4]
test eax, eax
je 0x41562c
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41562c
mov eax, dword [edi + 0xc4]
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [edi + 0x9c], bl
jmp case.0x4154b7.1291
mov eax, dword [edi + 0xc8]
test eax, eax
je 0x41566c
cmp dword [eax + 0x78], 0x505
jne 0x41566c
push dword [edi + 0xd0]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41566c
push ebx
push dword [edi + 0xd0]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x4154b7.1291
lea esi, [edi + 0xb0]
mov eax, dword [esi + 4]
sub eax, dword [esi]
sar eax, 2
test eax, eax
je case.0x4154b7.1291
mov ebx, dword [esi + 4]
sub ebx, dword [esi]
mov eax, dword [esi]
sar ebx, 2
dec ebx
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x41569a
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi]
mov ecx, esi
lea eax, [eax + ebx*4]
push eax
lea eax, [ebp - 0x650]
push eax
call fcn.004170eb
push 1
xor esi, esi
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp case.0x4154b7.1291
push 0x20a
lea eax, [ebp - 0x640]
push ebx
push eax
call fcn.00516940
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call esi
push 0x20a
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.00516940
mov eax, dword [0x5dd104]
add esp, 0xc
cmp dword [eax - 0xc], ebx
jle 0x41571a
push eax
push 0x5893bc
mov ebx, 0x104
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.00408e72
add esp, 0x10
jmp 0x415761
push 0x20a
lea eax, [ebp - 0x430]
push ebx
push eax
call fcn.00516940
add esp, 0xc
lea eax, [ebp - 0x430]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call esi
push eax
lea eax, [ebp - 0x430]
push eax
push str._s_d.png
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.00408e72
add esp, 0x14
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
mov ecx, edi
push esi
call fcn.004159ab
mov edx, eax
lea ecx, [ebp - 0x220]
call fcn.0040d58f
pop ecx
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, edi
call fcn.00415a5b
lea eax, [ebp - 0x640]
mov dword [ebp - 0x648], 0x20a
mov dword [ebp - 0x644], eax
xor esi, esi
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x64c], esi
push eax
push esi
push 0x4a
push dword [0x5cbbfc]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
call fcn.0051064a
ret 0x10