Function at 0x472010
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x38
push ebx
mov ebx, ecx
test ebx, ebx
je 0x47221f
mov eax, dword [ebx + 0x864]
test eax, eax
je 0x47221f
mov eax, dword [ebx + 0x744]
test eax, eax
je 0x47221f
mov eax, dword [ebx + 0x948]
test eax, eax
je 0x47221f
push ebp
push esi
push edi
lea ecx, [esp + 0x30]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [ebx]
push 0
lea edx, [esp + 0x24]
call fcn.005448e0
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x28]
cmp eax, esi
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x2c]
jne 0x472082
cmp edi, ebp
je 0x47221c
mov ecx, dword [ebx + 0x954]
mov edx, dword [ebx + 0x958]
inc ecx
inc edx
cmp ecx, eax
mov dword [ebx + 0x954], ecx
mov dword [ebx + 0x958], edx
jle 0x4720a6
mov dword [ebx + 0x954], eax
cmp edx, edi
jle 0x4720b0
mov dword [ebx + 0x958], edi
mov eax, dword [ebx + 0x954]
cmp esi, eax
jge 0x4720be
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x958]
cmp ebp, eax
jge 0x4720cc
mov dword [esp + 0x2c], eax
mov edx, dword [ebx + 0x864]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x47221c
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebp
call esi
mov edi, eax
test edi, edi
je 0x47213c
push ebp
call esi
mov esi, eax
test esi, esi
je 0x472135
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + 0x948]
push ecx
push edx
push ebp
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [ebx + 0x948], eax
jne 0x472152
mov eax, dword [esp + 0x10]
push esi
mov dword [ebx + 0x948], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebx + 0x864]
push ebp
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call ebp
mov ecx, dword [0x5a54f8]
mov dword [esp + 0x1c], eax
call fcn.004336b0
mov edx, dword [eax*4 + 0x5a47c0]
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x10]
push edx
push esi
call ebp
mov ecx, dword [esp + 0x34]
push 0xcc0020
push 0
push 0
push esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
push eax
push ecx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
push 0xcc0020
push 0
push 0
push esi
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x18]
push edx
push esi
call ebp
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
mov eax, dword [esp + 0x1c]
push eax
push edi
call ebp
push edi
call esi
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 0x864]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret