Function at 0x405bb5
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x46e904
call fcn.0044a938
sub esp, 0x44
mov eax, dword [0x493b24]
push ebx
push esi
push edi
push 4
xor ebx, ebx
pop edi
mov esi, ecx
push 0x70
push eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], 0x40827a
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push ebx
mov dword [ebp - 0x3c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 2
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x50]
mov ebx, str.MainWndClass
push eax
mov dword [ebp - 0x30], 0x65
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0x66
mov ecx, esi
call fcn.004661b6
push 0x407dea
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_SetWindowsHookA]
push str.RICHED32.DLL
mov dword [esi + 0x478], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x214], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 8
mov dword [ebp - 0x14], edi
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov eax, dword [esi + 0x5f8]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
mov dword [ebp - 0x10], eax
call edi
mov ecx, eax
mov eax, dword [ebp - 0x10]
sub ecx, 0x28
cmp eax, ecx
jle 0x405c8c
add eax, 0xffffffd8
mov dword [esi + 0x5f8], eax
mov eax, dword [esi + 0x5f4]
push 0
mov dword [ebp - 0x10], eax
call edi
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + 0x14]
cmp edx, eax
jle 0x405cac
add ecx, 0xffffffec
mov dword [esi + 0x5f4], ecx
mov eax, dword [esi + 0x5f0]
mov edx, dword [esi + 0x5f8]
mov ecx, dword [esi + 0x5ec]
push esi
push dword [0x493b24]
sub edx, eax
push 0
push 0
push edx
mov edx, dword [esi + 0x5f4]
sub edx, ecx
push edx
push eax
push ecx
push 0xcf0000
call fcn.0040825c
push eax
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
push str.Viewer
push eax
lea ecx, [esi + 0xbc]
mov dword [esi + 0x1f4], eax
mov dword [esi + 0x1c], eax
call fcn.00412ae0
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0x1f4]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 1
call edi
sub eax, 0x28
cmp dword [ebp - 0x1c], eax
jle 0x405d67
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
push 0xffffffffffffffd8
lea eax, [ebp - 0x28]
push ebx
push eax
call edi
cmp dword [ebp - 0x24], ebx
jge 0x405d43
mov eax, dword [ebp - 0x24]
neg eax
push eax
lea eax, [ebp - 0x28]
push ebx
push eax
call edi
mov eax, dword [ebp - 0x1c]
push 1
sub eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [esi + 0x1f4]
call fcn.0042311b
add esp, 0x18
push 0x30
call fcn.0045db27
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x405d8d
push esi
push 0x40d411
push 0x2a7
mov ecx, eax
call fcn.0040e18d
jmp 0x405d8f
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x158
mov dword [esi + 0x1fc], eax
call fcn.0045db27
pop ecx
mov dword [ebp - 0x10], eax
push 1
cmp eax, ebx
pop edi
mov dword [ebp - 4], edi
je 0x405dba
mov ecx, eax
call fcn.0040d73c
jmp 0x405dbc
xor eax, eax
push dword [esi + 0x1f4]
or dword [ebp - 4], 0xffffffff
mov ecx, eax
mov dword [esi + 0x200], eax
call fcn.004239eb
mov eax, dword [esi + 0x1f4]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [esi + 0x1fc]
push eax
push eax
call fcn.0040e1ae
cmp dword [esi + 0x46c], ebx
je 0x405dfb
mov ecx, esi
call fcn.00406886
jmp 0x405e07
mov ecx, dword [esi + 0x1fc]
push ebx
call fcn.0040e1c3
push dword [ebp + 8]
push dword [esi + 0x1f4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.00407464
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4