Function at 0x4a0760
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd248
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x61f138]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov dword [edi + 0x184], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x188], eax
mov eax, dword [sym.imp.USER32.dll_GetClientRect]
mov dword [ebp - 0x38], ebx
test esi, esi
je 0x4a080f
cmp esi, dword [edi + 0x148]
je 0x4a080f
lea ecx, [ebp - 0x20]
push ecx
push dword [edi + 0x10]
call eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x40]
push eax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x40]
test eax, eax
js 0x4a080a
cmp eax, dword [ebp - 0x18]
jg 0x4a080a
mov eax, dword [ebp - 0x3c]
test eax, eax
js 0x4a080a
cmp eax, dword [ebp - 0x14]
jg 0x4a080a
push esi
call dword [sym.imp.USER32.dll_SetCursor]
push esi
push 0xfffffffffffffff4
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetClassLongW]
mov dword [edi + 0x148], esi
mov eax, dword [sym.imp.USER32.dll_GetClientRect]
test ebx, ebx
je 0x4a0d02
cmp byte [edi + 0x178], 0
mov ebx, dword [ebp + 0x10]
jne 0x4a08de
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push dword [ebp - 0x38]
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x31], 0x77
push eax
lea eax, [ebp - 0x31]
push eax
push 0
call fcn.00465ce0
push dword [ebp - 0x38]
lea esi, [edi + 0x184]
lea eax, [esi + 4]
push eax
push esi
push dword [ebp - 0x40]
lea ecx, [ebp - 0x44]
call fcn.00465ce0
push dword [ebp - 0x38]
lea ecx, [edi + 0x164]
lea eax, [ecx + 4]
push eax
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x44]
call fcn.00465ce0
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x44]
sub eax, esi
mov ecx, dword [edi + 0x198]
push eax
push esi
call fcn.004faf10
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4a09c8
mov ecx, dword [ebp - 0x3c]
sub ecx, esi
mov eax, esi
cmp ecx, 0x1000
jb 0x4a09be
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a0d20
jmp 0x4a09be
lea ecx, [ebp - 0x20]
push ecx
push dword [edi + 0x10]
call eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], ecx
cmp ecx, 0x140
jl 0x4a09cb
cmp eax, ecx
jne 0x4a0911
cmp ebx, edx
je 0x4a09cb
cmp byte [edi + 0x200], 0
je 0x4a0932
mov eax, dword [edi + 0x184]
imul eax, edx
cdq
idiv dword [edi + 0x188]
cmp eax, ecx
cmovge eax, ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x30]
push dword [ebp - 0x38]
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x31], 0x77
push eax
lea eax, [ebp - 0x31]
push eax
push 0
call fcn.00465ce0
push dword [ebp - 0x38]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x50]
call fcn.00465ce0
push dword [ebp - 0x38]
lea ecx, [edi + 0x164]
lea eax, [ecx + 4]
push eax
push ecx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x50]
call fcn.00465ce0
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x50]
sub eax, esi
mov ecx, dword [edi + 0x198]
push eax
push esi
call fcn.004faf10
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4a09c8
mov ecx, dword [ebp - 0x48]
jmp 0x4a08b5
push ecx
push esi
call fcn.0056eec5
add esp, 8
mov eax, dword [ebp + 0xc]
cmp byte [ebp + 0x20], 0
je 0x4a0a74
mov ecx, dword [edi + 0xf0]
cmp ecx, 2
jne 0x4a0a43
mov eax, dword [edi]
mov ecx, edi
push 0x5e1a69
call dword [eax + 0x48]
cmp byte [edi + 0x200], 0
je 0x4a0d02
mov eax, dword [edi + 0x2c]
mov dword [edi + 0x3c], eax
mov eax, dword [edi + 0x30]
mov dword [edi + 0x40], eax
mov eax, dword [edi + 0x34]
push 0x90000000
push 0xfffffffffffffff0
push dword [edi + 0x10]
mov dword [edi + 0x44], eax
mov eax, dword [edi + 0x38]
mov dword [edi + 0x48], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 3
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, edi
call fcn.0049fe80
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x4a0d02
test ecx, ecx
jne 0x4a0a74
mov eax, dword [edi]
mov ecx, edi
push 0x5e1a69
call dword [eax + 0x48]
mov ecx, edi
call fcn.0049de20
cmp byte [edi + 0x200], 0
mov ecx, edi
sete al
movzx eax, al
push eax
call fcn.0049fe80
jmp 0x4a0d02
mov ecx, dword [edi + 0x140]
mov dword [edi + 0x104], 0x28
mov dword [edi + 0x108], eax
mov dword [edi + 0x10c], ebx
mov dword [edi + 0x110], 0x200001
mov dword [edi + 0x114], 0
cmp eax, ecx
jne 0x4a0ab4
cmp ebx, dword [edi + 0x144]
je 0x4a0b52
test ecx, ecx
je 0x4a0adf
push dword [edi + 0x138]
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [edi + 0x13c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [edi + 0x134]
call esi
jmp 0x4a0ae5
inc dword [0x6c4d8c]
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [edi + 0x138], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
push 0
lea ecx, [edi + 0x130]
mov dword [edi + 0x13c], eax
push ecx
push 0
lea ecx, [edi + 0x104]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push dword [edi + 0x13c]
mov dword [edi + 0x134], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x140], eax
xor eax, eax
mov dword [edi + 0x144], ebx
mov ebx, dword [edi + 0x10c]
mov dword [edi + 0x17e], eax
mov eax, dword [edi + 0x108]
imul ebx, eax
shl ebx, 2
push ebx
push dword [ebp - 0x38]
push dword [edi + 0x130]
call fcn.00586300
add esp, 0xc
mov ecx, edi
push dword [edi + 0x138]
call fcn.004a0e00
mov ecx, dword [edi + 0x164]
lea ebx, [edi + 0x168]
cmp dword [ebx], ecx
je 0x4a0d02
mov eax, dword [edi + 0x1a0]
sub eax, dword [edi + 0x19c]
sar eax, 3
cmp ecx, eax
jge 0x4a0d02
push 0
lea eax, [ebp - 0x30]
mov dword [ebx], ecx
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
sub eax, edx
mov ecx, dword [ebp - 0x30]
mov esi, dword [sym.imp.USER32.dll_MoveWindow]
push 0
push eax
mov eax, dword [ebp - 0x28]
sub eax, ecx
push eax
push edx
push ecx
push dword [edi + 0x10]
call esi
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.004a0d30
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x31]
mov byte [ebp - 0x31], 0x77
push eax
push 0
call fcn.00465ce0
push dword [ebp - 0x38]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x50]
call fcn.00465ce0
push dword [ebp - 0x38]
lea eax, [edi + 0x164]
push ebx
push eax
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x50]
call fcn.00465ce0
mov eax, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x50]
sub eax, ebx
mov ecx, dword [edi + 0x198]
push eax
push ebx
call fcn.004faf10
xor eax, eax
push eax
push dword [edi + 0x64]
mov dword [edi + 0x17e], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRect]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push 1
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [edi + 0x10]
call esi
lea eax, [ebp - 0x30]
push eax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_GetDC]
push dword [edi + 0x28]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
push esi
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [edi + 0x200], 0
mov ecx, edi
sete al
movzx eax, al
push eax
call fcn.0049fe80
test ebx, ebx
je 0x4a0d02
mov ecx, dword [ebp - 0x48]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x4a0cf8
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a0d20
push ecx
push ebx
call fcn.0056eec5
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056eeb4
mov esp, ebp
pop ebp
ret 0x1c
call fcn.00591dc6
int3