Function at 0x557460
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
mov dword [ebp - 0x38], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0xffffffff
jne 0x5574a0
mov ecx, dword [0x6d3a78]
mov dword [ebp - 0x74], ecx
cmp dword [0x6d3a88], 1
jne 0x5574a0
mov dword [ebp - 0x38], 1
push 0
call fcn.0054ccf0
add esp, 4
cmp dword [0x6d3a60], 2
jne 0x5575c4
mov edx, dword [ebp - 0x74]
shl edx, 4
mov eax, dword [0x6d3a80]
mov cl, byte [eax + edx + 4]
mov byte [ebp - 0x68], cl
mov edx, dword [ebp - 0x74]
shl edx, 4
mov eax, dword [0x6d3a80]
mov cl, byte [eax + edx + 8]
mov byte [ebp - 0x67], cl
mov edx, dword [ebp - 0x74]
shl edx, 4
mov eax, dword [0x6d3a80]
mov cl, byte [eax + edx + 0xc]
mov byte [ebp - 0x66], cl
mov byte [ebp - 0x65], 0
lea edx, [ebp - 0x68]
push edx
push 1
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [0x6d3a68]
push ecx
call dword [sym.imp.GDI32.dll_SetPaletteEntries]
cmp eax, 1
je 0x55750d
mov eax, 1
jmp 0x557c65
mov dword [ebp - 0x6c], 0
mov edx, dword [0x6e9ba8]
mov dword [ebp - 4], edx
jmp 0x557527
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x6e9ba8
je 0x5575bf
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
jmp 0x557547
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
add eax, 8
cmp dword [ebp - 0xc], eax
je 0x5575ba
cmp dword [ebp - 0x6c], 0
jne 0x55756c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.GDI32.dll_RealizePalette]
mov dword [ebp - 0x6c], 1
cmp dword [0x6e9bb8], 1
jne 0x55758b
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x24], 0
je 0x55758b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.GDI32.dll_RealizePalette]
cmp dword [0x6e9bb8], 1
jne 0x5575a7
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x24], 0
je 0x5575a7
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x24], 1
push 1
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x55753f
jmp 0x55751f
jmp 0x557753
cmp dword [ebp - 0x74], 0
jne 0x557663
cmp dword [0x6d3a60], 2
jne 0x5575e3
mov dword [ebp - 0x84], 0x1000000
jmp 0x557612
mov ecx, dword [0x6d3a80]
xor edx, edx
mov dl, byte [ecx + 4]
mov eax, dword [0x6d3a80]
xor ecx, ecx
mov cl, byte [eax + 8]
shl ecx, 8
or edx, ecx
mov eax, dword [0x6d3a80]
xor ecx, ecx
mov cl, byte [eax + 0xc]
shl ecx, 0x10
or edx, ecx
mov dword [ebp - 0x84], edx
mov edx, dword [ebp - 0x84]
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x557632
mov eax, 1
jmp 0x557c65
mov eax, dword [ebp - 0x34]
push eax
push 0xfffffffffffffff6
mov ecx, dword [0x6e9bd4]
push ecx
call dword [sym.imp.USER32.dll_SetClassLongA]
cmp dword [0x6e9ba4], 0
je 0x55765b
mov edx, dword [0x6e9ba4]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x34]
mov dword [0x6e9ba4], eax
mov dword [ebp - 0x44], 0
mov ecx, dword [0x6e9ba8]
mov dword [ebp - 4], ecx
jmp 0x55767d
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x6e9ba8
je 0x5576d5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0xc], edx
jmp 0x557699
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
add edx, 8
cmp dword [ebp - 0xc], edx
je 0x5576d3
cmp dword [0x6e9bb8], 1
jne 0x5576c0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x24], 0
je 0x5576c0
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x24], 1
push 1
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x557691
jmp 0x557675
mov dword [ebp - 0x4c], 0
jmp 0x5576e7
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0x403
jge 0x557753
mov edx, dword [ebp - 0x4c]
imul edx, edx, 0x1c
cmp dword [edx + 0x6eb470], 1
jne 0x557751
mov eax, dword [ebp - 0x4c]
imul eax, eax, 0x1c
mov ecx, dword [eax + 0x6eb474]
cmp ecx, dword [ebp + 8]
jne 0x557751
mov edx, dword [ebp - 0x4c]
imul edx, edx, 0x1c
mov eax, dword [edx + 0x6eb47c]
push eax
mov ecx, dword [ebp - 0x4c]
imul ecx, ecx, 0x1c
mov edx, dword [ecx + 0x6eb478]
push edx
mov eax, dword [ebp - 0x4c]
imul eax, eax, 0x1c
mov ecx, dword [eax + 0x6eb474]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.00556750
add esp, 0x10
test eax, eax
je 0x557751
mov eax, 1
jmp 0x557c65
jmp 0x5576de
cmp dword [ebp + 8], 0xffffffff
jne 0x557c53
cmp dword [0x6d3a60], 1
je 0x557773
cmp dword [0x6d3a60], 2
jne 0x557c53
mov eax, dword [0x6d3acc]
mov dword [ebp - 0x30], eax
mov ecx, dword [0x6d3ad0]
mov dword [ebp - 0x7c], ecx
mov eax, dword [ebp - 0x30]
imul eax, dword [ebp - 0x7c]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
push edx
push 1
call fcn.005bf7e3
add esp, 8
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x5577d4
call fcn.005554f0
mov eax, dword [ebp - 0x2c]
push eax
push 1
call fcn.005bf7e3
add esp, 8
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x5577d4
mov eax, 2
jmp 0x557c65
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x50], eax
cmp dword [0x6d3a60], 2
jne 0x557844
push 0
mov ecx, dword [0x6d3a68]
push ecx
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x54], eax
mov edx, dword [0x6d3ad8]
mov dword [ebp - 0x70], edx
jmp 0x557862
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x557bdf
mov dword [ebp - 0x4c], 0
jmp 0x55787e
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x2c]
jge 0x5578a1
mov eax, dword [ebp - 0x70]
add eax, dword [ebp - 0x4c]
xor ecx, ecx
mov cl, byte [eax + 0x1c]
xor ecx, 0xff
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x4c]
mov byte [edx], cl
jmp 0x557875
mov eax, dword [ebp - 0x70]
add eax, 0x1c
push eax
push 1
push 1
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x78], eax
xor edx, edx
cmp dword [0x6d3a60], 2
setne dl
dec edx
and edx, 0x2000000
push edx
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [0x6d3a60], 2
jne 0x55790c
xor ecx, ecx
mov cx, word [0x6d3a78]
or ecx, 0x1000000
mov dword [ebp - 0x88], ecx
jmp 0x557958
mov edx, dword [0x6d3a78]
shl edx, 4
mov eax, dword [0x6d3a80]
xor ecx, ecx
mov cl, byte [eax + edx + 4]
mov edx, dword [0x6d3a78]
shl edx, 4
mov eax, dword [0x6d3a80]
xor ebx, ebx
mov bl, byte [eax + edx + 8]
shl ebx, 8
or ecx, ebx
mov edx, dword [0x6d3a78]
shl edx, 4
mov eax, dword [0x6d3a80]
xor ebx, ebx
mov bl, byte [eax + edx + 0xc]
shl ebx, 0x10
or ecx, ebx
mov dword [ebp - 0x88], ecx
mov ecx, dword [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
push 0
push 0
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [ebp - 0x24]
push ecx
push 0x18
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
imul eax, ecx
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
push edx
push 1
call fcn.005bf7e3
add esp, 8
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x557a80
call fcn.005554f0
mov eax, dword [ebp - 0x28]
push eax
push 1
call fcn.005bf7e3
add esp, 8
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x557a80
cmp dword [ebp - 0x64], 0
je 0x557a0b
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.005bf4e7
add esp, 4
mov dword [ebp - 0x8c], 0
jmp 0x557a15
mov dword [ebp - 0x8c], 1
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x6d3a60], 2
jne 0x557a4d
push 0
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, 2
jmp 0x557c65
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.GDI32.dll_GetBitmapBits]
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x64]
push eax
mov cl, byte [ebp - 0x12]
push ecx
mov dl, byte [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [0x6d3a0c]
push edx
call dword [sym.imp.USER32.dll_CreateIcon]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x557b7f
cmp dword [ebp - 0x64], 0
je 0x557ae2
mov eax, dword [ebp - 0x64]
push eax
call fcn.005bf4e7
add esp, 4
mov dword [ebp - 0x90], 0
jmp 0x557aec
mov dword [ebp - 0x90], 1
cmp dword [ebp - 0x40], 0
je 0x557b0a
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.005bf4e7
add esp, 4
mov dword [ebp - 0x94], 0
jmp 0x557b14
mov dword [ebp - 0x94], 1
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x6d3a60], 2
jne 0x557b4c
push 0
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, 2
jmp 0x557c65
cmp dword [ebp - 0x40], 0
je 0x557b9d
mov edx, dword [ebp - 0x40]
push edx
call fcn.005bf4e7
add esp, 4
mov dword [ebp - 0x98], 0
jmp 0x557ba7
mov dword [ebp - 0x98], 1
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
mov dword [ebp - 0x48], ecx
jmp 0x55785c
cmp dword [ebp - 0x64], 0
je 0x557bfd
mov edx, dword [ebp - 0x64]
push edx
call fcn.005bf4e7
add esp, 4
mov dword [ebp - 0x9c], 0
jmp 0x557c07
mov dword [ebp - 0x9c], 1
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [0x6d3a60], 2
jne 0x557c3f
push 0
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 0x38], 1
jne 0x557c63
push 1
call fcn.0054ccf0
add esp, 4
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret