Function at 0x46f590
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x5ab128
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x617960]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov eax, dword [0x617960]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x17c]
mov edx, dword [ebp + 8]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
cmp dword [edi + 0x158], eax
jg 0x46f5ff
mov esi, dword [edi + 0x180]
mov dword [esp + 0x20], esi
cmp dword [edi + 0x15c], esi
jg 0x46f5ff
mov dword [edi + 0x1d8], 0
jmp 0x46f622
mov esi, 0x64
mov ecx, eax
cmp eax, esi
cmovg ecx, esi
mov esi, dword [edi + 0x180]
cmp ecx, esi
mov dword [esp + 0x20], esi
mov eax, esi
cmovl eax, ecx
mov dword [edi + 0x1d8], eax
cmp dword [edx + 4], 0
je 0x46f87b
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0048c756
mov edx, dword [esp + 0x18]
lea ecx, [edi + 0x170]
push ecx
lea ecx, [edi + 0x17c]
mov dword [esp + 0x20], eax
push ecx
mov ecx, eax
call fcn.00477930
add esp, 8
cmp dword [edi + 0x198], 0
je 0x46f66f
lea ecx, [edi + 0x194]
call fcn.0048c66f
cmp dword [edi + 0x1bc], 0
je 0x46f683
lea ecx, [edi + 0x1b8]
call fcn.0048c685
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x46f68e
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [edi + 0x194]
call fcn.0048c5d6
push dword [edi + 0x180]
mov eax, dword [esp + 0x20]
push dword [edi + 0x17c]
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [edi + 0x1b8]
call fcn.0048c60c
lea eax, [edi + 0x1b8]
test eax, eax
je 0x46f6d3
mov eax, dword [eax + 4]
push eax
push dword [edi + 0x198]
call fcn.0048c9f9
xorps xmm0, xmm0
mov dword [edi + 0x1b4], eax
lea ecx, [esp + 0x34]
movdqa xmmword [esp + 0x34], xmm0
call fcn.0048c4a3
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x60], 0
push dword [eax + 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x38]
call fcn.0048c5d6
mov eax, dword [esp + 0x18]
push dword [eax + 4]
push dword [esp + 0x3c]
call fcn.0048c9f9
push dword [edi + 0x170]
lea ecx, [edi + 0x194]
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push 0
push 0
call fcn.00491720
mov ecx, dword [edi + 0x1d8]
mov edx, esi
mov eax, dword [esp + 0x14]
sub edx, ecx
push 0xcc0020
push 0
push 0
push dword [esp + 0x44]
sub eax, ecx
push edx
push eax
push 0
push 0
push dword [edi + 0x198]
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [edi + 0x1d8]
test ecx, ecx
jle 0x46f83c
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x34]
sub esp, 0x10
mov dword [esp + 0x3c], eax
mov eax, esp
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], esi
movdqu xmm0, xmmword [esp + 0x34]
push ecx
push ecx
lea ecx, [edi + 0x194]
movdqu xmmword [eax], xmm0
call fcn.00477ec0
mov eax, dword [edi + 0x1d8]
add esp, 0x18
mov ecx, esi
mov esi, dword [esp + 0x14]
sub ecx, eax
mov edx, esi
sub edx, eax
lea eax, [esp + 0x24]
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_SetRect]
push 0
push edx
push eax
call esi
push 0x64
lea eax, [esp + 0x28]
push 0
push eax
push eax
lea edx, [esp + 0x44]
lea ecx, [edi + 0x194]
call fcn.00477d50
mov eax, dword [edi + 0x1d8]
add esp, 0x10
mov edx, dword [esp + 0x20]
mov ecx, edx
sub dword [esp + 0x14], eax
sub ecx, eax
lea eax, [esp + 0x24]
push edx
push dword [esp + 0x18]
push ecx
push 0
push eax
call esi
sub esp, 8
lea eax, [esp + 0x2c]
lea edx, [esp + 0x3c]
lea ecx, [edi + 0x194]
push eax
push eax
call fcn.00477c80
add esp, 0x10
mov eax, dword [esp + 0x18]
test eax, eax
je 0x46f847
mov eax, dword [eax + 4]
push eax
push dword [esp + 0x3c]
call fcn.0048c9f9
lea ecx, [esp + 0x34]
call fcn.0048c66f
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x34]
mov dword [esp + 0x60], 0xffffffff
call fcn.0048c50b
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0049355b
mov esp, ebp
pop ebp
ret 4