Function at 0x504c24
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov edi, edx
mov esi, eax
mov byte [0x565880], 1
mov eax, esi
mov edx, dword [0x4618e8]
call fcn.004038c8
test al, al
je 0x504c73
push 0
mov dx, 4
xor eax, eax
call fcn.00407790
push eax
push 0xa100
mov eax, esi
call fcn.00452748
push eax
call sub.user32.dll_SendMessageA
mov ebx, eax
jmp 0x504c75
xor ebx, ebx
test ebx, ebx
je 0x504c91
cmp dword [ebx + 0x270], 0
je 0x504c91
call fcn.0053ff38
test al, al
je 0x504c91
mov byte [ebp - 0x71], 1
jmp 0x504c95
mov byte [ebp - 0x71], 0
call fcn.0053ff38
test al, al
je 0x505522
mov eax, esi
mov edx, dword [0x4618e8]
call fcn.004038c8
test al, al
je 0x505522
cmp dword [ebx + 0x270], 0
je 0x504cfa
mov eax, dword [ebx + 0xd8]
test eax, eax
je 0x504cda
mov dword [ebp - 0x90], eax
xor eax, eax
mov dword [ebx + 0xd8], eax
jmp 0x504cfa
xor edx, edx
xor eax, eax
call fcn.00548aa8
mov dword [ebp - 0x90], eax
mov eax, dword [ebx + 0x50]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
call fcn.0052d3a8
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
call dword [edx + 0x2c]
pop edx
call fcn.00548aa8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.00429b20
call fcn.00424c68
push 0
push ebx
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0x1c]
call fcn.00502584
cmp dword [ebp - 0x1c], 0
je 0x5057f0
cmp dword [ebx + 0x270], 0
jne 0x504d88
push 0x1fffffff
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0xb0]
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.004068dc
lea edx, [ebp - 0xb0]
mov cl, 0xff
mov eax, dword [ebp - 0x1c]
call fcn.004cbfd4
mov eax, dword [ebp - 0x1c]
call fcn.00429b20
call fcn.00425068
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 + 0x2c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x7c], eax
lea ecx, [ebp - 0x88]
xor edx, edx
xor eax, eax
call fcn.004068f8
cmp dword [ebp - 0x10], 0
jle 0x504ddc
mov byte [ebp - 0x52], 0
jmp 0x504de2
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 + 0x270]
test eax, eax
je 0x50528b
cmp dword [eax + 0x18], 0
jne 0x504e07
call fcn.0053bad8
mov eax, dword [ebx + 0x270]
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 0x504e42
mov eax, dword [ebx + 0x270]
mov eax, dword [eax + 0x30]
push eax
push 0xfffffffffffffff8
mov eax, dword [ebx + 0x270]
mov eax, dword [eax + 0x18]
call fcn.00452748
push eax
call sub.user32.dll_SetWindowLongA
mov eax, dword [ebx + 0x270]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebx + 0x270]
call fcn.0053bad8
cmp byte [ebx + 0x214], 0
je 0x504e80
lea edx, [ebp - 0xb0]
mov eax, ebx
call fcn.00532b3c
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x6c], eax
jmp 0x504f57
mov eax, dword [ebx + 0x50]
call fcn.0051c0c8
mov edi, dword [eax + 0xd0]
mov eax, dword [ebx + 0x254]
call fcn.00452748
push eax
call sub.user32.dll_IsZoomed
test eax, eax
je 0x504f0b
mov ax, word [edi + 0x2e]
cmp ax, word [edi + 0x2c]
je 0x504f0b
mov eax, dword [ebx + 0x254]
call fcn.00452748
xor ecx, ecx
mov edx, dword [ebx + 0x270]
call fcn.00520aa4
push eax
lea edx, [ebp - 0xb0]
mov eax, ebx
call fcn.00532b3c
mov eax, dword [ebp - 0xac]
push eax
mov eax, dword [ebx + 0x270]
call fcn.00520b84
pop edx
add edx, eax
push edx
mov eax, dword [ebx + 0x254]
call fcn.00520b0c
pop edx
sub edx, eax
pop eax
sub edx, eax
movsx eax, word [edi + 0x2c]
add edx, eax
movsx eax, word [edi + 0x2e]
sub edx, eax
mov dword [ebp - 0x6c], edx
jmp 0x504f57
mov eax, dword [ebx + 0x254]
call fcn.00452748
xor ecx, ecx
mov edx, dword [ebx + 0x270]
call fcn.00520aa4
push eax
lea edx, [ebp - 0xb0]
mov eax, ebx
call fcn.00532b3c
mov edi, dword [ebp - 0xac]
mov eax, dword [ebx + 0x270]
call fcn.00520b84
add edi, eax
mov eax, dword [ebx + 0x254]
call fcn.00520b0c
sub edi, eax
pop eax
sub edi, eax
mov dword [ebp - 0x6c], edi
mov eax, dword [ebx + 0x254]
call fcn.00452748
xor ecx, ecx
mov edx, dword [ebx + 0x270]
call fcn.00520aa4
push eax
mov eax, dword [ebx + 0x270]
call fcn.00520ba4
mov edi, eax
pop eax
sub edi, eax
lea edx, [ebp - 0xb0]
mov eax, ebx
call fcn.00532b3c
add edi, dword [ebp - 0xb0]
mov dword [ebp - 0x70], edi
lea eax, [ebp - 0xa0]
push eax
mov eax, esi
call fcn.00452748
push eax
call sub.user32.dll_GetWindowRect
mov edx, dword [ebp - 0xa0]
sub edx, dword [ebp - 0x70]
mov eax, dword [ebx + 0x270]
mov eax, dword [eax + 0x18]
call fcn.0044b5d8
mov edx, dword [ebp - 0x9c]
sub edx, dword [ebp - 0x6c]
mov eax, dword [ebx + 0x270]
mov eax, dword [eax + 0x18]
call fcn.0044b5fc
mov eax, dword [ebx + 0x270]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x80]
call fcn.0044b624
mov eax, dword [ebx + 0x270]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x7c]
call fcn.0044b648
push 3
mov eax, dword [ebx + 0x254]
call fcn.00452748
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 - 0x9c]
sub eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0x70]
push eax
push edi
mov eax, dword [ebx + 0x270]
mov eax, dword [eax + 0x18]
call fcn.00452748
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.00429b20
call fcn.00425170
push eax
lea eax, [ebp - 0x80]
push eax
push 0
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebx + 0x270]
mov eax, dword [eax + 0x18]
call fcn.00452748
push eax
call dword [0x5684e4]
push 4
mov eax, dword [ebx + 0x270]
mov eax, dword [eax + 0x18]
call fcn.00452748
push eax
call sub.user32.dll_ShowWindow
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
call fcn.00548aa8
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0xb0]
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.004068dc
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebp - 0x58]
call fcn.00429b20
call fcn.00425170
xor ecx, ecx
pop edx
call fcn.00543f0c
cmp dword [ebp - 0x10], 0
jle 0x5051b0
push ebp
call fcn.005048ac
pop ecx
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x5051aa
push ebp
call fcn.00504a0c
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.00429b20
call fcn.00425170
push eax
lea eax, [ebp - 0x80]
push eax
push 0
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebx + 0x270]
mov eax, dword [eax + 0x18]
call fcn.00452748
push eax
call dword [0x5684e4]
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.0042bee0
mov edx, eax
mov eax, 0xff
call fcn.0042be1c
push eax
mov eax, dword [ebp - 0x8c]
call fcn.00452748
mov edx, dword [ebp - 0x90]
pop ecx
call fcn.0051fa38
push ebp
call fcn.00504bc8
pop ecx
inc edi
cmp dword [ebp - 0x10], 0
jle 0x5051a1
push 0xc
call sub.kernel32.dll_Sleep
cmp edi, dword [ebp - 0x10]
jle 0x50510c
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov eax, dword [ebp - 0x64]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov byte [0x565880], 0
mov eax, dword [ebx + 0x254]
cmp byte [eax + 0x2e0], 0
je 0x5051d9
mov dl, byte [ebp - 0xc]
call fcn.00469450
push 0
push 1
push 0xb
mov eax, esi
call fcn.00452748
push eax
call sub.user32.dll_SendMessageA
push 0x585
push 0
push 0
mov eax, esi
call fcn.00452748
push eax
call sub.user32.dll_RedrawWindow
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebx + 0x270]
call fcn.0053b970
push eax
mov eax, dword [ebx + 0x270]
mov eax, dword [eax + 0x18]
call fcn.00452748
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 - 0x9c]
sub eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0xa0]
sub eax, dword [ebp - 0x70]
push eax
push 0
mov eax, dword [ebx + 0x270]
mov eax, dword [eax + 0x18]
call fcn.00452748
push eax
call sub.user32.dll_SetWindowPos
mov cl, 0xff
xor edx, edx
mov eax, dword [ebx + 0x270]
call fcn.0053a8ec
lea eax, [ebp - 0x90]
call fcn.0040ebcc
lea eax, [ebp - 0x8c]
call fcn.0040ebcc
jmp 0x50550d
lea eax, [ebp - 0xa0]
push eax
mov eax, esi
call fcn.00452748
push eax
call sub.user32.dll_GetWindowRect
xor ecx, ecx
mov dl, 1
mov eax, dword [0x461bec]
call fcn.00464818
mov edi, eax
mov dword [0x56587c], edi
mov dword [edi + 0xc], 0xffffff9e
xor edx, edx
mov eax, edi
call fcn.00465fdc
mov edx, dword [esi + 0x40]
mov eax, dword [0x56587c]
call fcn.0044b5d8
mov edx, dword [esi + 0x44]
mov eax, dword [0x56587c]
call fcn.0044b5fc
mov edx, dword [esi + 0x48]
mov eax, dword [0x56587c]
call fcn.0044b624
mov edx, dword [esi + 0x4c]
mov eax, dword [0x56587c]
call fcn.0044b648
push 0xffffffffffffffec
mov eax, esi
call fcn.00452748
push eax
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x505321
mov dl, 3
mov eax, dword [0x56587c]
call fcn.004662d8
or edi, 0xffffffff
jmp 0x505336
push 3
mov eax, dword [ebx + 0x254]
call fcn.00452748
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 [0x56587c]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [0x56587c]
mov eax, dword [eax + 0x40]
push eax
push edi
mov eax, dword [0x56587c]
call fcn.00452748
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x64], eax
push 0xffffffffffffffec
mov eax, dword [0x56587c]
call fcn.00452748
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [0x56587c]
call fcn.00452748
push eax
call sub.user32.dll_SetWindowLongA
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00429b20
call fcn.00425170
push eax
lea eax, [ebp - 0x80]
push eax
push 0
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [0x56587c]
call fcn.00452748
push eax
call dword [0x5684e4]
push 4
mov eax, dword [0x56587c]
call fcn.00452748
push eax
call sub.user32.dll_ShowWindow
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
call fcn.00548aa8
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0xb0]
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.004068dc
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebp - 0x58]
call fcn.00429b20
call fcn.00425170
xor ecx, ecx
pop edx
call fcn.00543f0c
cmp dword [ebp - 0x10], 0
jle 0x5054b1
push ebp
call fcn.005048ac
pop ecx
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x5054ab
push ebp
call fcn.00504a0c
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.00429b20
call fcn.00425170
push eax
lea eax, [ebp - 0x80]
push eax
push 0
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [0x56587c]
call fcn.00452748
push eax
call dword [0x5684e4]
push ebp
call fcn.00504bc8
pop ecx
inc edi
cmp dword [ebp - 0x10], 0
jle 0x5054a6
push 0xc
call sub.kernel32.dll_Sleep
cmp edi, dword [ebp - 0x10]
jle 0x50544f
mov al, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov eax, dword [ebp - 0x64]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov byte [0x565880], 0
mov eax, dword [ebx + 0x254]
cmp byte [eax + 0x2e0], 0
je 0x5054da
mov dl, byte [ebp - 0xc]
call fcn.00469450
push 0
push 1
push 0xb
mov eax, esi
call fcn.00452748
push eax
call sub.user32.dll_SendMessageA
push 0x585
push 0
push 0
mov eax, esi
call fcn.00452748
push eax
call sub.user32.dll_RedrawWindow
mov eax, 0x56587c
call fcn.0040ebcc
lea eax, [ebp - 0x58]
call fcn.0040ebcc
lea eax, [ebp - 0x1c]
call fcn.0040ebcc
jmp 0x5057f0
cmp dword [0x56587c], 0
jne 0x505532
mov eax, esi
call fcn.00504794
cmp dword [0x56587c], 0
je 0x5057f0
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
call fcn.00548aa8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.00429b20
call fcn.00424c68
mov eax, dword [ebp - 0x1c]
call fcn.00429b20
call fcn.00425170
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.00502584
cmp dword [ebp - 0x1c], 0
je 0x5057f0
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00429b20
call fcn.00425170
push eax
call sub.gdi32.dll_RestoreDC
mov eax, dword [ebp - 0x1c]
call fcn.00429b20
call fcn.00425068
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
call fcn.00548aa8
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 0x505609
test ebx, ebx
je 0x505609
mov edi, ebx
mov eax, edi
call fcn.0052152c
cmp dword [0x56587c], 0
je 0x5057f0
push 0
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.005219b0
push eax
mov eax, dword [0x56587c]
call fcn.00452748
push eax
call sub.user32.dll_SetWindowRgn
mov eax, dword [0x56587c]
call fcn.00452748
push eax
call sub.user32.dll_GetWindowDC
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x10], 0
jle 0x5056d5
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 0x5056d5
push 0
mov edx, ebx
xor eax, eax
call fcn.0042bee0
push eax
lea ecx, [ebp - 0x1c]
mov edx, 0x565890
lea eax, [ebp - 0x5c]
call fcn.00548808
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x5c]
call fcn.00429b20
call fcn.00425170
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
cmp dword [0x5680dc], 0
je 0x5056b6
push 0
mov dx, 3
xor eax, eax
call fcn.00407790
push eax
push 0xa100
mov eax, dword [0x5680dc]
call fcn.00452748
push eax
call sub.user32.dll_SendMessageA
inc edi
sub ebx, dword [ebp - 0x68]
cmp edi, dword [ebp - 0x10]
jg 0x5056d5
cmp dword [ebp - 0x10], 0
jle 0x5056cc
push 0xc
call sub.kernel32.dll_Sleep
cmp edi, dword [ebp - 0x10]
jle 0x505642
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00429b20
call fcn.00425170
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
cmp dword [0x5680dc], 0
je 0x50572d
push 0
mov dx, 3
xor eax, eax
call fcn.00407790
push eax
push 0xa100
mov eax, dword [0x5680dc]
call fcn.00452748
push eax
call sub.user32.dll_SendMessageA
mov byte [0x565880], 0
cmp byte [esi + 0x57], 0
je 0x5057b8
push 0
push 1
push 0xb
mov eax, esi
call fcn.00452748
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [0x565e24]
cmp dword [eax], 6
jl 0x50576d
push 0x585
push 0
push 0
mov eax, esi
call fcn.00452748
push eax
call sub.user32.dll_RedrawWindow
mov eax, esi
mov edx, dword [0x4618e8]
call fcn.004038c8
test al, al
je 0x505799
push 0xffffffffffffffec
mov eax, esi
call fcn.00452748
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0x80000
cmp eax, 0x80000
je 0x5057b8
push 0x9c
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x56587c]
call fcn.00452748
push eax
call sub.user32.dll_SetWindowPos
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [0x56587c]
call fcn.00452748
push eax
call sub.user32.dll_ReleaseDC
mov eax, 0x56587c
call fcn.0040ebcc
lea eax, [ebp - 0x5c]
call fcn.0040ebcc
mov eax, 0x565890
call fcn.0040ebcc
lea eax, [ebp - 0x1c]
call fcn.0040ebcc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4