Function at 0x766b6c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2d8], 0
je 0x767015
mov cl, 1
mov dl, 1
mov eax, dword [0x766910]
call fcn.00472378
mov edx, dword [ebp - 4]
mov dword [edx + 0x98], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x280]
or dword [eax + 0xa8], 0x1000000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2dc]
call fcn.0051cd60
xor ecx, ecx
mov edx, 0x4d
call fcn.006fcc64
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
mov dword [ebp - 0x10], eax
mov dl, 5
mov eax, dword [ebp - 0x10]
call fcn.00472768
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x4c], bl
mov dl, 1
mov eax, dword [ebp - 0x10]
call fcn.00472794
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4f6f5c]
call fcn.004f7994
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x58], ebx
mov eax, ebx
ret
call fcn.004f79e0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x280]
mov eax, dword [eax + 0x50]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x68], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f0]
test eax, eax
je 0x766e2f
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x64], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f0]
mov byte [eax + 0x25], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x64]
call fcn.0051cd60
xor ecx, ecx
xor edx, edx
call fcn.00762c9c
mov dl, 1
mov eax, dword [0x4e5d44]
call fcn.004ef310
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x5c], ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x280]
mov edx, dword [eax + 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 8]
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x766e28
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0076fb7c
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 4]
call fcn.0076fc14
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2dc]
call fcn.005ca3c4
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2dc]
call fcn.005ca3e4
mov ebx, eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4c], 0
jne 0x766d27
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2dc]
call fcn.0051cd60
xor ecx, ecx
xor edx, edx
call fcn.00764270
add esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2dc]
call fcn.0051cd60
xor ecx, ecx
xor edx, edx
call fcn.00764384
mov edi, eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00764394
add ebx, eax
add edi, ebx
mov ebx, edi
push 0xcc0020
push ebx
push esi
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2dc]
call fcn.005134f4
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2dc]
call fcn.005134b4
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x5c]
call fcn.004efc64
call fcn.004e9e78
push eax
call sub.gdi32.dll_BitBlt
push 0x1fffffff
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2dc]
call fcn.005134f4
mov edx, dword [ebp - 0x10]
add eax, dword [edx + 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2dc]
call fcn.005134b4
mov ecx, eax
mov eax, dword [ebp - 0x10]
add ecx, dword [eax + 0x30]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x30]
call reloc.gdi32.dll_GetCurrentObject
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x5c]
mov cl, 0xff
call fcn.00654e60
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x64]
call fcn.005ca3c4
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x64]
call fcn.005ca3e4
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x10]
add eax, 0x30
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x64]
call fcn.0051cd60
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x5c]
mov ecx, 0xff
call fcn.006fdaec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x766e5c
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.user32.dll_ReleaseDC
ret
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2dc]
call fcn.0051cd60
xor ecx, ecx
xor edx, edx
call fcn.007628a0
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x64], ebx
mov eax, dword [ebx + 0x3d0]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x5c], eax
push 8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x64]
call fcn.0051cd60
push eax
call sub.user32.dll_ShowWindow
push 0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x64]
call fcn.0051cd60
push eax
call sub.user32.dll_SetWindowRgn
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2dc]
call fcn.0051cd60
mov edx, 0xffffffec
call fcn.00413114
test eax, 0x80000
jne 0x766eda
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2dc]
call fcn.0051cd60
mov edx, 0xffffffec
call fcn.00413114
or eax, 0x80000
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2dc]
call fcn.0051cd60
mov edx, 0xffffffec
pop ecx
call fcn.00413438
push 2
push 0
push 0x1fffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2dc]
call fcn.0051cd60
push eax
mov eax, dword [0x802ccc]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x64]
mov eax, dword [eax + 0x58]
imul dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x68]
cdq
idiv ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x64]
mov eax, dword [eax + 0x5c]
imul dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x68]
cdq
idiv ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x64]
call fcn.005ca3c4
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x44]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x64]
sub edx, dword [ecx + 0x58]
sar edx, 1
jns 0x766f52
adc edx, 0
sub eax, edx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x64]
call fcn.005ca3e4
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x48]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x64]
sub edx, dword [ecx + 0x5c]
sar edx, 1
jns 0x766f7b
adc edx, 0
sub eax, edx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x60]
test eax, eax
je 0x766f92
call fcn.00406ad8
mov dl, 1
mov eax, dword [0x4e5d44]
call fcn.004ef310
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x60], ebx
mov eax, ebx
mov dl, 7
call fcn.004f0ff4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x60]
mov byte [eax + 0x2c], 1
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x64]
mov edx, dword [edx + 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x64]
mov edx, dword [eax + 0x5c]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x64]
call fcn.005ca3c4
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x64]
call fcn.005ca3e4
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [eax + 0x54], edx
mov dword [eax + 0x50], 0x76701c
mov eax, dword [ebp - 0x10]
call fcn.00472be0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret