Function at 0x46e9d0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x38
push ebx
mov ebx, ecx
test ebx, ebx
je 0x46ebdf
mov eax, dword [ebx + 0x85c]
test eax, eax
je 0x46ebdf
mov eax, dword [ebx + 0x73c]
test eax, eax
je 0x46ebdf
mov eax, dword [ebx + 0x940]
test eax, eax
je 0x46ebdf
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.00538310
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x28]
cmp eax, esi
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x2c]
jne 0x46ea42
cmp edi, ebp
je 0x46ebdc
mov ecx, dword [ebx + 0x94c]
mov edx, dword [ebx + 0x950]
inc ecx
inc edx
cmp ecx, eax
mov dword [ebx + 0x94c], ecx
mov dword [ebx + 0x950], edx
jle 0x46ea66
mov dword [ebx + 0x94c], eax
cmp edx, edi
jle 0x46ea70
mov dword [ebx + 0x950], edi
mov eax, dword [ebx + 0x94c]
cmp esi, eax
jge 0x46ea7e
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x950]
cmp ebp, eax
jge 0x46ea8c
mov dword [esp + 0x2c], eax
mov edx, dword [ebx + 0x85c]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x14], ebp
je 0x46ebdc
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebp
call esi
mov edi, eax
test edi, edi
je 0x46eafc
push ebp
call esi
mov esi, eax
test esi, esi
je 0x46eaf5
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + 0x940]
push ecx
push edx
push ebp
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [ebx + 0x940], eax
jne 0x46eb12
mov eax, dword [esp + 0x10]
push esi
mov dword [ebx + 0x940], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebx + 0x85c]
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 [0x594088]
mov dword [esp + 0x1c], eax
call fcn.00431e50
mov edx, dword [eax*4 + 0x593350]
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 + 0x85c]
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