Function at 0x423230
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0xac
push esi
mov esi, dword [esp + 0xb4]
push edi
mov edi, ecx
test esi, esi
jne 0x423252
pop edi
xor al, al
pop esi
add esp, 0xac
ret 4
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push ebx
push ebp
mov ecx, esi
call edx
mov ebp, eax
lea eax, [esp + 0x38]
push eax
push esi
mov ecx, edi
call fcn.00422f90
mov ebx, eax
push 0
test ebx, ebx
je 0x4232cc
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 + 0x18], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
movsx edx, word [esp + 0x3e]
movsx eax, word [esp + 0x42]
movzx ecx, word [esp + 0x46]
sub eax, edx
imul eax, ebp
cdq
idiv ecx
movsx edx, word [esp + 0x40]
mov esi, eax
movsx eax, word [esp + 0x44]
sub eax, edx
imul eax, dword [esp + 0x10]
cdq
idiv ecx
jmp 0x42332d
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ebp
mov ecx, esi
call edx
lea eax, [esp + 0x50]
push eax
push esi
mov ecx, edi
call fcn.00423120
mov ebx, eax
test ebx, ebx
jne 0x42331d
mov ecx, dword [str.corrupted_WMF]
mov dword [edi + 0x44], ecx
mov edx, dword [0x4b08dc]
mov dword [edi + 0x48], edx
mov eax, dword [0x4b08e0]
mov dword [edi + 0x4c], eax
mov cx, word [0x4b08e4]
pop ebp
pop ebx
mov word [edi + 0x50], cx
pop edi
xor al, al
pop esi
add esp, 0xac
ret 4
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
sub esi, dword [esp + 0x58]
sub eax, dword [esp + 0x5c]
cmp dword [edi + 0x148], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
je 0x423370
push ebx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov edx, dword [str.Cancelled]
mov dword [edi + 0x44], edx
mov eax, dword [0x4b08d0]
mov dword [edi + 0x48], eax
mov cx, word [0x4b08d4]
pop ebp
pop ebx
mov word [edi + 0x4c], cx
pop edi
xor al, al
pop esi
add esp, 0xac
ret 4
test esi, esi
je 0x423617
test eax, eax
je 0x423617
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.004231e0
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
mov ebp, eax
push edx
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebp
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
test esi, esi
je 0x4235f2
mov ebp, dword [esp + 0x14]
xor eax, eax
cmp ebp, eax
je 0x4235d5
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
push 0xc
push esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebp
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 5
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebp, dword [sym.imp.GDI32.dll_SetBkColor]
push eax
push esi
call ebp
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
push 2
push 0
push 0
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [esp + 0x10]
push eax
push esi
call ebp
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
mov ebp, eax
test ebp, ebp
je 0x4234f1
lea ecx, [ebp*4 + 4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4234b0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov eax, dword [str.Cancelled]
mov dword [edi + 0x44], eax
mov ecx, dword [0x4b08d0]
mov dword [edi + 0x48], ecx
mov dx, word [0x4b08d4]
pop ebp
pop ebx
mov word [edi + 0x4c], dx
pop edi
xor al, al
pop esi
add esp, 0xac
ret 4
mov ecx, 0x300
mov word [eax], cx
mov word [eax + 2], bp
add eax, 4
push eax
push ebp
push ebx
call dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.GDI32.dll_CreatePalette]
mov ebp, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0
push ebp
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
lea ecx, [esp + 0x28]
push ecx
push ebx
push esi
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
mov edx, dword [esp + 0x20]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
cmp dword [edi + 0x148], 0
je 0x423557
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [str.Cancelled]
mov dword [edi + 0x44], ecx
mov edx, dword [0x4b08d0]
mov dword [edi + 0x48], edx
mov ax, word [0x4b08d4]
pop ebp
pop ebx
mov word [edi + 0x4c], ax
pop edi
xor al, al
pop esi
add esp, 0xac
ret 4
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push 7
push ecx
push ebx
push edx
mov ecx, edi
call sym.Player.exe_public:_void____thiscall_CxImage::Create_unsigned_long_int__unsigned_long_int__long_int__long_int_
test eax, eax
jne 0x423594
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
pop ebx
pop edi
xor al, al
pop esi
add esp, 0xac
ret 4
mov ecx, dword [edi + 8]
push 0
push ecx
mov ecx, edi
call sym.Player.exe_public:_unsigned_char____thiscall_CxImage::GetBits_void_
push eax
push ebx
mov ebx, dword [esp + 0x24]
push 0
push ebx
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
push ebx
mov edi, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
xor eax, eax
pop ebx
test edi, edi
pop edi
setne al
pop esi
add esp, 0xac
ret 4
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
pop ebp
pop ebx
pop edi
xor al, al
pop esi
add esp, 0xac
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x423601
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
pop ebp
pop ebx
pop edi
xor al, al
pop esi
add esp, 0xac
ret 4
push ebx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov edx, dword [str.empty_WMF]
mov dword [edi + 0x44], edx
mov eax, dword [0x4b08c4]
mov dword [edi + 0x48], eax
mov cx, word [0x4b08c8]
pop ebp
pop ebx
mov word [edi + 0x4c], cx
pop edi
xor al, al
pop esi
add esp, 0xac
ret 4