Function at 0x5626d0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0xb0
push ebx
push esi
mov esi, dword [esp + 0xbc]
test esi, esi
mov ebx, ecx
mov dword [esp + 0x14], ebx
jne 0x5626f6
pop esi
xor al, al
pop ebx
add esp, 0xb0
ret 0xc
mov eax, dword [esi]
push ebp
push edi
mov ecx, esi
call dword [eax + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push esi
mov ecx, ebx
mov ebp, eax
call fcn.00562460
mov edi, eax
test edi, edi
push 0
je 0x56276e
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x5a
push esi
mov ebp, eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push 0
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
movsx edx, word [esp + 0x42]
movsx eax, word [esp + 0x46]
movzx ecx, word [esp + 0x4a]
sub eax, edx
imul eax, ebp
cdq
idiv ecx
movsx edx, word [esp + 0x44]
mov esi, eax
movsx eax, word [esp + 0x48]
sub eax, edx
imul eax, dword [esp + 0x18]
cdq
idiv ecx
jmp 0x5627d3
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 0x10]
lea ecx, [esp + 0x54]
push ecx
push esi
mov ecx, ebx
call fcn.00562600
mov edi, eax
test edi, edi
jne 0x5627bf
mov edx, dword [str.corrupted_WMF]
add ebx, 0x44
mov dword [ebx], edx
mov eax, dword [0x61c5ac]
mov dword [ebx + 4], eax
mov ecx, dword [0x61c5b0]
pop edi
mov dword [ebx + 8], ecx
mov dx, word [0x61c5b4]
pop ebp
pop esi
mov word [ebx + 0xc], dx
xor al, al
pop ebx
add esp, 0xb0
ret 0xc
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x60]
sub esi, edx
sub eax, ecx
mov ecx, dword [ebx + 0x148]
test ecx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
je 0x562819
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov eax, dword [str.Cancelled]
add ebx, 0x44
mov dword [ebx], eax
mov ecx, dword [0x61c5a0]
pop edi
mov dword [ebx + 4], ecx
mov dx, word [0x61c5a4]
pop ebp
pop esi
mov word [ebx + 8], dx
xor al, al
pop ebx
add esp, 0xb0
ret 0xc
test esi, esi
je 0x562ad2
test eax, eax
je 0x562ad2
mov eax, dword [esp + 0xc8]
test eax, eax
je 0x562838
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x562847
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.00562680
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x10]
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, eax
push ebx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
xor ebx, ebx
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp esi, ebx
je 0x562ab1
cmp ebp, ebx
je 0x562a94
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0xc
push esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebp
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 5
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, dword [sym.imp.GDI32.dll_SetBkColor]
push eax
push esi
call ebx
push 0
push 0
push 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x38]
push eax
push 2
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov ecx, dword [esp + 0x20]
push ecx
push esi
call ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
mov ebx, eax
test ebx, ebx
je 0x5629b3
lea edx, [ebx*4 + 4]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x562978
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov edx, dword [str.Cancelled]
mov ecx, dword [esp + 0x1c]
add ecx, 0x44
mov dword [ecx], edx
mov eax, dword [0x61c5a0]
pop edi
mov dword [ecx + 4], eax
mov dx, word [0x61c5a4]
pop ebp
pop esi
mov word [ecx + 8], dx
xor al, al
pop ebx
add esp, 0xb0
ret 0xc
lea eax, [ebp + 4]
push eax
push ebx
push edi
mov word [ebp], 0x300
mov word [ebp + 2], bx
call dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
push ebp
call dword [sym.imp.GDI32.dll_CreatePalette]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push edi
push esi
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
mov edx, dword [esp + 0x24]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x148]
test eax, eax
je 0x562a1c
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [str.Cancelled]
add edi, 0x44
mov dword [edi], eax
mov ecx, dword [0x61c5a0]
mov dword [edi + 4], ecx
mov dx, word [0x61c5a4]
mov word [edi + 8], dx
pop edi
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xb0
ret 0xc
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 6
push eax
push ebx
push ecx
mov ecx, edi
call fcn.0055e270
test eax, eax
jne 0x562a55
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xb0
ret 0xc
mov edx, dword [edi + 4]
push 0
push edx
push 0
mov ecx, edi
call fcn.0055de70
push eax
push ebx
push 0
push ebp
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
push ebp
mov edi, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
test edi, edi
pop edi
pop ebp
pop esi
setne al
pop ebx
add esp, 0xb0
ret 0xc
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
pop edi
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xb0
ret 0xc
cmp ebp, ebx
je 0x562abc
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
pop edi
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xb0
ret 0xc
push edi
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov eax, dword [0x61c590]
add ebx, 0x44
mov dword [ebx], eax
mov ecx, dword [0x61c594]
pop edi
mov dword [ebx + 4], ecx
mov dx, word [0x61c598]
pop ebp
pop esi
mov word [ebx + 8], dx
xor al, al
pop ebx
add esp, 0xb0
ret 0xc