Function at 0x4ca463
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
mov ebx, dword [ebp + 0x2c]
push esi
push edi
cmp dword [ebp + 0x30], 0
jne 0x4ca49d
mov eax, dword [0x5cbb04]
mov dword [ebp + 0x30], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x40
lea eax, [ebp - 0xc]
push eax
add eax, 4
push eax
call fcn.00429ace
jmp 0x4ca4ab
mov dword [ebp - 0xc], reloc.gdi32.dll_AbortDoc
mov dword [ebp - 8], 0x188
test ebx, ebx
je 0x4ca551
lea eax, [ebp - 0x44]
push eax
push 0x57a7fa
push dword [0x5e9db0]
call sub.user32.dll_GetClassInfoW
test eax, eax
je 0x4ca4cf
mov al, 1
jmp 0x4ca52a
push 0x7f00
push eax
call sub.user32.dll_LoadCursorW
mov dword [ebp - 0x2c], eax
push dword [0x578134]
push 0x17d8
call fcn.0056dce5
xor edi, edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0x57a7fa
mov dword [ebp - 0x28], edi
mov eax, dword [0x5e9db0]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x4c9c15
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 4
lea eax, [ebp - 0x44]
push eax
call sub.user32.dll_RegisterClassW
test ax, ax
setne al
test al, al
jne 0x4ca53d
push dword [0x5cbb00]
push 4
call fcn.00418038
jmp 0x4ca551
push 0xa5c
lea eax, [ebp - 4]
push eax
call sub.mclib32.dll__ALLOCATE_8
cmp dword [ebp - 4], 0
jne 0x4ca558
xor eax, eax
jmp 0x4ca799
push 2
call fcn.00446768
mov esi, 0x5cd0f4
lea edi, [ebx + 0x28]
cld
mov ecx, 0x17
rep movsd dword es:[edi], dword [esi]
mov edi, ecx
mov esi, dword [ebp - 4]
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov word [esi + 0x28], cx
mov word [esi + 0x232], cx
call fcn.004c98ef
mov dword [esi + 0xc], 7
push 0x5e6cf0
lea eax, [esi + 0x28]
push eax
mov eax, 0x20a
call fcn.0056cfd2
push 0x5e6efa
lea eax, reloc.gdi32.dll_AbortDoc
push eax
mov eax, 0x20a
call fcn.0056cfd2
push dword [ebp + 0x20]
lea eax, reloc.gdi32.dll_AbortDoc
push eax
mov eax, 0x20a
mov edx, dword [ebp + 0x24]
lea edx, [edx + edx + 2]
call fcn.0056d024
push dword [ebp + 0x18]
lea eax, reloc.gdi32.dll_AbortDoc
push eax
mov eax, 0x20a
mov edx, dword [ebp + 0x1c]
lea edx, [edx + edx + 2]
call fcn.0056d024
push dword [ebp + 0x10]
lea eax, reloc.gdi32.dll_AbortDoc
push eax
mov eax, 0x20a
mov edx, dword [ebp + 0x14]
lea edx, [edx + edx + 2]
call fcn.0056d024
mov eax, dword [0x5e6cd4]
mov dword [esi + 0x14], eax
mov eax, dword [0x5e6cd8]
mov dword [esi + 0x18], eax
mov eax, dword [0x5e6cdc]
mov dword [esi + 0x1c], eax
mov eax, dword [0x5e6ce0]
mov dword [esi + 0x20], eax
mov eax, dword [0x5e6ce4]
mov dword [esi + 0x24], eax
mov al, byte [ebp + 8]
mov byte [esi + 0xa5a], al
mov word [0x5e6cf0], di
mov word [0x5e6efa], di
mov eax, dword [ebp - 4]
mov dword [0x5e6cec], eax
push dword [ebx + 8]
push 0x107
lea eax, reloc.gdi32.dll_AbortDoc
push eax
call fcn.00417dff
mov edi, dword [ebp + 0x30]
cmp edi, dword [0x5cbb04]
setne al
push eax
push ebx
push 0x5cd0f4
push 1
lea eax, [ebp - 0x10]
push eax
sub eax, 8
push eax
add eax, 4
push eax
sub eax, 8
push eax
call fcn.00461cbe
cmp edi, dword [0x5cbb04]
je 0x4ca6a5
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x18], 2
mov esi, dword [ebp + 0x28]
cmp esi, 0
jle 0x4ca6df
mov ecx, 6
mov eax, dword [ebx + 0x1c]
imul eax, esi
cdq
idiv ecx
mov dword [ebp - 0x14], eax
cmp eax, esi
jge 0x4ca6c5
mov dword [ebp - 0x14], esi
add dword [ebp - 0x14], 0x24
push 0x2d
call sub.user32.dll_GetSystemMetrics
lea ebx, [eax + eax]
push 2
call sub.user32.dll_GetSystemMetrics
add ebx, eax
add dword [ebp - 0x14], ebx
push 0
push dword [0x5e9db0]
push 0
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
lea eax, reloc.gdi32.dll_AbortDoc
push eax
push 0x57a7fa
push dword [ebp - 8]
call sub.user32.dll_CreateWindowExW
mov ebx, eax
test eax, eax
jne 0x4ca722
push dword [0x5cbb00]
push 3
call fcn.00418038
jmp 0x4ca797
cmp byte [ebp + 0xc], 0
je 0x4ca776
cmp dword [0x5e6ce8], 0
jne 0x4ca75a
push dword [0x578134]
push 0x17ea
push 1
push 0x31
call sub.user32.dll_GetSystemMetrics
push eax
push 0x32
call sub.user32.dll_GetSystemMetrics
push eax
push 0
call fcn.0056dcfa
mov dword [0x5e6ce8], eax
cmp dword [0x5e6ce8], 0
je 0x4ca776
push dword [0x5e6ce8]
push 0
push 0x80
push ebx
call sub.user32.dll_SendMessageW
push 1
push ebx
call sub.user32.dll_ShowWindow
push ebx
call sub.user32.dll_UpdateWindow
push ebx
call sub.user32.dll_BringWindowToTop
push ebx
call sub.user32.dll_SetFocus
push 0
call fcn.00446768
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x2c