Function at 0x402c30
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80c]
push ebx
sub esp, 0x880
mov dword [esp], 0x428
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [esp], 0
mov esi, eax
call dword [sym.imp.user32.dll_GetDC]
sub esp, 4
mov ebx, eax
mov dword [ebp - 0x820], eax
mov dword [esp], 0
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
sub esp, 4
mov dword [ebp - 0x828], eax
mov dword [esp], ebx
mov ebx, esi
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0xa
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
sub esp, 0xc
mov dword [ebp - 0x824], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 1
mov dword [esp + 4], 0xa
mov dword [esp], 0xa
call dword [sym.imp.gdi32.dll_CreateBitmap]
mov ecx, 0x200
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x858], eax
mov eax, 0xaaaaaaaa
sub esp, 0x14
rep stosd dword es:[edi], eax
lea eax, [esi + 0x28]
mov dword [ebp - 0x830], eax
lea eax, [esi + 0x14]
mov dword [ebp - 0x840], eax
mov eax, dword [ebp - 0x818]
mov esi, ebx
mov dword [ebp - 0x850], 0
cmp eax, 4
mov word [ebp - 0x84a], ax
movzx eax, ax
mov dword [ebp - 0x854], eax
sete byte [ebp - 0x84b]
xor edx, edx
nop
mov eax, dword [ebp - 0x854]
movzx ecx, dx
mov dword [ebp - 0x81c], edx
mov ebx, esi
mov word [ebp - 0x838], dx
shl eax, 0x10
or ecx, eax
xor eax, eax
mov dword [ebp - 0x83c], ecx
mov dword [ebp - 0x814], eax
lea esi, [esi]
nop
mov eax, dword [ebp - 0x814]
cmp eax, 2
sete dl
sub eax, 4
and dl, byte [ebp - 0x84b]
xor esi, esi
mov dword [ebp - 0x844], eax
mov eax, dword [ebp - 0x818]
mov byte [ebp - 0x835], dl
sub eax, 4
cmp dword [ebp - 0x818], 1
mov dword [ebp - 0x848], eax
je 0x40364b
mov ecx, dword [ebp - 0x848]
cmp ecx, 0x1c
ja 0x402dc7
mov eax, 1
shl eax, cl
test eax, 0x100011
jne 0x40364b
test eax, 0x10001000
jne 0x405700
mov eax, dword [ebp - 0x840]
mov edi, dword [ebp - 0x830]
mov ecx, 0x100
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
movzx eax, word [ebp - 0x838]
mov dword [ebx], 0x28
mov word [ebx + 0xc], ax
movzx eax, word [ebp - 0x84a]
mov dword [ebx + 4], 2
mov word [ebx + 0xe], ax
mov eax, dword [ebp - 0x814]
mov dword [ebx + 8], 2
mov dword [ebx + 0x10], eax
mov eax, 0xaaaaaaaa
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x824]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GetDIBits]
sub esp, 0x1c
mov edi, eax
mov eax, dword [ebp - 0x818]
test eax, eax
jne 0x4056a0
mov eax, dword [ebp - 0x814]
cmp eax, 4
je 0x4056a0
mov dword [ebp - 0x82c], 0
cmp eax, 5
je 0x405990
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x3c2
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x814]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x81c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x818]
mov dword [esp + 4], str.GetDIBits_failed_for__u__u__u__u_n
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.00401820
mov edx, dword [ebp - 0x81c]
mov eax, dword [ebp - 0x840]
test edx, edx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [ebx], 0x28
mov dword [ebx + 4], 2
mov dword [ebx + 8], 2
je 0x405720
mov edx, dword [ebp - 0x83c]
mov edi, dword [ebp - 0x830]
mov eax, 0xaaaaaaaa
mov ecx, 0x100
mov dword [ebx + 0xc], edx
mov edx, dword [ebp - 0x814]
mov dword [ebx + 0x10], edx
lea edx, [ebp - 0x810]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov edx, dword [ebp - 0x820]
mov dword [esp], edx
call dword [sym.imp.gdi32.dll_CreateDIBSection]
mov edi, eax
mov eax, dword [ebp - 0x82c]
sub esp, 0x18
test eax, eax
je 0x40577a
cmp dword [ebp - 0x81c], 1
je 0x405620
cmp dword [ebp - 0x850], 0x10
jle 0x405620
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x834], eax
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x3d9
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x814]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x81c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x818]
mov dword [esp + 4], str.CreateDIBSection_succeeded_for__u__u__u__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
sete al
mov dword [esp], eax
call fcn.00401820
test edi, edi
je 0x40301b
mov dword [esp], edi
call dword [sym.imp.gdi32.dll_DeleteObject]
sub esp, 4
lea eax, [ebp - 0x80c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateDIBitmap]
sub esp, 0x18
cmp dword [ebp - 0x844], 1
mov edi, eax
jbe 0x405a07
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x3e2
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x814]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x81c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x818]
mov dword [esp + 4], str.CreateDIBitmap_failed_for__u__u__u__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
setne al
mov dword [esp], eax
call fcn.00401820
test edi, edi
je 0x4030b5
mov dword [esp], edi
call dword [sym.imp.gdi32.dll_DeleteObject]
sub esp, 4
lea eax, [ebp - 0x80c]
mov dword [ebx + 0x14], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x824]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x820]
mov dword [esp], edx
call dword [sym.imp.gdi32.dll_SetDIBits]
mov edi, eax
mov eax, dword [ebp - 0x834]
sub esp, 0x1c
test eax, eax
je 0x403720
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x3e9
mov dword [esp + 0x14], esi
mov ecx, dword [ebp - 0x814]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x81c]
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0x818]
mov dword [esp], edi
lea edi, [ebp - 0x80c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SetDIBits_failed_for__u__u__u__u_n
call fcn.00401820
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov edi, dword [ebp - 0x828]
mov dword [esp], edi
call dword [sym.imp.gdi32.dll_SetDIBitsToDevice]
sub esp, 0x30
mov edi, eax
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x3f0
mov dword [esp + 0x14], esi
mov ecx, dword [ebp - 0x814]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x81c]
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0x818]
mov dword [esp], edi
lea edi, [ebp - 0x80c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SetDIBitsToDevice_failed_for__u__u__u__u_n
call fcn.00401820
mov dword [esp + 0x30], 0xcc0020
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov edi, dword [ebp - 0x828]
mov dword [esp], edi
call dword [sym.imp.gdi32.dll_StretchDIBits]
sub esp, 0x34
mov edi, eax
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x3f7
mov dword [esp + 0x14], esi
mov ecx, dword [ebp - 0x814]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x81c]
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0x818]
mov dword [esp], edi
lea edi, [ebp - 0x80c]
mov dword [esp + 8], eax
mov dword [esp + 4], str.StretchDIBits_failed_for__u__u__u__u_n
call fcn.00401820
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x824]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x820]
mov dword [esp], edx
call dword [sym.imp.gdi32.dll_GetDIBits]
sub esp, 0x1c
mov edi, eax
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x3ff
mov dword [esp + 0x14], esi
mov ecx, dword [ebp - 0x814]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x81c]
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0x818]
mov dword [esp + 4], str.GetDIBits_failed_for__u__u__u__u_n
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.00401820
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x402
movzx eax, word [ebx + 0xe]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x818]
mov dword [esp + 4], str.GetDIBits_modified_bpp__u__u_n
cmp eax, edx
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00401820
mov eax, dword [ebp - 0x83c]
mov edx, dword [ebp - 0x814]
mov ecx, 0x100
mov edi, dword [ebp - 0x830]
cmp byte [ebp - 0x835], 0
mov dword [ebx], 0x28
mov dword [ebx + 0xc], eax
mov eax, 0xaaaaaaaa
mov dword [ebx + 4], 2
mov dword [ebx + 8], 2
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], 1
rep stosd dword es:[edi], eax
jne 0x4033c8
cmp dword [ebp - 0x818], 8
jne 0x4039a8
cmp edx, 1
jne 0x4039a8
lea eax, [ebp - 0x80c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x824]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SetDIBits]
sub esp, 0x1c
mov edi, eax
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x412
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x814]
mov dword [esp + 0x10], eax
mov edx, dword [ebp - 0x81c]
mov dword [esp + 0xc], edx
mov ecx, dword [ebp - 0x818]
mov dword [esp], edi
lea edi, [ebp - 0x80c]
mov dword [esp + 8], ecx
mov dword [esp + 4], str.SetDIBits_failed_for__u__u__u__u_n
call fcn.00401820
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov edi, dword [ebp - 0x828]
mov dword [esp], edi
call dword [sym.imp.gdi32.dll_SetDIBitsToDevice]
sub esp, 0x30
mov edi, eax
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x417
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x814]
mov dword [esp + 0x10], eax
mov edx, dword [ebp - 0x81c]
mov dword [esp + 0xc], edx
mov ecx, dword [ebp - 0x818]
mov dword [esp], edi
lea edi, [ebp - 0x80c]
mov dword [esp + 8], ecx
mov dword [esp + 4], str.SetDIBitsToDevice_failed_for__u__u__u__u_n
call fcn.00401820
mov dword [esp + 0x30], 0xcc0020
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov edi, dword [ebp - 0x828]
mov dword [esp], edi
call dword [sym.imp.gdi32.dll_StretchDIBits]
sub esp, 0x34
mov edi, eax
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x41c
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x814]
mov dword [esp + 0x10], eax
mov edx, dword [ebp - 0x81c]
mov dword [esp + 0xc], edx
mov ecx, dword [ebp - 0x818]
mov dword [esp], edi
mov dword [esp + 8], ecx
mov dword [esp + 4], str.StretchDIBits_failed_for__u__u__u__u_n
call fcn.00401820
mov dword [ebx + 0x14], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x824]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GetDIBits]
sub esp, 0x1c
mov edi, eax
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x423
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x814]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x81c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x818]
mov dword [esp + 4], str.GetDIBits_failed_for__u__u__u__u_n
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.00401820
test esi, esi
jne 0x403c6c
cmp dword [ebp - 0x818], 1
mov esi, 1
jne 0x402d9f
mov edx, dword [ebp - 0x814]
xor eax, eax
test edx, edx
sete al
mov dword [ebp - 0x82c], eax
mov eax, dword [ebp - 0x840]
mov edi, dword [ebp - 0x830]
mov ecx, 0x100
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
movzx eax, word [ebp - 0x838]
mov dword [ebx], 0x28
mov word [ebx + 0xc], ax
movzx eax, word [ebp - 0x84a]
mov dword [ebx + 4], 2
mov word [ebx + 0xe], ax
mov eax, dword [ebp - 0x814]
mov dword [ebx + 8], 2
mov dword [ebx + 0x10], eax
mov eax, 0xaaaaaaaa
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x824]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GetDIBits]
mov edi, eax
mov eax, dword [ebp - 0x82c]
sub esp, 0x1c
test eax, eax
jne 0x402ea4
jmp 0x402e74
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x3eb
test edi, edi
je 0x405790
cmp byte [ebp - 0x835], 0
jne 0x40375d
cmp dword [ebp - 0x818], 8
jne 0x4057e0
cmp dword [ebp - 0x814], 1
jne 0x4057e0
mov edi, dword [0x5b41f0]
xor eax, eax
test edi, edi
sete al
mov dword [esp + 0x14], esi
mov edx, dword [ebp - 0x814]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp - 0x81c]
mov dword [esp + 0xc], ecx
mov edx, dword [ebp - 0x818]
mov dword [esp], eax
mov dword [esp + 8], edx
mov dword [esp + 4], str.SetDIBits_succeeded_for__u__u__u__u_n
call fcn.00401820
lea eax, [ebp - 0x80c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x828]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SetDIBitsToDevice]
sub esp, 0x30
mov edi, eax
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x3f2
test edi, edi
jne 0x4057c0
mov eax, 1
mov dword [esp + 0x14], esi
mov ecx, dword [ebp - 0x814]
mov dword [esp + 0x10], ecx
mov edx, dword [ebp - 0x81c]
mov dword [esp + 0xc], edx
mov ecx, dword [ebp - 0x818]
mov dword [esp], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], str.SetDIBitsToDevice_succeeded_for__u__u__u__u_n
call fcn.00401820
lea eax, [ebp - 0x80c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xcc0020
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x828]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_StretchDIBits]
sub esp, 0x34
mov edi, eax
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x3f9
test edi, edi
jne 0x4057a0
mov eax, 1
mov dword [esp + 0x14], esi
mov edx, dword [ebp - 0x814]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp - 0x81c]
mov dword [esp + 0xc], ecx
mov edi, dword [ebp - 0x818]
mov dword [esp], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str.StretchDIBits_succeeded_for__u__u__u__u_n
call fcn.00401820
lea eax, [ebp - 0x80c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x824]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GetDIBits]
sub esp, 0x1c
mov edi, eax
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x401
mov dword [esp + 0x14], esi
mov edx, dword [ebp - 0x814]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp - 0x81c]
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0x818]
mov dword [esp + 4], str.GetDIBits_succeeded_for__u__u__u__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
sete al
mov dword [esp], eax
call fcn.00401820
jmp 0x40332e
lea eax, [ebp - 0x80c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x824]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SetDIBits]
mov edi, eax
mov eax, dword [ebp - 0x834]
sub esp, 0x1c
test eax, eax
jne 0x403408
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x414
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x814]
mov dword [esp + 0x10], eax
mov ecx, dword [ebp - 0x81c]
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0x818]
mov dword [esp + 4], str.SetDIBits_succeeded_for__u__u__u__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
lea edi, [ebp - 0x80c]
sete al
mov dword [esp], eax
call fcn.00401820
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov edi, dword [ebp - 0x828]
mov dword [esp], edi
call dword [sym.imp.gdi32.dll_SetDIBitsToDevice]
sub esp, 0x30
mov edi, eax
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x419
mov dword [esp + 0x14], esi
mov edx, dword [ebp - 0x814]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp - 0x81c]
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0x818]
mov dword [esp + 4], str.SetDIBitsToDevice_succeeded_for__u__u__u__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
sete al
mov dword [esp], eax
call fcn.00401820
lea edx, [ebp - 0x80c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], 0xcc0020
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov edi, dword [ebp - 0x828]
mov dword [esp], edi
call dword [sym.imp.gdi32.dll_StretchDIBits]
sub esp, 0x34
mov edi, eax
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x41e
mov dword [esp + 0x14], esi
mov edx, dword [ebp - 0x814]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp - 0x81c]
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0x818]
mov dword [esp + 4], str.StretchDIBits_succeeded_for__u__u__u__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
sete al
mov dword [esp], eax
call fcn.00401820
mov dword [ebx + 0x14], 0
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x824]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x820]
mov dword [esp], edx
call dword [sym.imp.gdi32.dll_GetDIBits]
mov edi, eax
mov eax, dword [ebp - 0x818]
sub esp, 0x1c
test eax, eax
je 0x4035ed
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x425
mov eax, 1
test edi, edi
je 0x403c32
mov eax, dword [ebp - 0x81c]
mov edx, dword [ebp - 0x82c]
or eax, dword [0x5b41f0]
sete al
and edx, eax
mov eax, edx
mov dword [esp + 0x14], esi
mov edx, dword [ebp - 0x814]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x81c]
mov dword [esp + 0xc], edx
mov ecx, dword [ebp - 0x818]
mov dword [esp + 4], str.GetDIBits_succeeded_for__u__u__u__u_n
mov dword [esp + 8], ecx
mov dword [esp], eax
call fcn.00401820
test esi, esi
je 0x403639
add dword [ebp - 0x814], 1
mov eax, dword [ebp - 0x814]
cmp eax, 8
jne 0x402d60
mov edx, dword [ebp - 0x81c]
mov eax, ebx
mov ecx, dword [ebp - 0x818]
mov ebx, esi
add dword [ebp - 0x850], ecx
mov esi, eax
add edx, 1
cmp edx, 0x41
jne 0x402d30
add dword [ebp - 0x818], 1
mov esi, ebx
mov ebx, eax
mov eax, dword [ebp - 0x818]
cmp eax, 0x41
jne 0x402d01
mov eax, ebx
mov ebx, esi
mov dword [eax + 0x14], 0
mov esi, eax
mov eax, dword [ebp - 0x840]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
lea eax, [ebp - 0x810]
mov dword [esi], 0x28
mov dword [esi + 4], 2
mov dword [esi + 8], 2
mov dword [esi + 0xc], 0x100001
mov dword [esi + 0x10], 3
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateDIBSection]
sub esp, 0x18
mov edi, eax
mov eax, 0x439
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.CreateDIBSection_succeeded_with_null_bitfields_n
sete al
mov dword [esp], eax
call fcn.00401820
lea edx, [ebp - 0x80c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x824]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SetDIBits]
sub esp, 0x1c
mov edi, eax
mov eax, 0x43b
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.SetDIBits_succeeded_with_null_bitfields_n
sete al
mov dword [esp], eax
call fcn.00401820
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov eax, dword [ebp - 0x810]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateDIBitmap]
sub esp, 0x18
mov edi, eax
mov eax, 0x43e
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.CreateDIBitmap_failed_with_null_bitfields_n
setne al
mov dword [esp], eax
call fcn.00401820
mov dword [esp], edi
call dword [sym.imp.gdi32.dll_DeleteObject]
lea ecx, [ebp - 0x80c]
sub esp, 4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov ecx, dword [ebp - 0x828]
mov dword [esp], ecx
call dword [sym.imp.gdi32.dll_SetDIBitsToDevice]
sub esp, 0x30
mov edi, eax
mov eax, 0x441
call fcn.00401020
mov dword [esp], edi
lea edi, [ebp - 0x80c]
mov dword [esp + 4], str.SetDIBitsToDevice_failed_with_null_bitfields_n
call fcn.00401820
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], 0xcc0020
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov ecx, dword [ebp - 0x828]
mov dword [esp], ecx
call dword [sym.imp.gdi32.dll_StretchDIBits]
sub esp, 0x34
mov edi, eax
mov eax, 0x443
call fcn.00401020
mov dword [esp], edi
mov dword [esp + 4], str.StretchDIBits_failed_with_null_bitfields_n
call fcn.00401820
lea ecx, [ebp - 0x80c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x824]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GetDIBits]
sub esp, 0x1c
mov edi, eax
mov eax, 0x445
call fcn.00401020
mov dword [esp], edi
mov dword [esp + 4], str.GetDIBits_failed_with_null_bitfields_n
call fcn.00401820
mov dword [esi + 0xc], 0x100001
mov dword [esi + 0x10], 3
mov dword [esi + 0x14], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x824]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GetDIBits]
sub esp, 0x1c
mov edi, eax
mov eax, 0x44e
call fcn.00401020
mov dword [esp], edi
mov dword [esp + 4], str.GetDIBits_failed_with_null_bitfields_n
call fcn.00401820
lea ecx, [ebp - 0x810]
mov dword [esi + 0x28], 3
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 7
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateDIBSection]
sub esp, 0x18
mov edi, eax
mov eax, 0x455
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.CreateDIBSection_succeeded_with_null_bitfields_n
sete al
mov dword [esp], eax
call fcn.00401820
lea ecx, [ebp - 0x80c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x824]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SetDIBits]
sub esp, 0x1c
mov edi, eax
mov eax, 0x457
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.SetDIBits_succeeded_with_null_bitfields_n
sete al
mov dword [esp], eax
call fcn.00401820
lea edx, [ebp - 0x810]
mov dword [esi + 0x28], 0x55
mov dword [esi + 0x2c], 0x44
mov dword [esi + 0x30], 0x33
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateDIBSection]
sub esp, 0x18
mov edi, eax
mov eax, 0x45e
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.CreateDIBSection_failed_with_bad_bitfields_n
setne al
mov dword [esp], eax
call fcn.00401820
test edi, edi
je 0x404192
mov dword [esp], edi
call dword [sym.imp.gdi32.dll_DeleteObject]
sub esp, 4
lea eax, [ebp - 0x80c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x824]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SetDIBits]
sub esp, 0x1c
mov edi, eax
mov eax, 0x461
call fcn.00401020
mov dword [esp], edi
mov dword [esp + 4], str.SetDIBits_failed_with_bad_bitfields_n
call fcn.00401820
mov ecx, 0x20
mov dword [esi + 4], 0xfffffffe
mov word [esi + 0xe], cx
lea ecx, [ebp - 0x810]
mov dword [esi + 8], 2
mov dword [esi + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateDIBSection]
sub esp, 0x18
mov edi, eax
mov eax, 0x468
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.CreateDIBSection_succeeded_with_negative_width_n
sete al
mov dword [esp], eax
call fcn.00401820
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov eax, dword [ebp - 0x810]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateDIBitmap]
sub esp, 0x18
mov edi, eax
mov eax, 0x46a
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.CreateDIBitmap_succeeded_with_negative_width_n
sete al
mov dword [esp], eax
call fcn.00401820
lea ecx, [ebp - 0x80c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x824]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SetDIBits]
sub esp, 0x1c
mov edi, eax
mov eax, 0x46c
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.SetDIBits_succeeded_with_negative_width_n
sete al
mov dword [esp], eax
call fcn.00401820
lea ecx, [ebp - 0x80c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov ecx, dword [ebp - 0x828]
mov dword [esp], ecx
call dword [sym.imp.gdi32.dll_SetDIBitsToDevice]
sub esp, 0x30
mov edi, eax
mov eax, 0x46e
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.SetDIBitsToDevice_succeeded_with_negative_width_n
sete al
lea edi, [ebp - 0x80c]
mov dword [esp], eax
call fcn.00401820
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], 0xcc0020
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov ecx, dword [ebp - 0x828]
mov dword [esp], ecx
call dword [sym.imp.gdi32.dll_StretchDIBits]
sub esp, 0x34
mov edi, eax
mov eax, 0x470
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.StretchDIBits_succeeded_with_negative_width_n
sete al
mov dword [esp], eax
call fcn.00401820
lea ecx, [ebp - 0x80c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x824]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GetDIBits]
sub esp, 0x1c
mov edi, eax
mov eax, 0x472
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.GetDIBits_succeeded_with_negative_width_n
sete al
mov edi, 0x20
mov dword [esp], eax
call fcn.00401820
mov word [esi + 0xe], di
mov dword [esi + 4], 0xfffffffe
mov dword [esi + 8], 2
mov dword [esi + 0x10], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x824]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GetDIBits]
sub esp, 0x1c
mov edi, eax
mov eax, 0x478
call fcn.00401020
mov eax, ebx
test edi, edi
je 0x404525
mov edx, dword [0x5b41f0]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
mov dword [esp + 4], str.GetDIBits_succeeded_with_negative_width_n
call fcn.00401820
mov eax, 0x20
mov dword [esi + 4], 0
mov word [esi + 0xe], ax
lea eax, [ebp - 0x810]
mov dword [esi + 8], 2
mov dword [esi + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateDIBSection]
sub esp, 0x18
mov edi, eax
mov eax, 0x47f
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.CreateDIBSection_succeeded_with_zero_width_n
sete al
mov dword [esp], eax
call fcn.00401820
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov eax, dword [ebp - 0x810]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateDIBitmap]
sub esp, 0x18
mov edi, eax
mov eax, 0x481
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.CreateDIBitmap_failed_with_zero_width_n
setne al
mov dword [esp], eax
call fcn.00401820
mov dword [esp], edi
call dword [sym.imp.gdi32.dll_DeleteObject]
lea edx, [ebp - 0x80c]
sub esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x824]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SetDIBits]
sub esp, 0x1c
mov edi, eax
mov eax, 0x484
call fcn.00401020
mov eax, ebx
test edi, edi
je 0x404672
mov edi, dword [0x5b41f0]
xor eax, eax
test edi, edi
sete al
mov dword [esp], eax
mov dword [esp + 4], str.SetDIBits_succeeded_with_zero_width_n
call fcn.00401820
lea eax, [ebp - 0x80c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x828]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SetDIBitsToDevice]
sub esp, 0x30
mov edi, eax
mov eax, 0x486
call fcn.00401020
mov eax, ebx
test edi, edi
je 0x404709
mov ecx, dword [0x5b41f0]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp], eax
mov dword [esp + 4], str.SetDIBitsToDevice_succeeded_with_zero_width_n
call fcn.00401820
lea eax, [ebp - 0x80c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], 0xcc0020
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x828]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_StretchDIBits]
sub esp, 0x34
mov edi, eax
mov eax, 0x488
call fcn.00401020
mov eax, ebx
test edi, edi
je 0x4047a8
mov edx, dword [0x5b41f0]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
mov dword [esp + 4], str.StretchDIBits_succeeded_with_zero_width_n
call fcn.00401820
lea eax, [ebp - 0x80c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x824]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x820]
mov dword [esp], edx
call dword [sym.imp.gdi32.dll_GetDIBits]
sub esp, 0x1c
mov edi, eax
mov eax, 0x48a
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.GetDIBits_succeeded_with_zero_width_n
sete al
mov dword [esp], eax
call fcn.00401820
mov eax, 0x20
mov dword [esi + 4], 0
mov word [esi + 0xe], ax
mov dword [esi + 8], 2
mov dword [esi + 0x10], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x824]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x820]
mov dword [esp], edx
call dword [sym.imp.gdi32.dll_GetDIBits]
sub esp, 0x1c
mov edi, eax
mov eax, 0x490
call fcn.00401020
mov eax, ebx
test edi, edi
je 0x40489a
mov edi, dword [0x5b41f0]
xor eax, eax
test edi, edi
sete al
mov dword [esp], eax
mov dword [esp + 4], str.GetDIBits_succeeded_with_zero_width_n
call fcn.00401820
mov ecx, 0x20
lea eax, [ebp - 0x810]
mov dword [esi + 4], 2
mov word [esi + 0xe], cx
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateDIBSection]
sub esp, 0x18
mov edi, eax
mov eax, 0x497
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.CreateDIBSection_succeeded_with_zero_height_n
sete al
mov dword [esp], eax
call fcn.00401820
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], esi
mov eax, dword [ebp - 0x810]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateDIBitmap]
sub esp, 0x18
mov edi, eax
mov eax, 0x499
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.CreateDIBitmap_failed_with_zero_height_n
setne al
mov dword [esp], eax
call fcn.00401820
mov dword [esp], edi
call dword [sym.imp.gdi32.dll_DeleteObject]
lea edx, [ebp - 0x80c]
sub esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x824]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SetDIBits]
sub esp, 0x1c
mov edi, eax
mov eax, 0x49c
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.SetDIBits_succeeded_with_zero_height_n
sete al
mov dword [esp], eax
call fcn.00401820
lea ecx, [ebp - 0x80c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov ecx, dword [ebp - 0x828]
mov dword [esp], ecx
call dword [sym.imp.gdi32.dll_SetDIBitsToDevice]
sub esp, 0x30
mov edi, eax
mov eax, 0x49e
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.SetDIBitsToDevice_succeeded_with_zero_height_n
sete al
lea edi, [ebp - 0x80c]
mov dword [esp], eax
call fcn.00401820
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], 0xcc0020
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov ecx, dword [ebp - 0x828]
mov dword [esp], ecx
call dword [sym.imp.gdi32.dll_StretchDIBits]
sub esp, 0x34
mov edi, eax
mov eax, 0x4a0
call fcn.00401020
xor eax, eax
test edi, edi
mov dword [esp + 4], str.StretchDIBits_succeeded_with_zero_height_n
sete al
mov dword [esp], eax
call fcn.00401820
lea ecx, [ebp - 0x80c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x824]
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GetDIBits]
sub esp, 0x1c
mov edi, eax
mov eax, 0x4a2
call fcn.00401020
mov eax, ebx
test edi, edi
je 0x404b6a
mov edx, dword [0x5b41f0]
xor eax, eax
test edx, edx
sete al
mov dword [esp], eax
mov edi, 0x20
mov dword [esp + 4], str.GetDIBits_succeeded_with_zero_height_n
call fcn.00401820
mov word [esi + 0xe], di
mov dword [esi + 4], 2
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x824]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_GetDIBits]
mov edi, eax
sub esp, 0x1c
mov eax, 0x4a8
call fcn.00401020
test edi, edi
je 0x404bf5
mov ecx, dword [0x5b41f0]
xor ebx, ebx
test ecx, ecx
sete bl
mov dword [esp], ebx
mov dword [esp + 4], str.GetDIBits_succeeded_with_zero_height_n
call fcn.00401820
mov eax, 1
mov dword [esi + 4], 2
mov word [esi + 0xe], ax
lea eax, [ebp - 0x810]
mov dword [esi + 8], 2
mov dword [esi + 0x10], 0
mov dword [esp + 4], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov edi, dword [ebp - 0x820]
mov dword [esp], edi
call dword [sym.imp.gdi32.dll_CreateDIBSection]
sub esp, 0x18
mov ebx, eax
mov eax, 0x4b1
call fcn.00401020
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.CreateDIBSection_succeeded_with_DIB_PAL_COLORS1_n
sete al
mov dword [esp], eax
call fcn.00401820
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 2
mov eax, dword [ebp - 0x810]
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
call dword [sym.imp.gdi32.dll_CreateDIBitmap]
sub esp, 0x18
mov ebx, eax
mov eax, 0x4b3
call fcn.00401020
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.CreateDIBitmap_failed_with_DIB_PAL_COLORS1_n
setne al
mov dword [esp], eax
call fcn.00401820
mov dword [esp], ebx
call dword [sym.imp.gdi32.dll_DeleteObject]
lea eax, [ebp - 0x80c]
sub esp, 4
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 2
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x824]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.gdi32.dll_SetDIBits]
sub esp, 0x1c
mov ebx, eax
mov eax, 0x4b6
call fcn.00401020
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.SetDIBits_succeeded_with_DIB_PAL_COLORS1_n
sete al
lea ebx, [ebp - 0x80c]
mov dword [esp], eax
call fcn.00401820
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 2
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov ebx, dword [ebp - 0x858]
mov dword [esp], edi
mov dword [esp + 4], ebx
call dword [sym.imp.gdi32.dll_SetDIBits]
sub esp, 0x1c
mov ebx, eax
mov eax, 0x4b8
call fcn.00401020
mov dword [esp], ebx
mov dword [esp + 4], str.SetDIBits_failed_with_DIB_PAL_COLORS1_n
call fcn.00401820
lea ecx, [ebp - 0x80c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], 2
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov ebx, dword [ebp - 0x828]
mov dword [esp], ebx
call dword [sym.imp.gdi32.dll_SetDIBitsToDevice]
sub esp, 0x30
mov ebx, eax
mov eax, 0x4ba
call fcn.00401020
mov dword [esp], ebx
mov dword [esp + 4], str.SetDIBitsToDevice_failed_with_DIB_PAL_COLORS1_n
call fcn.00401820
lea ecx, [ebp - 0x80c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], 0xcc0020
mov dword [esp + 0x2c], 2
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov ebx, dword [ebp - 0x828]
mov dword [esp], ebx
call dword [sym.imp.gdi32.dll_StretchDIBits]
sub esp, 0x34
mov ebx, eax
mov eax, 0x4bc
call fcn.00401020
mov dword [esp], ebx
mov dword [esp + 4], str.StretchDIBits_failed_with_DIB_PAL_COLORS1_n
call fcn.00401820
lea ecx, [ebp - 0x80c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 2
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x824]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.gdi32.dll_GetDIBits]
sub esp, 0x1c
mov ebx, eax
mov eax, 0x4be
call fcn.00401020
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.GetDIBits_succeeded_with_DIB_PAL_COLORS1_n
sete al
mov dword [esp], eax
call fcn.00401820
mov edx, 1
mov dword [esi + 4], 2
mov word [esi + 0xe], dx
mov dword [esi + 8], 2
mov dword [esi + 0x10], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x824]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.gdi32.dll_GetDIBits]
sub esp, 0x1c
mov ebx, eax
mov eax, 0x4c4
call fcn.00401020
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.GetDIBits_succeeded_with_DIB_PAL_COLORS1_n
sete al
mov dword [esp], eax
call fcn.00401820
mov ecx, 1
mov dword [esi + 4], 2
mov word [esi + 0xe], cx
lea ecx, [ebp - 0x810]
mov dword [esi + 8], 2
mov dword [esi + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 3
call dword [sym.imp.gdi32.dll_CreateDIBSection]
sub esp, 0x18
mov ebx, eax
mov eax, 0x4cb
call fcn.00401020
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.CreateDIBSection_succeeded_with_DIB_PAL_COLORS2_n
sete al
mov dword [esp], eax
call fcn.00401820
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 3
mov eax, dword [ebp - 0x810]
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
call dword [sym.imp.gdi32.dll_CreateDIBitmap]
sub esp, 0x18
mov ebx, eax
mov eax, 0x4cd
call fcn.00401020
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.CreateDIBitmap_succeeded_with_DIB_PAL_COLORS2_n
sete al
mov dword [esp], eax
call fcn.00401820
mov dword [esp], ebx
call dword [sym.imp.gdi32.dll_DeleteObject]
lea ecx, [ebp - 0x80c]
sub esp, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 3
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x824]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.gdi32.dll_SetDIBits]
sub esp, 0x1c
mov ebx, eax
mov eax, 0x4d0
call fcn.00401020
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.SetDIBits_succeeded_with_DIB_PAL_COLORS2_n
sete al
mov dword [esp], eax
call fcn.00401820
lea ecx, [ebp - 0x80c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 3
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov edx, dword [ebp - 0x858]
mov dword [esp], edi
mov dword [esp + 4], edx
call dword [sym.imp.gdi32.dll_SetDIBits]
sub esp, 0x1c
mov ebx, eax
mov eax, 0x4d2
call fcn.00401020
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.SetDIBits_succeeded_with_DIB_PAL_COLORS2_n
sete al
mov dword [esp], eax
call fcn.00401820
lea ecx, [ebp - 0x80c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], 3
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov ebx, dword [ebp - 0x828]
mov dword [esp], ebx
call dword [sym.imp.gdi32.dll_SetDIBitsToDevice]
sub esp, 0x30
mov ebx, eax
mov eax, 0x4d4
call fcn.00401020
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.SetDIBitsToDevice_succeeded_with_DIB_PAL_COLORS2_n
sete al
mov dword [esp], eax
call fcn.00401820
lea ecx, [ebp - 0x80c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], 0xcc0020
mov dword [esp + 0x2c], 3
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov ebx, dword [ebp - 0x828]
mov dword [esp], ebx
call dword [sym.imp.gdi32.dll_StretchDIBits]
sub esp, 0x34
mov ebx, eax
mov eax, 0x4d6
call fcn.00401020
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.StretchDIBits_succeeded_with_DIB_PAL_COLORS2_n
sete al
mov dword [esp], eax
call fcn.00401820
lea ecx, [ebp - 0x80c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 3
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x824]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.gdi32.dll_GetDIBits]
sub esp, 0x1c
mov ebx, eax
mov eax, 0x4d8
call fcn.00401020
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.GetDIBits_succeeded_with_DIB_PAL_COLORS2_n
sete al
mov ebx, 1
mov dword [esp], eax
call fcn.00401820
mov word [esi + 0xe], bx
mov dword [esi + 4], 2
mov dword [esi + 8], 2
mov dword [esi + 0x10], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 3
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x824]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.gdi32.dll_GetDIBits]
sub esp, 0x1c
mov ebx, eax
mov eax, 0x4de
call fcn.00401020
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.GetDIBits_succeeded_with_DIB_PAL_COLORS2_n
sete al
mov dword [esp], eax
call fcn.00401820
lea ecx, [ebp - 0x810]
mov eax, 1
mov dword [esi + 4], 0x4000
mov dword [esi + 8], 0x4000
mov word [esi + 0xe], ax
mov dword [esi + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
call dword [sym.imp.gdi32.dll_CreateDIBSection]
sub esp, 0x18
mov ebx, eax
mov eax, 0x4e5
call fcn.00401020
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.CreateDIBSection_failed_with_large_size_n
setne al
mov dword [esp], eax
call fcn.00401820
mov dword [esp], ebx
call dword [sym.imp.gdi32.dll_DeleteObject]
lea ecx, [ebp - 0x810]
mov eax, 0x20
mov dword [esi + 4], 0x8001
sub esp, 4
mov dword [esi + 8], 0x8001
mov word [esi + 0xe], ax
mov dword [esi + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
call dword [sym.imp.gdi32.dll_CreateDIBSection]
sub esp, 0x18
mov ebx, eax
mov eax, 0x4ed
call fcn.00401020
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.CreateDIBSection_succeeded_with_size_overflow_n
sete al
mov dword [esp], eax
call fcn.00401820
lea ecx, [ebp - 0x810]
mov eax, 0x20
mov dword [esi + 4], 1
mov dword [esi + 8], 0x40000001
mov word [esi + 0xe], ax
mov dword [esi + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
call dword [sym.imp.gdi32.dll_CreateDIBSection]
sub esp, 0x18
mov ebx, eax
mov eax, 0x4f4
call fcn.00401020
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.CreateDIBSection_succeeded_with_size_overflow_n
sete al
mov dword [esp], eax
call fcn.00401820
lea ecx, [ebp - 0x810]
mov eax, 0x10
mov dword [esi + 4], 2
mov dword [esi + 8], 0x40000001
mov word [esi + 0xe], ax
mov dword [esi + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
call dword [sym.imp.gdi32.dll_CreateDIBSection]
sub esp, 0x18
mov ebx, eax
mov eax, 0x4fb
call fcn.00401020
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.CreateDIBSection_succeeded_with_size_overflow_n
sete al
mov dword [esp], eax
call fcn.00401820
lea ecx, [ebp - 0x810]
mov eax, 0x20
mov dword [esi + 4], 0x40000001
mov dword [esi + 8], 1
mov word [esi + 0xe], ax
mov dword [esi + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
call dword [sym.imp.gdi32.dll_CreateDIBSection]
sub esp, 0x18
mov ebx, eax
mov eax, 0x502
call fcn.00401020
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.CreateDIBSection_succeeded_with_size_overflow_n
sete al
mov dword [esp], eax
call fcn.00401820
lea ecx, [ebp - 0x810]
mov edx, 8
mov dword [esi + 4], 0x40000001
mov word [esi + 0xe], dx
mov dword [esi + 8], 4
mov dword [esi + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
call dword [sym.imp.gdi32.dll_CreateDIBSection]
sub esp, 0x18
mov ebx, eax
mov eax, 0x509
call fcn.00401020
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.CreateDIBSection_succeeded_with_size_overflow_n
sete al
mov dword [esp], eax
call fcn.00401820
mov ebx, dword [ebp - 0x828]
mov dword [esp], ebx
call dword [sym.imp.gdi32.dll_DeleteDC]
mov eax, dword [ebp - 0x824]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_DeleteObject]
mov ebx, dword [ebp - 0x858]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.gdi32.dll_DeleteObject]
sub esp, 4
mov dword [esp + 4], edi
mov dword [esp], 0
call dword [sym.imp.user32.dll_ReleaseDC]
sub esp, 8
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_free]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x814], 3
jne 0x40563d
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x834], eax
test esi, esi
jne 0x402fc0
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x3d7
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x814]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x81c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x818]
mov dword [esp + 4], str.CreateDIBSection_failed_for__u__u__u__u_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
setne al
mov dword [esp], eax
call fcn.00401820
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x834], eax
jmp 0x40300b
cmp byte [ebp - 0x835], 0
mov dword [ebp - 0x82c], 0
jne 0x402ea4
cmp dword [ebp - 0x818], 8
jne 0x4056cd
cmp dword [ebp - 0x814], 1
je 0x402ea4
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x3c4
test edi, edi
je 0x4059a6
mov ecx, dword [ebp - 0x818]
test ecx, ecx
je 0x4059ec
xor eax, eax
jmp 0x4059ab
movzx ecx, byte [ebp - 0x814]
mov eax, 9
shr eax, cl
and eax, 1
mov dword [ebp - 0x82c], eax
jmp 0x40365e
mov eax, dword [ebp - 0x83c]
mov edi, dword [ebp - 0x830]
mov ecx, 0x100
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x814]
mov dword [ebx + 0x10], eax
mov eax, 0xaaaaaaaa
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x810]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x820]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateDIBSection]
sub esp, 0x18
mov edi, eax
mov dword [ebp - 0x834], 0
jmp 0x402fc0
mov eax, 1
jmp 0x40376a
cmp byte [ebp - 0x835], 0
je 0x40596a
mov edx, dword [0x5b41f0]
xor eax, eax
test edx, edx
sete al
jmp 0x4038e0
cmp byte [ebp - 0x835], 0
je 0x405896
mov ecx, dword [0x5b41f0]
xor eax, eax
test ecx, ecx
sete al
jmp 0x403821
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x814]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x81c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x818]
mov dword [esp + 4], str.SetDIBits_succeeded_for__u__u__u__u_n
mov dword [esp + 8], eax
mov dword [esp], 0
call fcn.00401820
lea eax, [ebp - 0x80c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x828]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SetDIBitsToDevice]
sub esp, 0x30
mov edi, eax
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x3f2
test edi, edi
je 0x40381c
cmp dword [ebp - 0x818], 8
jne 0x4058ac
cmp dword [ebp - 0x814], 1
je 0x4057cd
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x814]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x81c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x818]
mov dword [esp + 4], str.SetDIBitsToDevice_succeeded_for__u__u__u__u_n
mov dword [esp + 8], eax
mov dword [esp], 0
call fcn.00401820
lea eax, [ebp - 0x80c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xcc0020
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x828]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_StretchDIBits]
sub esp, 0x34
mov edi, eax
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x3f9
test edi, edi
je 0x4038db
cmp dword [ebp - 0x818], 8
jne 0x405980
cmp dword [ebp - 0x814], 1
je 0x4057ad
xor eax, eax
jmp 0x4038e0
call fcn.00492bc0
mov dword [eax], 0x499014
mov dword [eax + 4], 0x3c4
test edi, edi
jne 0x4059f9
mov eax, 1
mov dword [esp + 0x14], esi
mov ecx, dword [ebp - 0x814]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x81c]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x818]
mov dword [esp + 4], str.GetDIBits_succeeded_for__u__u__u__u_n
mov dword [esp + 8], ecx
mov dword [esp], eax
call fcn.00401820
mov dword [ebp - 0x82c], 0
jmp 0x402ee8
cmp dword [ebp - 0x844], 1
ja 0x4056f5
xor eax, eax
cmp dword [0x5b41f0], 0
sete al
jmp 0x4059ab
mov eax, 0x3df
call fcn.00401020
test edi, edi
je 0x405a68
cmp dword [0x5b41f0], 0
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x814]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x81c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x818]
mov dword [esp + 4], str.CreateDIBitmap_succeeded_for__u__u__u__u_n
mov dword [esp + 8], eax
je 0x405a57
xor eax, eax
mov dword [esp], eax
call fcn.00401820
jmp 0x4030a9
mov dword [esp], 1
call fcn.00401820
jmp 0x4030a9
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x814]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x81c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x818]
mov dword [esp + 4], str.CreateDIBitmap_succeeded_for__u__u__u__u_n
mov dword [esp + 8], eax
mov dword [esp], 1
call fcn.00401820
jmp 0x4030b5