Function at 0x529b30
Capabilities:
Capture screenshot

Disassembly:
mov al, byte [esp + 8]
sub esp, 0x3c
cmp al, 0x64
push ebx
push ebp
push esi
push edi
mov edi, ecx
jbe 0x529b46
mov byte [esp + 0x54], 0x64
mov ebx, dword [esp + 0x50]
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x20], eax
jne 0x529b6c
cmp edi, eax
je 0x529b5b
mov eax, dword [edi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov dword [esp + 0x20], 1
mov ebp, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
call ebp
push ebx
mov dword [esp + 0x14], eax
call ebp
mov esi, eax
push ebx
mov dword [esp + 0x54], esi
call ebp
mov ebp, eax
mov eax, dword [edi + 0x384]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [edi + 0x434]
mov edx, dword [edi + 0x430]
lea esi, [edi + 0x428]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 4]
sub ecx, eax
mov eax, dword [esi]
sub edx, eax
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 4]
sub ecx, eax
push ecx
mov ecx, dword [esi]
sub edx, ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebp
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x30], eax
mov eax, esi
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x40], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], ecx
mov ecx, dword [edi + 0x39c]
mov edx, dword [eax + 0xc]
mov eax, dword [edi + 0x3a0]
push eax
push ecx
push 0
push 0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x58], edx
call fcn.0059556d
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x50]
sub eax, edx
mov edx, dword [esp + 0x4c]
sub ecx, edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [edi + 0x408]
sub esp, 0x10
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
lea ecx, [edi + 0x2e8]
push ecx
push edx
call fcn.00591d17
push eax
lea ecx, [edi + 0x3c]
call fcn.005390c0
mov eax, dword [edi + 0x38c]
test eax, eax
je 0x529cd3
mov eax, dword [edi + 0x390]
test eax, eax
je 0x529cd3
mov eax, dword [edi + 0x394]
test eax, eax
je 0x529cd3
mov ecx, dword [edi + 0x3b0]
mov edx, dword [esp + 0x10]
mov eax, dword [edi]
push ecx
push edx
mov ecx, edi
call dword [eax + 0xb8]
mov eax, dword [edi + 0x388]
test eax, eax
jne 0x529d37
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
sub eax, edx
mov edx, dword [esi]
push eax
sub ecx, edx
push ecx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [esp + 0x50]
push eax
push edx
mov dword [edi + 0x388], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [edi + 0x42c]
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
push 0xcc0020
push eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esi + 4]
sub edx, ecx
mov ecx, dword [esp + 0x5c]
push ebx
push edx
sub eax, dword [esi]
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x529d43
mov edx, dword [esp + 0x50]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + 0xc]
push 0xcc0020
push 0
mov edx, dword [esi + 8]
push 0
push eax
mov eax, dword [esi + 4]
sub ecx, eax
mov eax, dword [edi + 0x42c]
push ecx
mov ecx, dword [esi]
sub edx, ecx
push edx
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [edi + 0x39c]
test eax, eax
jne 0x529d89
mov eax, dword [edi + 0x3a0]
test eax, eax
je 0x529f08
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
sub edx, ecx
push edx
mov edx, dword [esp + 0x40]
sub eax, edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
xor ecx, ecx
mov edx, 0x64
mov cl, byte [edi + 0x3ac]
push 0x64
sub edx, ecx
mov dword [esp + 0x18], eax
push edx
push 0xff
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esp + 0x54]
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x18]
mov ecx, 0xff
and eax, 0xff
and edx, 0xff
sub ecx, eax
mov eax, 0x51eb851f
imul ecx, edx
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov al, byte [esp + 0x18]
add al, dl
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x18]
and eax, 0xff
mov ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
push 0xff0062
sub ecx, eax
mov eax, dword [esp + 0x40]
push 0
push 0
push 0
sub edx, eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x3b0]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_FillRgn]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [edi + 0x3a8]
mov eax, dword [edi + 0x3a4]
mov ecx, dword [edi + 0x398]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x50]
sub eax, edx
mov edx, dword [edi + 0x3a0]
push eax
mov eax, dword [esp + 0x50]
sub ecx, eax
mov eax, dword [edi + 0x39c]
push ecx
push edx
push eax
push ebp
lea ecx, [edi + 0x3c]
call fcn.005397c0
mov ecx, eax
call fcn.00542840
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [edi + 0x3b0]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
and eax, 0xff
mov ecx, 0x64
sub ecx, eax
mov eax, dword [esp + 0x48]
push ecx
push 0
mov ecx, dword [esp + 0x4c]
push 0
push edx
mov edx, dword [esp + 0x50]
sub eax, edx
mov edx, dword [edi + 0x42c]
push eax
mov eax, dword [esp + 0x50]
sub ecx, eax
mov eax, dword [esi]
push ecx
push edx
push eax
push ebp
lea ecx, [edi + 0x3c]
call fcn.005397c0
mov ecx, eax
call fcn.005408e0
push 0
push ebp
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
push 0xcc0020
push 0
push 0
sub ecx, eax
mov eax, dword [edi + 0x42c]
push ebp
push ecx
mov ecx, dword [esi]
sub edx, ecx
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x50]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push eax
call esi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call esi
mov eax, dword [esp + 0x30]
push eax
push ebp
call esi
mov ecx, dword [esp + 0x34]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
call esi
mov edx, dword [esp + 0x38]
push edx
call esi
mov eax, dword [esp + 0x50]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
push ebp
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x52a00d
test edi, edi
jne 0x52a002
push ebx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 8
mov edi, dword [edi + 0x1c]
push ebx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 8