Function at 0x470aa0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x5b8558
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x628960]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov eax, dword [0x628960]
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 0x470b0f
mov esi, dword [edi + 0x180]
mov dword [esp + 0x20], esi
cmp dword [edi + 0x15c], esi
jg 0x470b0f
mov dword [edi + 0x1d8], 0
jmp 0x470b32
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 0x470d8b
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00499915
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.0047e690
add esp, 8
cmp dword [edi + 0x198], 0
je 0x470b7f
lea ecx, [edi + 0x194]
call fcn.0049981d
cmp dword [edi + 0x1bc], 0
je 0x470b93
lea ecx, [edi + 0x1b8]
call fcn.00499833
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x470b9e
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [edi + 0x194]
call fcn.00499745
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.0049977b
lea eax, [edi + 0x1b8]
test eax, eax
je 0x470be3
mov eax, dword [eax + 4]
push eax
push dword [edi + 0x198]
call fcn.00499bbe
xorps xmm0, xmm0
mov dword [edi + 0x1b4], eax
lea ecx, [esp + 0x34]
movdqa xmmword [esp + 0x34], xmm0
call fcn.004995f2
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.00499745
mov eax, dword [esp + 0x18]
push dword [eax + 4]
push dword [esp + 0x3c]
call fcn.00499bbe
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.0049e8dc
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 0x470d4c
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.0047ed80
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.0047eab0
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.0047e9e0
add esp, 0x10
mov eax, dword [esp + 0x18]
test eax, eax
je 0x470d57
mov eax, dword [eax + 4]
push eax
push dword [esp + 0x3c]
call fcn.00499bbe
lea ecx, [esp + 0x34]
call fcn.0049981d
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.0049965a
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.004a0676
mov esp, ebp
pop ebp
ret 4