Function at 0x5320f0
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.00531a20
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 0x53251a
mov eax, dword [0x5a556c]
test eax, eax
je 0x53251a
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x53251a
mov eax, dword [0x5b31c4]
test eax, eax
jne 0x532187
mov eax, dword [0x5b1880]
test eax, eax
je 0x532187
mov eax, dword [0x59bd48]
test eax, eax
je 0x532187
mov ecx, dword [0x59bd60]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x28], eax
je 0x53218f
mov dword [esp + 0x28], 0
push edi
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x532519
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 0x532512
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 [0x5a5564]
push eax
push ecx
push edx
push 0
xor edx, edx
mov ecx, edi
call fcn.00530bd0
mov eax, dword [0x5a65b0]
test eax, eax
jne 0x532234
mov eax, dword [0x5b31c4]
test eax, eax
jne 0x532234
mov eax, dword [0x5a5568]
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.00530bd0
mov eax, dword [0x5a556c]
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.00530bd0
push 0
push 2
push 4
mov edx, edi
mov ecx, ebp
call fcn.00527600
mov ebp, dword [0x5b31a8]
mov ecx, dword [0x5b31ac]
push 0
mov edx, esi
mov dword [esp + 0x3c], ebp
mov dword [0x59bd90], 0xffffffff
call fcn.00530df0
test eax, eax
mov dword [esp + 0x44], eax
je 0x5324fb
mov eax, dword [0x5b31c4]
test eax, eax
mov dword [esp + 0x28], 0
je 0x532317
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [esp + 0x28], eax
je 0x532317
mov ecx, dword [0x5b31c4]
lea eax, [esp + 0x54]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [0x5b31c4]
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 0x5322d0
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 0x5322d2
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x20]
add ebx, edx
cmp ebx, ecx
jl 0x5322d0
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 [0x5a65b0]
sar edx, 1
test eax, eax
mov dword [esp + 0x10], edx
jne 0x53233c
inc edx
mov dword [esp + 0x10], edx
mov ecx, dword [0x5b1880]
test ecx, ecx
je 0x53235d
mov ecx, dword [0x59bd48]
test ecx, ecx
je 0x53235d
cmp dword [0x59bd60], 1
jne 0x532362
test eax, eax
je 0x532362
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 0x532448
mov ebp, dword [esp + 0x3c]
jmp 0x532390
test byte [ebp + 8], 8
jne 0x532434
test byte [ebp + 9], 1
je 0x532409
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x532404
mov ecx, dword [0x5a5568]
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.00530bd0
mov ecx, dword [0x5a556c]
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.00530bd0
mov edx, dword [esp + 0x10]
add esi, dword [ebp]
jmp 0x532434
mov ecx, ebx
call fcn.00531120
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.00531160
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 0x532390
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [0x5a65b0]
test eax, eax
jne 0x5324a5
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x5324a5
mov edx, dword [0x5a5568]
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.00530bd0
mov edx, dword [0x5a556c]
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.00530bd0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5324b4
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x44]
mov eax, dword [0x5b31ac]
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.00527600
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