Function at 0x401730
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
cmp dword [0x452bc4], 0
jne 0x401797
xor eax, eax
mov word [0x455564], ax
mov ecx, 4
imul edx, ecx, 0
mov dword [edx + 0x455566], 0
mov eax, 4
shl eax, 0
mov dword [eax + 0x455566], 0
mov ecx, 4
shl ecx, 1
mov dword [ecx + 0x455566], 0
mov edx, 4
imul eax, edx, 3
mov dword [eax + 0x455566], 0
jmp 0x4018a2
mov cx, word [0x455564]
add cx, 1
mov word [0x455564], cx
movsx edx, word [0x455564]
cmp edx, 4
jle 0x4017d2
push 0
push 0x42f0b8
push str.Dialogs:__Maximum_4_levels_exceeded
mov eax, dword [0x432d00]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x402b8c
mov ecx, dword [0x452bc4]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x70]
push edx
mov eax, dword [0x452bc4]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x68]
sub ecx, dword [ebp - 0x70]
mov word [ebp - 0x24], cx
mov edx, dword [ebp - 0x64]
sub edx, dword [ebp - 0x6c]
mov word [ebp - 0x20], dx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x2c], eax
movsx ecx, word [ebp - 0x20]
add ecx, 0xa
push ecx
movsx edx, word [ebp - 0x24]
add edx, 0xa
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
movsx ecx, word [ebp - 0x20]
push ecx
movsx edx, word [ebp - 0x24]
push edx
push 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
movsx edx, word [0x455564]
mov eax, dword [0x452bc4]
mov dword [edx*4 + 0x455562], eax
movsx ecx, word [0x455564]
mov edx, dword [ebp - 0x44]
mov dword [ecx*4 + 0x455582], edx
movsx eax, word [0x455564]
mov ecx, dword [ebp - 0x2c]
mov dword [eax*4 + 0x455572], ecx
movsx edx, word [0x455564]
add edx, 1
mov word [0x4554a0], dx
push 0x2710
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x58], eax
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
and eax, 0xffff
mov word [ebp - 0x34], ax
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
shr eax, 0x10
and eax, 0xffff
mov word [ebp - 0x3c], ax
mov ecx, 4
mov word [ebp - 0x30], cx
mov edx, 8
mov word [ebp - 0x38], dx
movsx eax, word [0x452c20]
movsx ecx, word [ebp - 0x34]
imul eax, ecx
movsx ecx, word [ebp - 0x30]
cdq
idiv ecx
mov word [ebp - 0x4c], ax
movsx eax, word [0x452c22]
movsx edx, word [ebp - 0x3c]
imul eax, edx
movsx ecx, word [ebp - 0x38]
cdq
idiv ecx
mov esi, eax
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add esi, eax
mov word [ebp - 0x50], si
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
movsx edx, word [ebp - 0x4c]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
movsx ecx, word [0x452c24]
add eax, ecx
mov word [ebp - 0x18], ax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
movsx edx, word [ebp - 0x50]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
movsx ecx, word [0x452c26]
add eax, ecx
mov word [ebp - 0x1c], ax
cmp dword [0x452bc4], 0
je 0x401998
mov dx, word [0x452c24]
mov word [ebp - 0x18], dx
mov ax, word [0x452c26]
mov word [ebp - 0x1c], ax
movsx ecx, word [ebp - 0x18]
test ecx, ecx
jge 0x4019a6
xor edx, edx
mov word [ebp - 0x18], dx
movsx eax, word [ebp - 0x1c]
test eax, eax
jge 0x4019b4
xor ecx, ecx
mov word [ebp - 0x1c], cx
movsx edx, word [0x455564]
cmp dword [edx*4 + 0x42f090], 0xffffd8f1
je 0x401a2c
movsx eax, word [0x455564]
mov ecx, dword [eax*4 + 0x42f090]
mov dword [ebp - 0x60], ecx
movsx edx, word [0x455564]
mov eax, dword [edx*4 + 0x42f0a4]
mov dword [ebp - 0x5c], eax
mov ecx, dword [0x432d00]
mov dword [ebp - 0x40], ecx
cmp dword [0x452bc4], 0
je 0x401a05
mov edx, dword [0x452bc4]
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov dx, word [ebp - 0x60]
mov word [ebp - 0x18], dx
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x5c]
sub ecx, eax
mov word [ebp - 0x1c], cx
movsx eax, word [ebp - 0x18]
movsx edx, word [ebp - 0x30]
imul eax, edx
movsx ecx, word [ebp - 0x34]
cdq
idiv ecx
mov word [ebp - 0x18], ax
movsx eax, word [ebp - 0x1c]
movsx edx, word [ebp - 0x38]
imul eax, edx
movsx ecx, word [ebp - 0x3c]
cdq
idiv ecx
mov word [ebp - 0x1c], ax
mov edx, 2
shl edx, 1
movsx eax, word [edx + 0x452b40]
test eax, eax
jle 0x401a73
mov dword [ebp - 0x10], 0xd0c82080
jmp 0x401a7a
mov dword [ebp - 0x10], 0x90c82080
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 4]
mov ax, word [0x452d88]
mov word [edx], ax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov ax, word [ebp - 0x18]
mov word [edx], ax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov ax, word [ebp - 0x1c]
mov word [edx], ax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov ax, word [0x452c20]
mov word [edx], ax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov ax, word [0x452c22]
mov word [edx], ax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
push 0x452bd0
mov edx, dword [ebp - 4]
push edx
call fcn.004095c0
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
xor eax, eax
mov word [ebp - 0xc], ax
mov dword [ebp - 8], 0
jmp 0x401b94
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
movsx edx, word [0x452d88]
cmp dword [ebp - 8], edx
jge 0x4029ec
mov eax, dword [ebp - 8]
movsx ecx, byte [eax + 0x452d8a]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
sub edx, 1
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 9
ja case.default.0x401bc7
mov eax, dword [ebp - 0x48]
jmp dword [eax*4 + 0x402b94]
mov dword [ebp - 0x80], 0x14
mov ecx, dword [ebp - 4]
push ecx
call fcn.00409590
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0x50010001
mov edx, dword [ebp - 0x10]
and edx, 0xffff
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10]
shr edx, 0x10
and edx, 0xffff
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov cx, word [eax*2 + 0x453e24]
mov word [edx], cx
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dx, word [ecx*2 + 0x453e88]
mov word [eax], dx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ax, word [edx*2 + 0x453eec]
mov word [ecx], ax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov cx, word [eax*2 + 0x453f50]
mov word [edx], cx
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
add eax, 0x64
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, 0xffff
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, 0x80
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
imul eax, dword [ebp - 8], 0x50
add eax, 0x452e84
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004095c0
add esp, 8
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2]
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov dx, word [ebp - 0xc]
add dx, 1
mov word [ebp - 0xc], dx
jmp case.default.0x401bc7
mov eax, dword [ebp - 4]
push eax
call fcn.00409590
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0x50010000
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ax, word [edx*2 + 0x453e24]
mov word [ecx], ax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov cx, word [eax*2 + 0x453e88]
mov word [edx], cx
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dx, word [ecx*2 + 0x453eec]
mov word [eax], dx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ax, word [edx*2 + 0x453f50]
mov word [ecx], ax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 0x64
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, 0xffff
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, 0x80
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
imul edx, dword [ebp - 8], 0x50
add edx, 0x452e84
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004095c0
add esp, 8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx*2]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov cx, word [ebp - 0xc]
add cx, 1
mov word [ebp - 0xc], cx
jmp case.default.0x401bc7
mov edx, dword [ebp - 4]
push edx
call fcn.00409590
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax*4 + 0x45439c]
or ecx, 0x50000007
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
and edx, 0xffff
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10]
shr edx, 0x10
and edx, 0xffff
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov cx, word [eax*2 + 0x453e24]
mov word [edx], cx
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dx, word [ecx*2 + 0x453e88]
mov word [eax], dx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ax, word [edx*2 + 0x453eec]
mov word [ecx], ax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov cx, word [eax*2 + 0x453f50]
mov word [edx], cx
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
add eax, 0x64
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, 0xffff
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, 0x80
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
imul eax, dword [ebp - 8], 0x50
add eax, 0x452e84
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004095c0
add esp, 8
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2]
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov dx, word [ebp - 0xc]
add dx, 1
mov word [ebp - 0xc], dx
jmp case.default.0x401bc7
mov eax, dword [ebp - 4]
push eax
call fcn.00409590
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x45439c]
or edx, 0x50000000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
and eax, 0xffff
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and eax, 0xffff
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dx, word [ecx*2 + 0x453e24]
mov word [eax], dx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ax, word [edx*2 + 0x453e88]
mov word [ecx], ax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov cx, word [eax*2 + 0x453eec]
mov word [edx], cx
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dx, word [ecx*2 + 0x453f50]
mov word [eax], dx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
add ecx, 0x64
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, 0xffff
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, 0x80
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
imul ecx, dword [ebp - 8], 0x50
add ecx, 0x452e84
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004095c0
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov ax, word [ebp - 0xc]
add ax, 1
mov word [ebp - 0xc], ax
jmp case.default.0x401bc7
mov ecx, dword [ebp - 4]
push ecx
call fcn.00409590
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x45439c]
or eax, 0x50000000
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ax, word [edx*2 + 0x453e24]
mov word [ecx], ax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov cx, word [eax*2 + 0x453e88]
mov word [edx], cx
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dx, word [ecx*2 + 0x453eec]
mov word [eax], dx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ax, word [edx*2 + 0x453f50]
mov word [ecx], ax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 0x64
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, 0xffff
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, 0x85
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov dx, word [ebp - 0xc]
add dx, 1
mov word [ebp - 0xc], dx
jmp case.default.0x401bc7
mov eax, dword [ebp - 4]
push eax
call fcn.00409590
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x45439c]
or edx, 0x50800000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
and eax, 0xffff
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
shr eax, 0x10
and eax, 0xffff
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dx, word [ecx*2 + 0x453e24]
mov word [eax], dx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ax, word [edx*2 + 0x453e88]
mov word [ecx], ax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov cx, word [eax*2 + 0x453eec]
mov word [edx], cx
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dx, word [ecx*2 + 0x453f50]
mov word [eax], dx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
add ecx, 0x64
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, 0xffff
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, 0x83
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov cx, word [ebp - 0xc]
add cx, 1
mov word [ebp - 0xc], cx
jmp case.default.0x401bc7
mov edx, dword [ebp - 4]
push edx
call fcn.00409590
add esp, 4
mov dword [ebp - 4], eax
imul eax, dword [ebp - 8], 0x50
mov ecx, 1
imul edx, ecx, 0
movsx eax, byte [eax + edx + 0x454464]
cmp eax, 0x7f
jne 0x402421
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*4 + 0x45439c]
or edx, 0x5000000d
mov dword [ebp - 0x10], edx
jmp 0x402434
mov eax, dword [ebp - 8]
mov ecx, dword [eax*4 + 0x45439c]
or ecx, 0x50000000
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
and edx, 0xffff
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10]
shr edx, 0x10
and edx, 0xffff
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov cx, word [eax*2 + 0x453e24]
mov word [edx], cx
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dx, word [ecx*2 + 0x453e88]
mov word [eax], dx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ax, word [edx*2 + 0x453eec]
mov word [ecx], ax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov cx, word [eax*2 + 0x453f50]
mov word [edx], cx
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
add eax, 0x64
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, 0xffff
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, 0x82
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
imul eax, dword [ebp - 8], 0x50
add eax, 0x452e84
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004095c0
add esp, 8
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2]
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov dx, word [ebp - 0xc]
add dx, 1
mov word [ebp - 0xc], dx
jmp case.default.0x401bc7
mov eax, dword [ebp - 4]
push eax
call fcn.00409590
add esp, 4
mov dword [ebp - 4], eax
mov ecx, 2
shl ecx, 0
movsx edx, word [ecx + 0x452b40]
test edx, edx
jle 0x4025ac
mov eax, dword [ebp - 8]
mov ecx, dword [eax*4 + 0x45439c]
or ecx, 0x50810004
mov dword [ebp - 0x10], ecx
jmp 0x4025be
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x45439c]
or eax, 0x50810000
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ax, word [edx*2 + 0x453e24]
mov word [ecx], ax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov cx, word [eax*2 + 0x453e88]
mov word [edx], cx
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dx, word [ecx*2 + 0x453eec]
mov word [eax], dx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ax, word [edx*2 + 0x453f50]
mov word [ecx], ax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 0x64
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, 0xffff
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, 0x81
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
push 4
imul edx, dword [ebp - 8], 0x50
mov eax, 1
shl eax, 1
lea ecx, [edx + eax + 0x454464]
push ecx
lea edx, [ebp - 0x74]
push edx
call fcn.00413f20
add esp, 0xc
push 2
imul eax, dword [ebp - 8], 0x50
add eax, 0x454464
push eax
lea ecx, [ebp - 0x54]
push ecx
call fcn.00413f20
add esp, 0xc
movsx edx, word [ebp - 0x54]
cmp edx, 0xffffffff
jne 0x40270f
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004095c0
add esp, 8
mov dword [ebp - 0x14], eax
jmp 0x402729
imul edx, dword [ebp - 8], 0x50
add edx, 0x454464
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004095c0
add esp, 8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx*2]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov cx, word [ebp - 0xc]
add cx, 1
mov word [ebp - 0xc], cx
jmp case.default.0x401bc7
mov edx, dword [ebp - 4]
push edx
call fcn.00409590
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax*4 + 0x45439c]
or ecx, 0x50000000
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
and edx, 0xffff
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10]
shr edx, 0x10
and edx, 0xffff
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov cx, word [eax*2 + 0x453e24]
mov word [edx], cx
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dx, word [ecx*2 + 0x453e88]
mov word [eax], dx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ax, word [edx*2 + 0x453eec]
mov word [ecx], ax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov cx, word [eax*2 + 0x453f50]
mov word [edx], cx
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
add eax, 0x64
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, 0xffff
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, 0x80
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov ax, word [ebp - 0xc]
add ax, 1
mov word [ebp - 0xc], ax
jmp case.default.0x401bc7
mov ecx, dword [ebp - 4]
push ecx
call fcn.00409590
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x45439c]
or eax, 0x50800001
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ax, word [edx*2 + 0x453e24]
mov word [ecx], ax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov cx, word [eax*2 + 0x453e88]
mov word [edx], cx
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dx, word [ecx*2 + 0x453eec]
mov word [eax], dx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ax, word [edx*2 + 0x453f50]
mov word [ecx], ax
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 0x64
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
push 0x42f0e0
mov edx, dword [ebp - 4]
push edx
call fcn.004095c0
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, dword [ebp - 4]
mov word [ecx], ax
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
mov ax, word [ebp - 0xc]
add ax, 1
mov word [ebp - 0xc], ax
jmp 0x401b8b
mov ecx, dword [ebp - 0x78]
mov dx, word [ebp - 0xc]
mov word [ecx], dx
mov dword [ebp - 0x7c], 0x4042f0
mov eax, dword [0x432d00]
mov dword [ebp - 0x40], eax
cmp dword [0x452bc4], 0
je 0x402a17
mov ecx, dword [0x452bc4]
mov dword [ebp - 0x40], ecx
push 0
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [0x432d04]
push edx
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_LocalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x452bc4], 0
je 0x402b87
mov dword [ebp - 0x118], 0x94
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x108], 2
je 0x402b87
mov dx, word [0x455564]
sub dx, 1
mov word [0x455564], dx
movsx eax, word [0x455564]
mov ecx, dword [eax*4 + 0x455566]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x70]
push edx
movsx eax, word [0x455564]
mov ecx, dword [eax*4 + 0x455566]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0x68]
sub edx, dword [ebp - 0x70]
mov word [ebp - 0x24], dx
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x6c]
mov word [ebp - 0x20], ax
movsx ecx, word [0x455564]
mov edx, dword [ecx*4 + 0x455576]
mov dword [ebp - 0x2c], edx
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
movsx ecx, word [ebp - 0x20]
push ecx
movsx edx, word [ebp - 0x24]
push edx
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x402b1f
push 0
push 0x42f0f0
push str.BitBlt_error
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
movsx ecx, word [0x455564]
mov edx, dword [ecx*4 + 0x455586]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
movsx ecx, word [0x455564]
mov edx, dword [ecx*4 + 0x455576]
mov dword [ebp - 0x2c], edx
movsx eax, word [0x455564]
mov ecx, dword [eax*4 + 0x455586]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
push 1
movsx ecx, word [0x455564]
mov edx, dword [ecx*4 + 0x455566]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
call fcn.00404290
pop esi
mov esp, ebp
pop ebp
ret