Function at 0x51b650
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff38
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov edi, edx
mov esi, eax
mov byte [0x69ea28], 1
mov eax, esi
mov edx, dword [0x4e395c]
call fcn.00405304
test al, al
je 0x51b69b
push 0
push 0x40000
mov eax, dword [0x6a1e78]
mov eax, dword [eax]
push eax
mov eax, esi
call fcn.004cdf0c
push eax
call sub.user32.dll_SendMessageW
mov ebx, eax
jmp 0x51b69d
xor ebx, ebx
test ebx, ebx
je 0x51b6b9
cmp dword [ebx + 0x268], 0
je 0x51b6b9
call fcn.005b2d68
test al, al
je 0x51b6b9
mov byte [ebp - 0x71], 1
jmp 0x51b6bd
mov byte [ebp - 0x71], 0
call fcn.005b2d68
test al, al
je 0x51c011
mov eax, esi
mov edx, dword [0x4e395c]
call fcn.00405304
test al, al
je 0x51c011
cmp dword [ebx + 0x268], 0
je 0x51b727
cmp dword [ebx + 0xd0], 0
je 0x51b707
mov eax, dword [ebx + 0xd0]
mov dword [ebp - 0x90], eax
xor eax, eax
mov dword [ebx + 0xd0], eax
jmp 0x51b727
xor edx, edx
xor eax, eax
call fcn.005bcb7c
mov dword [ebp - 0x90], eax
mov eax, dword [ebx + 0x54]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
call fcn.0055f690
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x44]
mov edx, dword [eax]
call dword [edx + 0x30]
pop edx
call fcn.005bcb7c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.00460284
call fcn.0045965c
push 0
push ebx
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.00518e60
cmp dword [ebp - 0x1c], 0
je 0x51c306
cmp dword [ebx + 0x268], 0
jne 0x51b7b5
push 0x1fffffff
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0040ae20
lea edx, [ebp - 0xc8]
mov cl, 0xff
mov eax, dword [ebp - 0x1c]
call fcn.005a01f0
mov eax, dword [ebp - 0x1c]
call fcn.00460284
call fcn.00459760
movzx eax, di
mov ecx, 0xc
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x78], 0x11b
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
mov dword [ebp - 0x7c], eax
xor eax, eax
mov dword [ebp - 0x98], eax
xor eax, eax
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x10], 0
jle 0x51b822
mov byte [ebp - 0x52], 0
jmp 0x51b829
movzx eax, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov byte [ebp - 0x54], 0
mov byte [ebp - 0x53], 0
mov byte [ebp - 0x51], 1
mov eax, dword [ebx + 0x268]
test eax, eax
je 0x51bd5a
cmp dword [eax + 0x18], 0
jne 0x51b84e
call fcn.0056d030
mov eax, dword [ebx + 0x268]
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x38], ecx
mov ecx, dword [eax + 0x24]
mov dword [edx + 0x3c], ecx
cmp dword [eax + 0x30], 0
je 0x51b889
mov eax, dword [ebx + 0x268]
mov eax, dword [eax + 0x30]
push eax
push 0xfffffffffffffff8
mov eax, dword [ebx + 0x268]
mov eax, dword [eax + 0x18]
call fcn.004cdf0c
push eax
call sub.user32.dll_SetWindowLongW
mov eax, dword [ebx + 0x268]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebx + 0x268]
call fcn.0056d030
cmp byte [ebx + 0x20c], 0
je 0x51b8c7
lea edx, [ebp - 0xc8]
mov eax, ebx
call fcn.005650e0
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x6c], eax
jmp 0x51b9c8
mov eax, dword [ebx + 0x24c]
call fcn.004cdf0c
push eax
call sub.user32.dll_IsZoomed
test eax, eax
je 0x51b97c
mov eax, dword [ebx + 0x54]
call fcn.005c22b4
mov eax, dword [eax + 0xcc]
movzx edi, word [eax + 0x2e]
mov eax, dword [ebx + 0x54]
call fcn.005c22b4
mov eax, dword [eax + 0xcc]
cmp di, word [eax + 0x2c]
je 0x51b97c
mov eax, dword [ebx + 0x24c]
call fcn.004cdf0c
xor ecx, ecx
mov edx, dword [ebx + 0x268]
call fcn.005510dc
push eax
lea edx, [ebp - 0xc8]
mov eax, ebx
call fcn.005650e0
mov edi, dword [ebp - 0xc4]
mov eax, dword [ebx + 0x268]
call fcn.005511c0
add edi, eax
mov eax, dword [ebx + 0x24c]
call fcn.00551144
sub edi, eax
pop eax
sub edi, eax
mov eax, dword [ebx + 0x54]
call fcn.005c22b4
mov eax, dword [eax + 0xcc]
movsx eax, word [eax + 0x2c]
add edi, eax
mov eax, dword [ebx + 0x54]
call fcn.005c22b4
mov eax, dword [eax + 0xcc]
movsx eax, word [eax + 0x2e]
sub edi, eax
mov dword [ebp - 0x6c], edi
jmp 0x51b9c8
mov eax, dword [ebx + 0x24c]
call fcn.004cdf0c
xor ecx, ecx
mov edx, dword [ebx + 0x268]
call fcn.005510dc
push eax
lea edx, [ebp - 0xc8]
mov eax, ebx
call fcn.005650e0
mov edi, dword [ebp - 0xc4]
mov eax, dword [ebx + 0x268]
call fcn.005511c0
add edi, eax
mov eax, dword [ebx + 0x24c]
call fcn.00551144
sub edi, eax
pop eax
sub edi, eax
mov dword [ebp - 0x6c], edi
mov eax, dword [ebx + 0x24c]
call fcn.004cdf0c
xor ecx, ecx
mov edx, dword [ebx + 0x268]
call fcn.005510dc
push eax
mov eax, dword [ebx + 0x268]
call fcn.005511e0
mov edi, eax
pop eax
sub edi, eax
lea edx, [ebp - 0xc8]
mov eax, ebx
call fcn.005650e0
add edi, dword [ebp - 0xc8]
mov dword [ebp - 0x70], edi
lea eax, [ebp - 0xb8]
push eax
mov eax, esi
call fcn.004cdf0c
push eax
call sub.user32.dll_GetWindowRect
mov edx, dword [ebp - 0xb8]
sub edx, dword [ebp - 0x70]
mov eax, dword [ebx + 0x268]
mov eax, dword [eax + 0x18]
call fcn.004f1d04
mov edx, dword [ebp - 0xb4]
sub edx, dword [ebp - 0x6c]
mov eax, dword [ebx + 0x268]
mov eax, dword [eax + 0x18]
call fcn.004f1d40
mov eax, dword [ebx + 0x268]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x80]
call fcn.004c45c8
mov eax, dword [ebx + 0x268]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x7c]
call fcn.004c45fc
push 3
mov eax, dword [ebx + 0x24c]
call fcn.004cdf0c
push eax
call sub.user32.dll_GetWindow
mov edi, eax
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x80]
push eax
mov eax, dword [ebp - 0xb4]
sub eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0xb8]
sub eax, dword [ebp - 0x70]
push eax
push edi
mov eax, dword [ebx + 0x268]
mov eax, dword [eax + 0x18]
call fcn.004cdf0c
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x64], eax
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00460284
call fcn.0045a64c
push eax
lea eax, [ebp - 0x80]
push eax
push 0
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebx + 0x268]
mov eax, dword [eax + 0x18]
call fcn.004cdf0c
push eax
mov eax, dword [0x6a19d0]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebx + 0x268]
mov eax, dword [eax + 0x18]
call fcn.004cdf0c
push eax
call sub.user32.dll_ShowWindow
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
call fcn.005bcb7c
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0040ae20
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0x58]
call fcn.00460284
call fcn.0045a64c
xor ecx, ecx
pop edx
call fcn.005b7470
cmp dword [ebp - 0x10], 0
jle 0x51bc68
push ebp
call fcn.0051b2ac
pop ecx
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x51bc61
push ebp
call fcn.0051b400
pop ecx
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x58]
call fcn.00460284
call fcn.0045a64c
push eax
lea eax, [ebp - 0x80]
push eax
push 0
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebx + 0x268]
mov eax, dword [eax + 0x18]
call fcn.004cdf0c
push eax
mov eax, dword [0x6a19d0]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x8c]
call fcn.004cdf0c
mov dword [ebp - 0xa4], eax
movzx eax, byte [ebp - 0x52]
mov edx, dword [ebp - 0xc]
sub edx, eax
lea eax, [edx + edx*2]
test eax, eax
jge 0x51bbf4
xor eax, eax
mov dword [ebp - 0x9c], eax
jmp 0x51bc06
movzx eax, byte [ebp - 0x52]
mov edx, dword [ebp - 0xc]
sub edx, eax
lea eax, [edx + edx*2]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0xff
jle 0x51bc1e
mov dword [ebp - 0xa0], 0xff
jmp 0x51bc2a
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
push 0
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0xa4]
call fcn.0054ff68
push ebp
call fcn.0051b5f4
pop ecx
inc edi
cmp dword [ebp - 0x10], 0
jle 0x51bc58
push 0xc
call sub.kernel32.dll_Sleep_1
cmp edi, dword [ebp - 0x10]
jle 0x51bb80
movzx eax, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov eax, dword [ebp - 0x64]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov byte [0x69ea28], 0
mov eax, dword [ebx + 0x24c]
cmp byte [eax + 0x340], 0
je 0x51bc98
movzx edx, byte [ebp - 0xc]
mov eax, dword [ebx + 0x24c]
call fcn.004f1b88
push 0
push 1
push 0xb
mov eax, esi
call fcn.004cdf0c
push eax
call sub.user32.dll_SendMessageW
push 0x585
push 0
push 0
mov eax, esi
call fcn.004cdf0c
push eax
call sub.user32.dll_RedrawWindow
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebx + 0x268]
call fcn.0056cec8
push eax
mov eax, dword [ebx + 0x268]
mov eax, dword [eax + 0x18]
call fcn.004cdf0c
push eax
call sub.user32.dll_SetWindowRgn
mov eax, dword [ebp - 0x78]
or eax, 4
push eax
mov eax, dword [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x80]
push eax
mov eax, dword [ebp - 0xb4]
sub eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0xb8]
sub eax, dword [ebp - 0x70]
push eax
push 0
mov eax, dword [ebx + 0x268]
mov eax, dword [eax + 0x18]
call fcn.004cdf0c
push eax
call sub.user32.dll_SetWindowPos
mov cl, 0xff
xor edx, edx
mov eax, dword [ebx + 0x268]
call fcn.0056bd08
mov eax, dword [ebp - 0x90]
xor edx, edx
mov dword [ebp - 0x90], edx
call fcn.004050e8
mov eax, dword [ebp - 0x8c]
xor edx, edx
mov dword [ebp - 0x8c], edx
call fcn.004050e8
jmp 0x51bff2
lea eax, [ebp - 0xb8]
push eax
mov eax, esi
call fcn.004cdf0c
push eax
call sub.user32.dll_GetWindowRect
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4e4dbc]
call fcn.004eb2f0
mov edi, eax
mov dword [0x69ea24], edi
mov dword [edi + 0xc], 0xffffff9e
xor edx, edx
mov eax, edi
call fcn.004ed258
mov edx, dword [esi + 0x40]
mov eax, dword [0x69ea24]
call fcn.004c4560
mov edx, dword [esi + 0x44]
mov eax, dword [0x69ea24]
call fcn.004c4594
mov edx, dword [esi + 0x48]
mov eax, dword [0x69ea24]
call fcn.004c45c8
mov edx, dword [esi + 0x4c]
mov eax, dword [0x69ea24]
call fcn.004c45fc
push 0xffffffffffffffec
mov eax, esi
call fcn.004cdf0c
push eax
call sub.user32.dll_GetWindowLongW
and eax, 8
cmp eax, 8
jne 0x51bdf0
mov dl, 3
mov eax, dword [0x69ea24]
call fcn.004ed678
or edi, 0xffffffff
jmp 0x51be05
push 3
mov eax, dword [ebx + 0x24c]
call fcn.004cdf0c
push eax
call sub.user32.dll_GetWindow
mov edi, eax
mov eax, dword [ebp - 0x78]
and eax, 0xfffffffd
push eax
mov eax, dword [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x80]
push eax
mov eax, dword [0x69ea24]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [0x69ea24]
mov eax, dword [eax + 0x40]
push eax
push edi
mov eax, dword [0x69ea24]
call fcn.004cdf0c
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x64], eax
push 0xffffffffffffffec
mov eax, dword [0x69ea24]
call fcn.004cdf0c
push eax
call sub.user32.dll_GetWindowLongW
or eax, 0x80000
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [0x69ea24]
call fcn.004cdf0c
push eax
call sub.user32.dll_SetWindowLongW
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00460284
call fcn.0045a64c
push eax
lea eax, [ebp - 0x80]
push eax
push 0
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [0x69ea24]
call fcn.004cdf0c
push eax
mov eax, dword [0x6a19d0]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [0x69ea24]
call fcn.004cdf0c
push eax
call sub.user32.dll_ShowWindow
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
call fcn.005bcb7c
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0040ae20
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0x58]
call fcn.00460284
call fcn.0045a64c
xor ecx, ecx
pop edx
call fcn.005b7470
cmp dword [ebp - 0x10], 0
jle 0x51bf87
push ebp
call fcn.0051b2ac
pop ecx
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x51bf80
push ebp
call fcn.0051b400
pop ecx
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x58]
call fcn.00460284
call fcn.0045a64c
push eax
lea eax, [ebp - 0x80]
push eax
push 0
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [0x69ea24]
call fcn.004cdf0c
push eax
mov eax, dword [0x6a19d0]
mov eax, dword [eax]
call eax
push ebp
call fcn.0051b5f4
pop ecx
inc edi
cmp dword [ebp - 0x10], 0
jle 0x51bf7b
push 0xc
call sub.kernel32.dll_Sleep_1
cmp edi, dword [ebp - 0x10]
jle 0x51bf21
movzx eax, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov eax, dword [ebp - 0x64]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov byte [0x69ea28], 0
mov eax, dword [ebx + 0x24c]
cmp byte [eax + 0x340], 0
je 0x51bfb7
movzx edx, byte [ebp - 0xc]
mov eax, dword [ebx + 0x24c]
call fcn.004f1b88
push 0
push 1
push 0xb
mov eax, esi
call fcn.004cdf0c
push eax
call sub.user32.dll_SendMessageW
push 0x585
push 0
push 0
mov eax, esi
call fcn.004cdf0c
push eax
call sub.user32.dll_RedrawWindow
mov eax, dword [0x69ea24]
xor edx, edx
mov dword [0x69ea24], edx
call fcn.004050e8
mov eax, dword [ebp - 0x58]
xor edx, edx
mov dword [ebp - 0x58], edx
call fcn.004050e8
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x1c], edx
call fcn.004050e8
jmp 0x51c306
cmp dword [0x69ea24], 0
jne 0x51c021
mov eax, esi
call fcn.0051b194
cmp dword [0x69ea24], 0
je 0x51c306
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
call fcn.005bcb7c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.00460284
call fcn.0045965c
mov eax, dword [ebp - 0x1c]
call fcn.00460284
call fcn.0045a64c
push eax
call sub.gdi32.dll_SaveDC
mov dword [ebp - 0x60], eax
push 0
push 0
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.00518e60
cmp dword [ebp - 0x1c], 0
je 0x51c306
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00460284
call fcn.0045a64c
push eax
call sub.gdi32.dll_RestoreDC
mov eax, dword [ebp - 0x1c]
call fcn.00460284
call fcn.00459760
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
call fcn.005bcb7c
mov dword [ebp - 0x5c], eax
movzx eax, di
mov ecx, 0xc
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
cmp byte [ebp - 0x71], 0
jne 0x51c0f6
test ebx, ebx
je 0x51c0f6
mov eax, ebx
call fcn.00551c28
cmp dword [0x69ea24], 0
je 0x51c306
push 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00552080
push eax
mov eax, dword [0x69ea24]
call fcn.004cdf0c
push eax
call sub.user32.dll_SetWindowRgn
mov eax, dword [0x69ea24]
call fcn.004cdf0c
push eax
call sub.user32.dll_GetWindowDC
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x10], 0
jle 0x51c1d2
mov eax, 0xff
cdq
idiv dword [ebp - 0x10]
mov dword [ebp - 0x68], eax
mov ebx, 0xff
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x51c1d2
test ebx, ebx
jge 0x51c13d
xor eax, eax
mov dword [ebp - 0xa8], eax
jmp 0x51c143
mov dword [ebp - 0xa8], ebx
push 0
mov eax, dword [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x1c]
mov edx, 0x69ea38
lea eax, [ebp - 0x5c]
call fcn.005bc8f4
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x5c]
call fcn.00460284
call fcn.0045a64c
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 0x64]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [0x6a1ef8]
cmp dword [eax], 0
je 0x51c1b3
push 0
push 0x30000
mov eax, dword [0x6a1e78]
mov eax, dword [eax]
push eax
mov eax, dword [0x6a1ef8]
mov eax, dword [eax]
call fcn.004cdf0c
push eax
call sub.user32.dll_SendMessageW
inc edi
sub ebx, dword [ebp - 0x68]
cmp edi, dword [ebp - 0x10]
jg 0x51c1d2
cmp dword [ebp - 0x10], 0
jle 0x51c1c9
push 0xc
call sub.kernel32.dll_Sleep_1
cmp edi, dword [ebp - 0x10]
jle 0x51c12f
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00460284
call fcn.0045a64c
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 0x64]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [0x6a1ef8]
cmp dword [eax], 0
je 0x51c229
push 0
push 0x30000
mov eax, dword [0x6a1e78]
mov eax, dword [eax]
push eax
mov eax, dword [0x6a1ef8]
mov eax, dword [eax]
call fcn.004cdf0c
push eax
call sub.user32.dll_SendMessageW
mov byte [0x69ea28], 0
cmp byte [esi + 0x59], 0
je 0x51c2b4
push 0
push 1
push 0xb
mov eax, esi
call fcn.004cdf0c
push eax
call sub.user32.dll_SendMessageW
mov eax, dword [0x6a1be8]
cmp dword [eax], 6
jl 0x51c269
push 0x585
push 0
push 0
mov eax, esi
call fcn.004cdf0c
push eax
call sub.user32.dll_RedrawWindow
mov eax, esi
mov edx, dword [0x4e395c]
call fcn.00405304
test al, al
je 0x51c295
push 0xffffffffffffffec
mov eax, esi
call fcn.004cdf0c
push eax
call sub.user32.dll_GetWindowLongW
and eax, 0x80000
cmp eax, 0x80000
je 0x51c2b4
push 0x9c
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x69ea24]
call fcn.004cdf0c
push eax
call sub.user32.dll_SetWindowPos
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [0x69ea24]
call fcn.004cdf0c
push eax
call sub.user32.dll_ReleaseDC
mov eax, dword [0x69ea24]
xor edx, edx
mov dword [0x69ea24], edx
call fcn.004050e8
mov eax, dword [ebp - 0x5c]
xor edx, edx
mov dword [ebp - 0x5c], edx
call fcn.004050e8
mov eax, dword [0x69ea38]
xor edx, edx
mov dword [0x69ea38], edx
call fcn.004050e8
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x1c], edx
call fcn.004050e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4