Function at 0x4204a0
Capabilities:
Check if file exists
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49e31d
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x10], 0
jne 0x4204d6
xor eax, eax
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov dword [ebp - 0x18], eax
call esi
mov ecx, dword [edi + 0x14]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov edx, edi
cmp ecx, 8
jb 0x4204fa
mov edx, dword [edi]
test edx, edx
je 0x4206d8
mov eax, edi
cmp ecx, 8
jb 0x42050b
mov eax, dword [edi]
cmp word [eax], bx
je 0x4206d8
mov eax, edi
cmp ecx, 8
jb 0x42051d
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4206d8
mov ecx, edi
mov eax, dword [edi + 0x14]
mov dword [ebp + 8], ebx
cmp byte [ebp + 0x10], bl
je 0x420556
cmp eax, 8
jb 0x420540
mov ecx, dword [edi]
push 0
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push ecx
call fcn.0045b0f0
add esp, 0x14
jmp 0x42056f
cmp eax, 8
jb 0x42055d
mov ecx, dword [edi]
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push ecx
call fcn.0045ae00
add esp, 0x10
mov eax, dword [ebp + 8]
test eax, eax
je 0x4206d8
mov dword [ebp - 0x10], 0x1770
cmp dword [edi + 0x10], ebx
jne 0x42058d
xor ebx, ebx
jmp 0x4206d1
push edi
lea ecx, [ebp - 0x48]
call fcn.00402220
mov ecx, dword [edi + 0x10]
mov eax, SysReAllocString
sub eax, ecx
mov dword [ebp - 4], 0
cmp eax, 3
jb 0x4206eb
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4205ba
mov eax, dword [edi]
push ecx
push eax
push 3
push 0x4acff8
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.00404170
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push eax
push 0x4ad000
call esi
mov ebx, eax
test ebx, ebx
jne 0x420680
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push 0x4ad000
call esi
mov ebx, eax
test ebx, ebx
jne 0x420680
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x420615
mov eax, dword [edi]
push eax
push 0
call esi
mov ebx, eax
test ebx, ebx
jne 0x420680
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push ebx
call esi
mov ebx, eax
test ebx, ebx
jne 0x420680
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x42063f
mov eax, dword [edi]
push eax
push str.CASCADIA_HOSTING_WINDOW_CLASS
call esi
mov ebx, eax
test ebx, ebx
jne 0x420680
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push str.CASCADIA_HOSTING_WINDOW_CLASS
call esi
mov ebx, eax
test ebx, ebx
jne 0x420680
mov ecx, dword [ebp - 0x10]
mov eax, ecx
dec ecx
mov dword [ebp - 0x10], ecx
test eax, eax
jle 0x420680
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4205d5
lea ecx, [ebp - 0x30]
call fcn.004011d0
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.004011d0
test ebx, ebx
je 0x4206ce
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0
push 0
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0xff
push ebx
call fcn.0044af80
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
add esp, 8
push 0
push ebx
call esi
push 3
push ebx
call esi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004012a0
int3