Function at 0x430c40
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x551aa8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
jne 0x430c72
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf32
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push ebx
mov ecx, esi
call edx
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x2c]
push eax
push esi
mov ecx, edi
call fcn.004309c0
mov ebx, eax
push 0
test ebx, ebx
je 0x430d07
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 dword [ebp - 0x9c], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push 0
mov dword [ebp - 0xa0], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
movsx edx, word [ebp - 0x26]
movsx eax, word [ebp - 0x22]
movzx ecx, word [ebp - 0x1e]
sub eax, edx
imul eax, dword [ebp - 0x9c]
mov esi, ecx
shr esi, 1
add eax, esi
cdq
idiv ecx
movsx edx, word [ebp - 0x24]
mov dword [ebp - 0xa4], eax
movsx eax, word [ebp - 0x20]
sub eax, edx
imul eax, dword [ebp - 0xa0]
add eax, esi
cdq
idiv ecx
mov ecx, dword [ebp - 0xa4]
jmp 0x430d74
mov ecx, dword [ebp - 0x9c]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, esi
call edx
lea eax, [ebp - 0x98]
push eax
push esi
mov ecx, edi
call fcn.00430b20
mov ebx, eax
test ebx, ebx
jne 0x430d56
mov ecx, dword [str.corrupted_WMF]
mov dword [edi + 0x44], ecx
mov edx, dword [0x5121e8]
mov dword [edi + 0x48], edx
mov eax, dword [0x5121ec]
mov dword [edi + 0x4c], eax
mov cx, word [0x5121f0]
mov word [edi + 0x50], cx
jmp 0x4310c2
mov ecx, dword [ebp - 0x88]
sub ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x8c]
mov dword [ebp - 0xa4], ecx
cmp dword [edi + 0x148], 0xffffffff
mov dword [ebp - 0xa0], eax
jne 0x430dbe
push ebx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0x40], 0xa
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
add edi, 0x44
mov ecx, 6
mov esi, 0x511fb0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop ebx
movsb byte es:[edi], byte [esi]
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf32
mov esp, ebp
pop ebp
ret 0xc
test ecx, ecx
je 0x43109f
test eax, eax
je 0x43109f
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x430ddb
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x430de8
mov dword [ebp - 0xa0], eax
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0xa4]
push eax
mov ecx, edi
call fcn.00430bf0
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0xa4]
push ecx
mov esi, eax
push edx
push esi
mov dword [ebp - 0x9c], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push esi
mov dword [ebp - 0xa8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
mov eax, dword [ebp - 0x9c]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
cmp esi, eax
je 0x431085
cmp dword [ebp - 0xa8], eax
je 0x431075
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa0]
push 0xc
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xa8]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 5
mov dword [ebp - 0xb4], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 2
push 0
push 0
push esi
mov dword [ebp - 0x9c], eax
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov edx, dword [ebp - 0x9c]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
mov dword [ebp - 0xac], eax
test eax, eax
je 0x430f90
lea eax, [eax*4 + 4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x430f3b
mov ecx, dword [ebp - 0xa8]
push ecx
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 edx, dword [str.Cancelled]
mov dword [edi + 0x44], edx
mov eax, dword [0x511f9c]
mov dword [edi + 0x48], eax
mov cx, word [0x511fa0]
mov word [edi + 0x4c], cx
jmp 0x4310c2
mov ecx, dword [ebp - 0xac]
mov edx, 0x300
mov word [eax], dx
mov word [eax + 2], cx
add eax, 4
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetEnhMetaFilePaletteEntries]
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
mov ecx, dword [ebp - 0x9c]
push ecx
mov dword [ebp - 0xac], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0xac]
push 0
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
call dword [sym.imp.GDI32.dll_PlayEnhMetaFile]
mov ecx, dword [ebp - 0xb4]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
cmp dword [edi + 0x148], 0
je 0x430fef
mov edx, dword [ebp - 0xa8]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [str.Cancelled]
mov dword [edi + 0x44], eax
mov ecx, dword [0x511f9c]
mov dword [edi + 0x48], ecx
mov dx, word [0x511fa0]
mov word [edi + 0x4c], dx
jmp 0x4310c2
mov eax, dword [ebp - 0xb0]
mov ebx, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa4]
push 0xa
push eax
push ebx
push ecx
mov ecx, edi
call fcn.0042c430
test eax, eax
jne 0x43102a
mov edx, dword [ebp - 0xa8]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x4310c2
mov eax, dword [edi + 4]
push 0
push eax
push 0
mov ecx, edi
call fcn.0042bf90
push eax
push ebx
mov ebx, dword [ebp - 0xa8]
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]
xor eax, eax
pop ebx
test edi, edi
pop edi
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050bf32
mov esp, ebp
pop ebp
ret 0xc
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
jmp 0x4310c2
mov ecx, dword [ebp - 0xa8]
cmp ecx, eax
je 0x431096
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
jmp 0x4310c2
push ebx
call dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
mov ecx, dword [0x5121d8]
mov dword [edi + 0x44], ecx
mov edx, dword [0x5121dc]
mov dword [edi + 0x48], edx
mov ax, word [0x5121e0]
mov word [edi + 0x4c], ax
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.0050bf32
mov esp, ebp
pop ebp
ret 0xc