Function at 0x525b20
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
mov esi, edx
mov eax, dword [esi + 0x1c]
mov ebp, ecx
lea ecx, [esi + 0x20]
mov dword [esp + 0x38], ecx
mov ecx, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], eax
call fcn.00525450
lea edx, [esp + 0x68]
push edx
push ebp
call dword [sym.imp.USER32.dll_BeginPaint]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x4c], ebx
je 0x525f4a
mov eax, dword [0x5940fc]
test eax, eax
je 0x525f4a
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x525f4a
mov eax, dword [0x5a0f7c]
test eax, eax
jne 0x525bb7
mov eax, dword [0x59f690]
test eax, eax
je 0x525bb7
mov eax, dword [0x589bd0]
test eax, eax
je 0x525bb7
mov ecx, dword [0x589be8]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x28], eax
je 0x525bbf
mov dword [esp + 0x28], 0
push edi
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x525f49
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x4c], ebx
je 0x525f42
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [0x5940f4]
push eax
push ecx
push edx
push 0
xor edx, edx
mov ecx, edi
call fcn.00524600
mov eax, dword [0x5950d8]
test eax, eax
jne 0x525c64
mov eax, dword [0x5a0f7c]
test eax, eax
jne 0x525c64
mov eax, dword [0x5940f8]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
push 1
push ecx
inc edx
push edx
xor edx, edx
mov ecx, edi
call fcn.00524600
mov eax, dword [0x5940fc]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
push 1
push ecx
add edx, 2
push edx
xor edx, edx
mov ecx, edi
call fcn.00524600
push 0
push 2
push 4
mov edx, edi
mov ecx, ebp
call fcn.0051b280
mov ebp, dword [0x5a0f60]
mov ecx, dword [0x5a0f64]
push 0
mov edx, esi
mov dword [esp + 0x3c], ebp
mov dword [0x589c18], 0xffffffff
call fcn.00524820
test eax, eax
mov dword [esp + 0x44], eax
je 0x525f2b
mov eax, dword [0x5a0f7c]
test eax, eax
mov dword [esp + 0x28], 0
je 0x525d47
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [esp + 0x28], eax
je 0x525d47
mov ecx, dword [0x5a0f7c]
lea eax, [esp + 0x54]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [0x5a0f7c]
mov ebp, dword [esp + 0x28]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x58]
xor ebx, ebx
jmp 0x525d00
xor esi, esi
mov ecx, dword [esp + 0x5c]
push 0xcc0020
push 0
push 0
push ebp
push ecx
push eax
push ebx
push esi
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x1c]
add esi, eax
cmp esi, ecx
jl 0x525d02
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x20]
add ebx, edx
cmp ebx, ecx
jl 0x525d00
mov edx, dword [esp + 0x24]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
sub eax, ebp
sub eax, ecx
cdq
sub eax, edx
mov edx, eax
mov eax, dword [0x5950d8]
sar edx, 1
test eax, eax
mov dword [esp + 0x10], edx
jne 0x525d6c
inc edx
mov dword [esp + 0x10], edx
mov ecx, dword [0x59f690]
test ecx, ecx
je 0x525d8d
mov ecx, dword [0x589bd0]
test ecx, ecx
je 0x525d8d
cmp dword [0x589be8], 1
jne 0x525d92
test eax, eax
je 0x525d92
inc edx
mov dword [esp + 0x10], edx
lea eax, [edx + ebp]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], ebx
mov esi, 8
jle 0x525e78
mov ebp, dword [esp + 0x3c]
jmp 0x525dc0
test byte [ebp + 8], 8
jne 0x525e64
test byte [ebp + 9], 1
je 0x525e39
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x525e34
mov ecx, dword [0x5940f8]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
add edx, 0xfffffff7
push ecx
push edx
add eax, 2
push 1
push eax
mov eax, dword [ebp]
cdq
sub eax, edx
mov edx, eax
sar edx, 1
add edx, esi
mov ecx, edi
call fcn.00524600
mov ecx, dword [0x5940fc]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push ecx
add edx, 0xfffffff7
push edx
add eax, 2
push 1
push eax
mov eax, dword [ebp]
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + esi + 1]
mov ecx, edi
call fcn.00524600
mov edx, dword [esp + 0x10]
add esi, dword [ebp]
jmp 0x525e64
mov ecx, ebx
call fcn.00524b50
mov ecx, dword [esp + 0x48]
push ebp
push ecx
mov ebx, eax
mov eax, dword [esp + 0x40]
push eax
push ebx
push edx
mov edx, esi
mov ecx, edi
call fcn.00524b90
mov edx, dword [esp + 0x10]
lea esi, [esi + ebx - 1]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
inc ebx
add ebp, 0xc
cmp ebx, eax
mov dword [esp + 0x24], ebx
jl 0x525dc0
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x5950d8]
test eax, eax
jne 0x525ed5
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x525ed5
mov edx, dword [0x5940f8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edx
push 1
add ecx, 0xfffffffe
push eax
push ecx
xor edx, edx
mov ecx, edi
call fcn.00524600
mov edx, dword [0x5940fc]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edx
push 1
dec ecx
push eax
push ecx
xor edx, edx
mov ecx, edi
call fcn.00524600
mov eax, dword [esp + 0x28]
test eax, eax
je 0x525ee4
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x44]
mov eax, dword [0x5a0f64]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push 1
push 4
mov edx, edi
mov ecx, esi
call fcn.0051b280
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
push 0xcc0020
push 0
push 0
push edi
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebp, dword [esp + 0x30]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
lea edx, [esp + 0x68]
push edx
push ebp
call dword [sym.imp.USER32.dll_EndPaint]
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret