Function at 0x53f940
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffac
mov edi, edx
mov esi, eax
mov byte [0x598100], 1
mov eax, esi
mov edx, dword [0x476bb0]
call fcn.004038c4
test al, al
je 0x53f98a
push 0
mov dx, 4
xor eax, eax
call fcn.00407b44
push eax
mov eax, dword [0x598488]
mov eax, dword [eax]
push eax
mov eax, esi
call fcn.00467160
push eax
call sub.user32.dll_SendMessageA
mov ebx, eax
jmp 0x53f98c
xor ebx, ebx
test ebx, ebx
je 0x53f9a9
cmp dword [ebx + 0x1f8], 0
je 0x53f9a9
call fcn.0056c548
test al, al
je 0x53f9a9
mov byte [esp + 0x14], 1
jmp 0x53f9ae
mov byte [esp + 0x14], 0
cmp byte [esp + 0x14], 0
je 0x53fe5b
mov eax, esi
mov edx, dword [0x476bb0]
call fcn.004038c4
test al, al
je 0x53fe5b
mov eax, dword [ebx + 0x1dc]
cmp byte [eax + 0x2e0], 0
je 0x53f9f0
mov dl, byte [eax + 0x2e1]
mov byte [esp + 0x30], dl
mov dl, 1
call fcn.0047e694
jmp 0x53f9f5
mov byte [esp + 0x30], 0xff
mov eax, ebx
call fcn.00560f40
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x38]
mov edx, dword [eax]
call dword [edx + 0x2c]
pop edx
call fcn.00575238
mov dword [0x59a084], eax
mov eax, dword [0x59a084]
call fcn.0042fbb0
call fcn.0042aa00
mov eax, dword [0x59a084]
call fcn.0042fbb0
call fcn.0042aef0
mov dword [0x5980f8], eax
push 0
push ebx
xor ecx, ecx
mov edx, esi
mov eax, dword [0x59a084]
call fcn.0053f404
cmp dword [0x59a084], 0
je 0x54012e
xor eax, eax
mov dword [0x5980f8], eax
mov eax, dword [0x59a084]
call fcn.0042fbb0
call fcn.0042ade8
movzx eax, di
shr eax, 3
mov edi, eax
mov dword [esp + 0x18], 0x118
mov eax, dword [0x59a084]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [0x59a084]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x24]
xor edx, edx
xor eax, eax
call fcn.0041cb74
test edi, edi
jle 0x53fab9
mov byte [esp + 0x2e], 0
jmp 0x53fac1
mov al, byte [esp + 0x30]
mov byte [esp + 0x2e], al
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2d], 0
mov byte [esp + 0x2f], 1
cmp byte [ebx + 0x1b0], 0
je 0x53faee
lea edx, [esp + 0x44]
mov eax, ebx
call fcn.00566964
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc], eax
jmp 0x53fb33
lea edx, [esp + 0x44]
mov eax, ebx
call fcn.00566964
mov ebp, dword [esp + 0x48]
mov eax, dword [ebx + 0x1f8]
call fcn.00556a20
add ebp, eax
xor edx, edx
mov eax, ebx
call fcn.005581ac
sub ebp, eax
mov eax, dword [ebx + 0x1dc]
call fcn.00467160
xor ecx, ecx
mov edx, dword [ebx + 0x1f8]
call fcn.005569b8
sub ebp, eax
mov dword [esp + 0xc], ebp
mov eax, dword [ebx + 0x1dc]
call fcn.00467160
xor ecx, ecx
mov edx, dword [ebx + 0x1f8]
call fcn.005569b8
push eax
mov eax, dword [ebx + 0x1f8]
call fcn.00556a40
mov ebp, eax
pop eax
sub ebp, eax
lea edx, [esp + 0x44]
mov eax, ebx
call fcn.00566964
add ebp, dword [esp + 0x44]
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x31]
push eax
mov eax, esi
call fcn.00467160
push eax
call sub.user32.dll_GetWindowRect
push 0xffffffffffffffec
mov eax, esi
call fcn.00467160
push eax
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x53fbad
mov eax, dword [ebx + 0x1f8]
mov eax, dword [eax + 0xc]
mov dl, 3
call fcn.0047b51c
or ebp, 0xffffffff
jmp 0x53fbaf
xor ebp, ebp
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x41]
sub eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x41]
sub eax, dword [esp + 0x20]
push eax
push ebp
mov eax, dword [ebx + 0x1f8]
mov eax, dword [eax + 0xc]
call fcn.00467160
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov dword [esp + 4], eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x1f8]
mov eax, dword [eax + 0xc]
call fcn.00467160
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x1f8]
mov eax, dword [eax + 0xc]
call fcn.00467160
push eax
call sub.user32.dll_SetWindowLongA
push 2
lea eax, [esp + 0x30]
push eax
push 0x1fffffff
lea eax, [esp + 0x30]
push eax
mov eax, dword [0x59a084]
call fcn.0042fbb0
call fcn.0042aef0
push eax
lea eax, [esp + 0x30]
push eax
push 0
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [ebx + 0x1f8]
mov eax, dword [eax + 0xc]
call fcn.00467160
push eax
mov eax, dword [0x598460]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebx + 0x1f8]
mov eax, dword [eax + 0xc]
call fcn.00467160
push eax
call sub.user32.dll_ShowWindow
test edi, edi
jle 0x53fd92
xor eax, eax
mov al, byte [esp + 0x30]
cdq
idiv edi
mov dword [esp + 8], eax
xor ebp, ebp
cmp edi, ebp
jl 0x53fd45
xor edx, edx
mov dl, byte [esp + 0x30]
xor eax, eax
mov al, byte [esp + 0x2e]
add eax, dword [esp + 8]
call fcn.00431d74
mov byte [esp + 0x2e], al
push 2
lea eax, [esp + 0x30]
push eax
push 0x1fffffff
lea eax, [esp + 0x30]
push eax
mov eax, dword [0x59a084]
call fcn.0042fbb0
call fcn.0042aef0
push eax
lea eax, [esp + 0x30]
push eax
push 0
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [ebx + 0x1f8]
mov eax, dword [eax + 0xc]
call fcn.00467160
push eax
mov eax, dword [0x598460]
mov eax, dword [eax]
call eax
mov eax, dword [0x5988a0]
cmp dword [eax], 0
je 0x53fd31
push 0
mov dx, 3
xor eax, eax
call fcn.00407b44
push eax
mov eax, dword [0x598488]
mov eax, dword [eax]
push eax
mov eax, dword [0x5988a0]
mov eax, dword [eax]
call fcn.00467160
push eax
call sub.user32.dll_SendMessageA
inc ebp
test edi, edi
jle 0x53fd3d
push 8
call sub.kernel32.dll_Sleep
cmp edi, ebp
jge 0x53fca1
mov al, byte [esp + 0x30]
mov byte [esp + 0x2e], al
push 2
lea eax, [esp + 0x30]
push eax
push 0x1fffffff
lea eax, [esp + 0x30]
push eax
mov eax, dword [0x59a084]
call fcn.0042fbb0
call fcn.0042aef0
push eax
lea eax, [esp + 0x30]
push eax
push 0
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [ebx + 0x1f8]
mov eax, dword [eax + 0xc]
call fcn.00467160
push eax
mov eax, dword [0x598460]
mov eax, dword [eax]
call eax
push 0
mov eax, dword [esp + 8]
push eax
call sub.user32.dll_ReleaseDC
mov byte [0x598100], 0
mov eax, dword [ebx + 0x1dc]
cmp byte [eax + 0x2e0], 0
je 0x53fdbd
mov dl, byte [esp + 0x30]
call fcn.0047e694
push 0
push 1
push 0xb
mov eax, esi
call fcn.00467160
push eax
call sub.user32.dll_SendMessageA
push 0
mov eax, dword [ebx + 0x1f8]
call fcn.0056a5d8
push eax
mov eax, dword [ebx + 0x1f8]
mov eax, dword [eax + 0xc]
call fcn.00467160
push eax
call sub.user32.dll_SetWindowRgn
push 0x585
push 0
push 0
mov eax, esi
call fcn.00467160
push eax
call sub.user32.dll_RedrawWindow
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x41]
sub eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x41]
sub eax, dword [esp + 0x20]
push eax
mov eax, esi
call fcn.00467160
push eax
mov eax, dword [ebx + 0x1f8]
mov eax, dword [eax + 0xc]
call fcn.00467160
push eax
call sub.user32.dll_SetWindowPos
xor eax, eax
mov dword [0x5980f8], eax
mov eax, 0x59a084
call fcn.0040f0d4
jmp 0x54012e
cmp dword [0x5980f4], 0
jne 0x53fe6b
mov eax, esi
call fcn.0053f824
cmp dword [0x5980f4], 0
je 0x54012e
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
call fcn.005751f8
mov dword [0x59a084], eax
mov eax, dword [0x59a084]
call fcn.0042fbb0
call fcn.0042aa00
mov eax, dword [0x59a084]
call fcn.0042fbb0
call fcn.0042aef0
mov dword [0x5980f8], eax
push 0
push 0
xor ecx, ecx
mov edx, esi
mov eax, dword [0x59a084]
call fcn.0053f404
cmp dword [0x59a084], 0
je 0x54012e
xor eax, eax
mov dword [0x5980f8], eax
mov eax, dword [0x59a084]
call fcn.0042fbb0
call fcn.0042ade8
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
call fcn.00575238
mov dword [esp], eax
movzx eax, di
shr eax, 3
mov edi, eax
cmp byte [esp + 0x14], 0
jne 0x53ff35
test ebx, ebx
je 0x53ff35
mov ebp, ebx
mov eax, ebp
call fcn.005572c0
cmp dword [0x5980f4], 0
je 0x54012e
push 0
xor ecx, ecx
xor edx, edx
mov eax, ebp
call fcn.005576a4
push eax
mov eax, dword [0x5980f4]
call fcn.00467160
push eax
call sub.user32.dll_SetWindowRgn
mov eax, dword [0x5980f4]
call fcn.00467160
push eax
call sub.user32.dll_GetWindowDC
mov dword [esp + 4], eax
test edi, edi
jle 0x540007
mov eax, 0xff
cdq
idiv edi
mov dword [esp + 8], eax
mov ebx, 0xff
xor ebp, ebp
cmp edi, ebp
jl 0x540007
push 0
mov edx, ebx
xor eax, eax
call fcn.00431df0
push eax
mov ecx, 0x59a084
mov edx, 0x5980fc
lea eax, [esp + 8]
call fcn.00574f28
push 0xcc0020
push 0
push 0
mov eax, dword [esp + 0xc]
call fcn.0042fbb0
call fcn.0042aef0
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x48]
push eax
push 0
push 0
mov eax, dword [esp + 0x24]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [0x5988a0]
cmp dword [eax], 0
je 0x53ffeb
push 0
mov dx, 3
xor eax, eax
call fcn.00407b44
push eax
mov eax, dword [0x598488]
mov eax, dword [eax]
push eax
mov eax, dword [0x5988a0]
mov eax, dword [eax]
call fcn.00467160
push eax
call sub.user32.dll_SendMessageA
inc ebp
sub ebx, dword [esp + 8]
cmp edi, ebp
jl 0x540007
test edi, edi
jle 0x53ffff
push 8
call sub.kernel32.dll_Sleep
cmp edi, ebp
jge 0x53ff6c
push 0xcc0020
push 0
push 0
mov eax, dword [0x59a084]
call fcn.0042fbb0
call fcn.0042aef0
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x48]
push eax
push 0
push 0
mov eax, dword [esp + 0x24]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [0x5988a0]
cmp dword [eax], 0
je 0x540068
push 0
mov dx, 3
xor eax, eax
call fcn.00407b44
push eax
mov eax, dword [0x598488]
mov eax, dword [eax]
push eax
mov eax, dword [0x5988a0]
mov eax, dword [eax]
call fcn.00467160
push eax
call sub.user32.dll_SendMessageA
mov byte [0x598100], 0
push 0
push 1
push 0xb
mov eax, esi
call fcn.00467160
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [0x598618]
cmp dword [eax], 6
jl 0x5400a2
push 0x585
push 0
push 0
mov eax, esi
call fcn.00467160
push eax
call sub.user32.dll_RedrawWindow
mov eax, esi
mov edx, dword [0x476bb0]
call fcn.004038c4
test al, al
je 0x5400ce
push 0xffffffffffffffec
mov eax, esi
call fcn.00467160
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0x80000
cmp eax, 0x80000
je 0x5400ed
push 0x9c
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x5980f4]
call fcn.00467160
push eax
call sub.user32.dll_SetWindowPos
mov eax, dword [esp + 4]
push eax
mov eax, dword [0x5980f4]
call fcn.00467160
push eax
call sub.user32.dll_ReleaseDC
mov eax, 0x5980f4
call fcn.0040f0d4
mov eax, esp
call fcn.0040f0d4
xor eax, eax
mov dword [0x5980f8], eax
mov eax, 0x5980fc
call fcn.0040f0d4
mov eax, 0x59a084
call fcn.0040f0d4
add esp, 0x54
pop ebp
pop edi
pop esi
pop ebx
ret