Function at 0x4d9028
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov edi, edx
mov esi, eax
mov byte [0x574b60], 1
mov eax, esi
mov edx, dword [0x45f730]
call fcn.00403c78
test al, al
je 0x4d907a
push 0
mov dx, 4
xor eax, eax
call fcn.00408078
push eax
mov eax, dword [0x575ea0]
mov eax, dword [eax]
push eax
mov eax, esi
call fcn.004505e0
push eax
call sub.user32.dll_SendMessageA
mov ebx, eax
jmp 0x4d907c
xor ebx, ebx
test ebx, ebx
je 0x4d9098
cmp dword [ebx + 0x248], 0
je 0x4d9098
call fcn.004dc3c4
test al, al
je 0x4d9098
mov byte [ebp - 0x6d], 1
jmp 0x4d909c
mov byte [ebp - 0x6d], 0
call fcn.004dc3c4
test al, al
je 0x4d991d
mov eax, esi
mov edx, dword [0x45f730]
call fcn.00403c78
test al, al
je 0x4d991d
cmp dword [ebx + 0x248], 0
je 0x4d9101
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x4d90e1
mov dword [ebp - 0x8c], eax
xor eax, eax
mov dword [ebx + 0xb0], eax
jmp 0x4d9101
xor edx, edx
xor eax, eax
call fcn.004e502c
mov dword [ebp - 0x8c], eax
mov eax, dword [ebx + 0x54]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
call fcn.004fca40
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x2c]
pop edx
call fcn.004e502c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.0042e194
call fcn.00429410
push 0
push ebx
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.004d6bc8
cmp dword [ebp - 0x1c], 0
je 0x4d9bca
cmp dword [ebx + 0x248], 0
jne 0x4d918c
push 0
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041d248
lea edx, [ebp - 0xac]
mov cl, 0xff
mov eax, dword [ebp - 0x1c]
call fcn.004ca884
mov eax, dword [ebp - 0x1c]
call fcn.0042e194
call fcn.004297f8
movzx eax, di
mov ecx, 0xc
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x74], 0x11b
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x84]
xor edx, edx
xor eax, eax
call fcn.0041d220
cmp dword [ebp - 0x10], 0
jle 0x4d91e0
mov byte [ebp - 0x52], 0
jmp 0x4d91e6
mov al, 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 + 0x248]
test eax, eax
je 0x4d9680
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0x38], ecx
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x3c], ecx
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x88], eax
mov eax, dword [ebx + 0x248]
call fcn.00506bb8
cmp byte [ebx + 0x1ec], 0
je 0x4d924d
lea edx, [ebp - 0xac]
mov eax, ebx
call fcn.00501e2c
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x68], eax
jmp 0x4d9346
mov eax, dword [ebx + 0x22c]
call fcn.004505e0
push eax
call sub.user32.dll_IsZoomed
test eax, eax
je 0x4d92fe
mov eax, dword [ebx + 0x54]
call fcn.00518764
mov eax, dword [eax + 0x90]
mov di, word [eax + 0x2e]
mov eax, dword [ebx + 0x54]
call fcn.00518764
mov eax, dword [eax + 0x90]
cmp di, word [eax + 0x2c]
je 0x4d92fe
lea edx, [ebp - 0xac]
mov eax, ebx
call fcn.00501e2c
mov edi, dword [ebp - 0xa8]
mov eax, dword [ebx + 0x248]
call fcn.004f03e4
add edi, eax
xor edx, edx
mov eax, ebx
call fcn.004f1e58
sub edi, eax
mov eax, dword [ebx + 0x22c]
call fcn.004505e0
xor ecx, ecx
mov edx, dword [ebx + 0x248]
call fcn.004f037c
sub edi, eax
mov eax, dword [ebx + 0x54]
call fcn.00518764
mov eax, dword [eax + 0x90]
movsx eax, word [eax + 0x2c]
add edi, eax
mov eax, dword [ebx + 0x54]
call fcn.00518764
mov eax, dword [eax + 0x90]
movsx eax, word [eax + 0x2e]
sub edi, eax
mov dword [ebp - 0x68], edi
jmp 0x4d9346
lea edx, [ebp - 0xac]
mov eax, ebx
call fcn.00501e2c
mov edi, dword [ebp - 0xa8]
mov eax, dword [ebx + 0x248]
call fcn.004f03e4
add edi, eax
xor edx, edx
mov eax, ebx
call fcn.004f1e58
sub edi, eax
mov eax, dword [ebx + 0x22c]
call fcn.004505e0
xor ecx, ecx
mov edx, dword [ebx + 0x248]
call fcn.004f037c
sub edi, eax
mov dword [ebp - 0x68], edi
mov eax, dword [ebx + 0x22c]
call fcn.004505e0
xor ecx, ecx
mov edx, dword [ebx + 0x248]
call fcn.004f037c
push eax
mov eax, dword [ebx + 0x248]
call fcn.004f0404
mov edi, eax
pop eax
sub edi, eax
lea edx, [ebp - 0xac]
mov eax, ebx
call fcn.00501e2c
add edi, dword [ebp - 0xac]
mov dword [ebp - 0x6c], edi
lea eax, [ebp - 0x9c]
push eax
mov eax, esi
call fcn.004505e0
push eax
call sub.user32.dll_GetWindowRect
mov edx, dword [ebp - 0x9c]
sub edx, dword [ebp - 0x6c]
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.00449508
mov edx, dword [ebp - 0x98]
sub edx, dword [ebp - 0x68]
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.0044952c
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x7c]
call fcn.00449554
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x78]
call fcn.00449578
push 3
mov eax, dword [ebx + 0x22c]
call fcn.004505e0
push eax
call sub.user32.dll_GetWindow
mov edi, eax
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0x6c]
push eax
push edi
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.004505e0
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x60], eax
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0042e194
call fcn.00429900
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.004505e0
push eax
mov eax, dword [0x575e84]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.004505e0
push eax
call sub.user32.dll_ShowWindow
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
call fcn.004e502c
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041d248
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x58]
call fcn.0042e194
call fcn.00429900
xor ecx, ecx
pop edx
call fcn.004e02c0
cmp dword [ebp - 0x10], 0
jle 0x4d95a5
push ebp
call fcn.004d8cb0
pop ecx
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x4d959f
push ebp
call fcn.004d8e10
pop ecx
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x58]
call fcn.0042e194
call fcn.00429900
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.004505e0
push eax
mov eax, dword [0x575e84]
mov eax, dword [eax]
call eax
push 0
xor eax, eax
mov al, byte [ebp - 0x52]
mov edx, dword [ebp - 0xc]
sub edx, eax
lea edx, [edx + edx*2]
xor eax, eax
call fcn.00430460
mov edx, eax
mov eax, 0xff
call fcn.0043039c
push eax
mov eax, dword [ebp - 0x88]
call fcn.004505e0
mov edx, dword [ebp - 0x8c]
pop ecx
call fcn.004ef3e0
push ebp
call fcn.004d8fcc
pop ecx
inc edi
cmp dword [ebp - 0x10], 0
jle 0x4d9596
push 0xc
call sub.kernel32.dll_Sleep
cmp edi, dword [ebp - 0x10]
jle 0x4d94fe
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov eax, dword [ebp - 0x60]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov byte [0x574b60], 0
mov eax, dword [ebx + 0x22c]
cmp byte [eax + 0x2e0], 0
je 0x4d95ce
mov dl, byte [ebp - 0xc]
call fcn.00467164
push 0
push 1
push 0xb
mov eax, esi
call fcn.004505e0
push eax
call sub.user32.dll_SendMessageA
push 0x585
push 0
push 0
mov eax, esi
call fcn.004505e0
push eax
call sub.user32.dll_RedrawWindow
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebx + 0x248]
call fcn.00506a64
push eax
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.004505e0
push eax
call sub.user32.dll_SetWindowRgn
mov eax, dword [ebp - 0x74]
or eax, 4
push eax
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0x6c]
push eax
push 0
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.004505e0
push eax
call sub.user32.dll_SetWindowPos
mov cl, 0xff
xor edx, edx
mov eax, dword [ebx + 0x248]
call fcn.00505c90
lea eax, [ebp - 0x8c]
call fcn.0040f7ec
lea eax, [ebp - 0x88]
call fcn.0040f7ec
jmp 0x4d9908
lea eax, [ebp - 0x9c]
push eax
mov eax, esi
call fcn.004505e0
push eax
call sub.user32.dll_GetWindowRect
xor ecx, ecx
mov dl, 1
mov eax, dword [0x45fa34]
call fcn.00462514
mov edi, eax
mov dword [0x574b5c], edi
mov dword [edi + 0xc], 0xffffff9e
xor edx, edx
mov eax, edi
call fcn.00463ce8
mov edx, dword [esi + 0x40]
mov eax, dword [0x574b5c]
call fcn.00449508
mov edx, dword [esi + 0x44]
mov eax, dword [0x574b5c]
call fcn.0044952c
mov edx, dword [esi + 0x48]
mov eax, dword [0x574b5c]
call fcn.00449554
mov edx, dword [esi + 0x4c]
mov eax, dword [0x574b5c]
call fcn.00449578
push 0xffffffffffffffec
mov eax, esi
call fcn.004505e0
push eax
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x4d9716
mov dl, 3
mov eax, dword [0x574b5c]
call fcn.00463fe4
or edi, 0xffffffff
jmp 0x4d972b
push 3
mov eax, dword [ebx + 0x22c]
call fcn.004505e0
push eax
call sub.user32.dll_GetWindow
mov edi, eax
mov eax, dword [ebp - 0x74]
and eax, 0xfffffffd
push eax
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x7c]
push eax
mov eax, dword [0x574b5c]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [0x574b5c]
mov eax, dword [eax + 0x40]
push eax
push edi
mov eax, dword [0x574b5c]
call fcn.004505e0
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x60], eax
push 0xffffffffffffffec
mov eax, dword [0x574b5c]
call fcn.004505e0
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [0x574b5c]
call fcn.004505e0
push eax
call sub.user32.dll_SetWindowLongA
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0042e194
call fcn.00429900
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [0x574b5c]
call fcn.004505e0
push eax
mov eax, dword [0x575e84]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [0x574b5c]
call fcn.004505e0
push eax
call sub.user32.dll_ShowWindow
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
call fcn.004e502c
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041d248
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x58]
call fcn.0042e194
call fcn.00429900
xor ecx, ecx
pop edx
call fcn.004e02c0
cmp dword [ebp - 0x10], 0
jle 0x4d98ac
push ebp
call fcn.004d8cb0
pop ecx
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x4d98a6
push ebp
call fcn.004d8e10
pop ecx
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x58]
call fcn.0042e194
call fcn.00429900
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [0x574b5c]
call fcn.004505e0
push eax
mov eax, dword [0x575e84]
mov eax, dword [eax]
call eax
push ebp
call fcn.004d8fcc
pop ecx
inc edi
cmp dword [ebp - 0x10], 0
jle 0x4d98a1
push 0xc
call sub.kernel32.dll_Sleep
cmp edi, dword [ebp - 0x10]
jle 0x4d9847
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov eax, dword [ebp - 0x60]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov byte [0x574b60], 0
mov eax, dword [ebx + 0x22c]
cmp byte [eax + 0x2e0], 0
je 0x4d98d5
mov dl, byte [ebp - 0xc]
call fcn.00467164
push 0
push 1
push 0xb
mov eax, esi
call fcn.004505e0
push eax
call sub.user32.dll_SendMessageA
push 0x585
push 0
push 0
mov eax, esi
call fcn.004505e0
push eax
call sub.user32.dll_RedrawWindow
mov eax, 0x574b5c
call fcn.0040f7ec
lea eax, [ebp - 0x58]
call fcn.0040f7ec
lea eax, [ebp - 0x1c]
call fcn.0040f7ec
jmp 0x4d9bca
cmp dword [0x574b5c], 0
jne 0x4d992d
mov eax, esi
call fcn.004d8b98
cmp dword [0x574b5c], 0
je 0x4d9bca
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
call fcn.004e502c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.0042e194
call fcn.00429410
push 0
push 0
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.004d6bc8
cmp dword [ebp - 0x1c], 0
je 0x4d9bca
mov eax, dword [ebp - 0x1c]
call fcn.0042e194
call fcn.004297f8
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
call fcn.004e502c
mov dword [ebp - 0x5c], eax
movzx eax, di
mov ecx, 0xc
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
cmp byte [ebp - 0x6d], 0
jne 0x4d99d7
test ebx, ebx
je 0x4d99d7
mov edi, ebx
mov eax, edi
call fcn.004f0d9c
cmp dword [0x574b5c], 0
je 0x4d9bca
push 0
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.004f11ac
push eax
mov eax, dword [0x574b5c]
call fcn.004505e0
push eax
call sub.user32.dll_SetWindowRgn
mov eax, dword [0x574b5c]
call fcn.004505e0
push eax
call sub.user32.dll_GetWindowDC
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x10], 0
jle 0x4d9aa9
mov eax, 0xff
cdq
idiv dword [ebp - 0x10]
mov dword [ebp - 0x64], eax
mov ebx, 0xff
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x4d9aa9
push 0
mov edx, ebx
xor eax, eax
call fcn.00430460
push eax
lea ecx, [ebp - 0x1c]
mov edx, 0x574b70
lea eax, [ebp - 0x5c]
call fcn.004e4d8c
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x5c]
call fcn.0042e194
call fcn.00429900
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 0x60]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [0x576260]
cmp dword [eax], 0
je 0x4d9a8a
push 0
mov dx, 3
xor eax, eax
call fcn.00408078
push eax
mov eax, dword [0x575ea0]
mov eax, dword [eax]
push eax
mov eax, dword [0x576260]
mov eax, dword [eax]
call fcn.004505e0
push eax
call sub.user32.dll_SendMessageA
inc edi
sub ebx, dword [ebp - 0x64]
cmp edi, dword [ebp - 0x10]
jg 0x4d9aa9
cmp dword [ebp - 0x10], 0
jle 0x4d9aa0
push 0xc
call sub.kernel32.dll_Sleep
cmp edi, dword [ebp - 0x10]
jle 0x4d9a10
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.0042e194
call fcn.00429900
push eax
mov eax, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x48]
push eax
push 0
push 0
mov eax, dword [ebp - 0x60]
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [0x576260]
cmp dword [eax], 0
je 0x4d9b07
push 0
mov dx, 3
xor eax, eax
call fcn.00408078
push eax
mov eax, dword [0x575ea0]
mov eax, dword [eax]
push eax
mov eax, dword [0x576260]
mov eax, dword [eax]
call fcn.004505e0
push eax
call sub.user32.dll_SendMessageA
mov byte [0x574b60], 0
cmp byte [esi + 0x57], 0
je 0x4d9b92
push 0
push 1
push 0xb
mov eax, esi
call fcn.004505e0
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [0x57601c]
cmp dword [eax], 6
jl 0x4d9b47
push 0x585
push 0
push 0
mov eax, esi
call fcn.004505e0
push eax
call sub.user32.dll_RedrawWindow
mov eax, esi
mov edx, dword [0x45f730]
call fcn.00403c78
test al, al
je 0x4d9b73
push 0xffffffffffffffec
mov eax, esi
call fcn.004505e0
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0x80000
cmp eax, 0x80000
je 0x4d9b92
push 0x9c
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x574b5c]
call fcn.004505e0
push eax
call sub.user32.dll_SetWindowPos
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [0x574b5c]
call fcn.004505e0
push eax
call sub.user32.dll_ReleaseDC
mov eax, 0x574b5c
call fcn.0040f7ec
lea eax, [ebp - 0x5c]
call fcn.0040f7ec
mov eax, 0x574b70
call fcn.0040f7ec
lea eax, [ebp - 0x1c]
call fcn.0040f7ec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4