Function at 0x48f840
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 [0x508a88], 1
mov eax, esi
mov edx, dword [0x4579f0]
call fcn.00403924
test al, al
je 0x48f892
push 0
mov dx, 4
xor eax, eax
call fcn.00407760
push eax
mov eax, dword [0x508de4]
mov eax, dword [eax]
push eax
mov eax, esi
call fcn.004489a4
push eax
call sub.user32.dll_SendMessageA
mov ebx, eax
jmp 0x48f894
xor ebx, ebx
test ebx, ebx
je 0x48f8b0
cmp dword [ebx + 0x248], 0
je 0x48f8b0
call fcn.004e1884
test al, al
je 0x48f8b0
mov byte [ebp - 0x6d], 1
jmp 0x48f8b4
mov byte [ebp - 0x6d], 0
call fcn.004e1884
test al, al
je 0x490163
mov eax, esi
mov edx, dword [0x4579f0]
call fcn.00403924
test al, al
je 0x490163
cmp dword [ebx + 0x248], 0
je 0x48f919
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x48f8f9
mov dword [ebp - 0x8c], eax
xor eax, eax
mov dword [ebx + 0xb0], eax
jmp 0x48f919
xor edx, edx
xor eax, eax
call fcn.004ea17c
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.004acc6c
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.004ea17c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.00428000
call fcn.00423660
push 0
push ebx
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.0048d3ac
cmp dword [ebp - 0x1c], 0
je 0x490410
cmp dword [ebx + 0x248], 0
jne 0x48f9a4
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.004178c8
lea edx, [ebp - 0xac]
mov cl, 0xff
mov eax, dword [ebp - 0x1c]
call fcn.004d4f14
mov eax, dword [ebp - 0x1c]
call fcn.00428000
call fcn.00423a08
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.004178a0
cmp dword [ebp - 0x10], 0
jle 0x48f9f8
mov byte [ebp - 0x52], 0
jmp 0x48f9fe
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 0x48fec6
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
cmp dword [eax + 0x28], 0
je 0x48fa4d
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x28]
push eax
push 0xfffffffffffffff8
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.004489a4
push eax
call sub.user32.dll_SetWindowLongA
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x88], eax
mov eax, dword [ebx + 0x248]
call fcn.004b6e20
cmp byte [ebx + 0x1ec], 0
je 0x48fa8b
lea edx, [ebp - 0xac]
mov eax, ebx
call fcn.004b1f88
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x68], eax
jmp 0x48fb8c
mov eax, dword [ebx + 0x22c]
call fcn.004489a4
push eax
call sub.user32.dll_IsZoomed
test eax, eax
je 0x48fb40
mov eax, dword [ebx + 0x54]
call fcn.004ed930
mov eax, dword [eax + 0x90]
mov di, word [eax + 0x2e]
mov eax, dword [ebx + 0x54]
call fcn.004ed930
mov eax, dword [eax + 0x90]
cmp di, word [eax + 0x2c]
je 0x48fb40
mov eax, dword [ebx + 0x22c]
call fcn.004489a4
xor ecx, ecx
mov edx, dword [ebx + 0x248]
call fcn.004a0384
push eax
lea edx, [ebp - 0xac]
mov eax, ebx
call fcn.004b1f88
mov edi, dword [ebp - 0xa8]
mov eax, dword [ebx + 0x248]
call fcn.004a0464
add edi, eax
mov eax, dword [ebx + 0x22c]
call fcn.004a03ec
sub edi, eax
pop eax
sub edi, eax
mov eax, dword [ebx + 0x54]
call fcn.004ed930
mov eax, dword [eax + 0x90]
movsx eax, word [eax + 0x2c]
add edi, eax
mov eax, dword [ebx + 0x54]
call fcn.004ed930
mov eax, dword [eax + 0x90]
movsx eax, word [eax + 0x2e]
sub edi, eax
mov dword [ebp - 0x68], edi
jmp 0x48fb8c
mov eax, dword [ebx + 0x22c]
call fcn.004489a4
xor ecx, ecx
mov edx, dword [ebx + 0x248]
call fcn.004a0384
push eax
lea edx, [ebp - 0xac]
mov eax, ebx
call fcn.004b1f88
mov edi, dword [ebp - 0xa8]
mov eax, dword [ebx + 0x248]
call fcn.004a0464
add edi, eax
mov eax, dword [ebx + 0x22c]
call fcn.004a03ec
sub edi, eax
pop eax
sub edi, eax
mov dword [ebp - 0x68], edi
mov eax, dword [ebx + 0x22c]
call fcn.004489a4
xor ecx, ecx
mov edx, dword [ebx + 0x248]
call fcn.004a0384
push eax
mov eax, dword [ebx + 0x248]
call fcn.004a0484
mov edi, eax
pop eax
sub edi, eax
lea edx, [ebp - 0xac]
mov eax, ebx
call fcn.004b1f88
add edi, dword [ebp - 0xac]
mov dword [ebp - 0x6c], edi
lea eax, [ebp - 0x9c]
push eax
mov eax, esi
call fcn.004489a4
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.0044192c
mov edx, dword [ebp - 0x98]
sub edx, dword [ebp - 0x68]
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.00441950
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x7c]
call fcn.00441978
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x78]
call fcn.0044199c
push 3
mov eax, dword [ebx + 0x22c]
call fcn.004489a4
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.004489a4
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.00428000
call fcn.00423b34
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.004489a4
push eax
mov eax, dword [0x508dd0]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.004489a4
push eax
call sub.user32.dll_ShowWindow
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
call fcn.004ea17c
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.004178c8
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x58]
call fcn.00428000
call fcn.00423b34
xor ecx, ecx
pop edx
call fcn.004e53f4
cmp dword [ebp - 0x10], 0
jle 0x48fdeb
push ebp
call fcn.0048f4dc
pop ecx
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x48fde5
push ebp
call fcn.0048f628
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.00428000
call fcn.00423b34
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.004489a4
push eax
mov eax, dword [0x508dd0]
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.0042a2c4
mov edx, eax
mov eax, 0xff
call fcn.0042a200
push eax
mov eax, dword [ebp - 0x88]
call fcn.004489a4
mov edx, dword [ebp - 0x8c]
pop ecx
call fcn.0049f3f0
push ebp
call fcn.0048f7e4
pop ecx
inc edi
cmp dword [ebp - 0x10], 0
jle 0x48fddc
push 0xc
call sub.kernel32.dll_Sleep
cmp edi, dword [ebp - 0x10]
jle 0x48fd44
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 [0x508a88], 0
mov eax, dword [ebx + 0x22c]
cmp byte [eax + 0x2e0], 0
je 0x48fe14
mov dl, byte [ebp - 0xc]
call fcn.0045f424
push 0
push 1
push 0xb
mov eax, esi
call fcn.004489a4
push eax
call sub.user32.dll_SendMessageA
push 0x585
push 0
push 0
mov eax, esi
call fcn.004489a4
push eax
call sub.user32.dll_RedrawWindow
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebx + 0x248]
call fcn.004b6ccc
push eax
mov eax, dword [ebx + 0x248]
mov eax, dword [eax + 0x10]
call fcn.004489a4
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.004489a4
push eax
call sub.user32.dll_SetWindowPos
mov cl, 0xff
xor edx, edx
mov eax, dword [ebx + 0x248]
call fcn.004b5f08
lea eax, [ebp - 0x8c]
call fcn.0040e43c
lea eax, [ebp - 0x88]
call fcn.0040e43c
jmp 0x49014e
lea eax, [ebp - 0x9c]
push eax
mov eax, esi
call fcn.004489a4
push eax
call sub.user32.dll_GetWindowRect
xor ecx, ecx
mov dl, 1
mov eax, dword [0x457cf4]
call fcn.0045a7d4
mov edi, eax
mov dword [0x508a84], edi
mov dword [edi + 0xc], 0xffffff9e
xor edx, edx
mov eax, edi
call fcn.0045bfa8
mov edx, dword [esi + 0x40]
mov eax, dword [0x508a84]
call fcn.0044192c
mov edx, dword [esi + 0x44]
mov eax, dword [0x508a84]
call fcn.00441950
mov edx, dword [esi + 0x48]
mov eax, dword [0x508a84]
call fcn.00441978
mov edx, dword [esi + 0x4c]
mov eax, dword [0x508a84]
call fcn.0044199c
push 0xffffffffffffffec
mov eax, esi
call fcn.004489a4
push eax
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x48ff5c
mov dl, 3
mov eax, dword [0x508a84]
call fcn.0045c2a4
or edi, 0xffffffff
jmp 0x48ff71
push 3
mov eax, dword [ebx + 0x22c]
call fcn.004489a4
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 [0x508a84]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [0x508a84]
mov eax, dword [eax + 0x40]
push eax
push edi
mov eax, dword [0x508a84]
call fcn.004489a4
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x60], eax
push 0xffffffffffffffec
mov eax, dword [0x508a84]
call fcn.004489a4
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [0x508a84]
call fcn.004489a4
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.00428000
call fcn.00423b34
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [0x508a84]
call fcn.004489a4
push eax
mov eax, dword [0x508dd0]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [0x508a84]
call fcn.004489a4
push eax
call sub.user32.dll_ShowWindow
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
call fcn.004ea17c
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.004178c8
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x58]
call fcn.00428000
call fcn.00423b34
xor ecx, ecx
pop edx
call fcn.004e53f4
cmp dword [ebp - 0x10], 0
jle 0x4900f2
push ebp
call fcn.0048f4dc
pop ecx
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x4900ec
push ebp
call fcn.0048f628
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.00428000
call fcn.00423b34
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [0x508a84]
call fcn.004489a4
push eax
mov eax, dword [0x508dd0]
mov eax, dword [eax]
call eax
push ebp
call fcn.0048f7e4
pop ecx
inc edi
cmp dword [ebp - 0x10], 0
jle 0x4900e7
push 0xc
call sub.kernel32.dll_Sleep
cmp edi, dword [ebp - 0x10]
jle 0x49008d
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 [0x508a88], 0
mov eax, dword [ebx + 0x22c]
cmp byte [eax + 0x2e0], 0
je 0x49011b
mov dl, byte [ebp - 0xc]
call fcn.0045f424
push 0
push 1
push 0xb
mov eax, esi
call fcn.004489a4
push eax
call sub.user32.dll_SendMessageA
push 0x585
push 0
push 0
mov eax, esi
call fcn.004489a4
push eax
call sub.user32.dll_RedrawWindow
mov eax, 0x508a84
call fcn.0040e43c
lea eax, [ebp - 0x58]
call fcn.0040e43c
lea eax, [ebp - 0x1c]
call fcn.0040e43c
jmp 0x490410
cmp dword [0x508a84], 0
jne 0x490173
mov eax, esi
call fcn.0048f3c4
cmp dword [0x508a84], 0
je 0x490410
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
call fcn.004ea17c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.00428000
call fcn.00423660
push 0
push 0
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.0048d3ac
cmp dword [ebp - 0x1c], 0
je 0x490410
mov eax, dword [ebp - 0x1c]
call fcn.00428000
call fcn.00423a08
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
call fcn.004ea17c
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 0x49021d
test ebx, ebx
je 0x49021d
mov edi, ebx
mov eax, edi
call fcn.004a0e1c
cmp dword [0x508a84], 0
je 0x490410
push 0
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.004a122c
push eax
mov eax, dword [0x508a84]
call fcn.004489a4
push eax
call sub.user32.dll_SetWindowRgn
mov eax, dword [0x508a84]
call fcn.004489a4
push eax
call sub.user32.dll_GetWindowDC
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x10], 0
jle 0x4902ef
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 0x4902ef
push 0
mov edx, ebx
xor eax, eax
call fcn.0042a2c4
push eax
lea ecx, [ebp - 0x1c]
mov edx, 0x508a98
lea eax, [ebp - 0x5c]
call fcn.004e9e9c
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x5c]
call fcn.00428000
call fcn.00423b34
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 [0x509024]
cmp dword [eax], 0
je 0x4902d0
push 0
mov dx, 3
xor eax, eax
call fcn.00407760
push eax
mov eax, dword [0x508de4]
mov eax, dword [eax]
push eax
mov eax, dword [0x509024]
mov eax, dword [eax]
call fcn.004489a4
push eax
call sub.user32.dll_SendMessageA
inc edi
sub ebx, dword [ebp - 0x64]
cmp edi, dword [ebp - 0x10]
jg 0x4902ef
cmp dword [ebp - 0x10], 0
jle 0x4902e6
push 0xc
call sub.kernel32.dll_Sleep
cmp edi, dword [ebp - 0x10]
jle 0x490256
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00428000
call fcn.00423b34
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 [0x509024]
cmp dword [eax], 0
je 0x49034d
push 0
mov dx, 3
xor eax, eax
call fcn.00407760
push eax
mov eax, dword [0x508de4]
mov eax, dword [eax]
push eax
mov eax, dword [0x509024]
mov eax, dword [eax]
call fcn.004489a4
push eax
call sub.user32.dll_SendMessageA
mov byte [0x508a88], 0
cmp byte [esi + 0x57], 0
je 0x4903d8
push 0
push 1
push 0xb
mov eax, esi
call fcn.004489a4
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [0x508eb4]
cmp dword [eax], 6
jl 0x49038d
push 0x585
push 0
push 0
mov eax, esi
call fcn.004489a4
push eax
call sub.user32.dll_RedrawWindow
mov eax, esi
mov edx, dword [0x4579f0]
call fcn.00403924
test al, al
je 0x4903b9
push 0xffffffffffffffec
mov eax, esi
call fcn.004489a4
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0x80000
cmp eax, 0x80000
je 0x4903d8
push 0x9c
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x508a84]
call fcn.004489a4
push eax
call sub.user32.dll_SetWindowPos
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [0x508a84]
call fcn.004489a4
push eax
call sub.user32.dll_ReleaseDC
mov eax, 0x508a84
call fcn.0040e43c
lea eax, [ebp - 0x5c]
call fcn.0040e43c
mov eax, 0x508a98
call fcn.0040e43c
lea eax, [ebp - 0x1c]
call fcn.0040e43c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4