Function at 0x1031e46
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x2c
cmp dword [0x103951c], 0
jne 0x103221d
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x40]
mov ecx, eax
sub ecx, dword [esi + 0x18]
cmp ecx, 0x64
jb 0x1032219
cmp dword [esi + 0x20], 0
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
mov dword [esi + 0x18], eax
jne 0x10321b1
sub eax, dword [esi + 0x1c]
cmp eax, 0x3e8
jb 0x1032219
mov ebp, dword [sym.imp.USER32.dll_LoadBitmapA]
push 0x77
push dword [esi + 0x24]
call ebp
push 0x78
push dword [esi + 0x24]
mov dword [esp + 0x48], eax
call ebp
push 0
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
mov ebp, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [esi + 4], eax
je 0x1031eea
push dword [esp + 0x40]
push eax
call edi
push 0x28
push 0x28
push dword [esi + 4]
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi], eax
jmp 0x1031eed
and dword [esi], 0
xor ecx, ecx
cmp dword [esp + 0x40], ecx
je 0x1032223
cmp dword [esp + 0x28], ecx
je 0x1032223
cmp dword [esi], ecx
je 0x1032223
mov eax, dword [esi + 4]
cmp eax, ecx
je 0x1032223
cmp ebp, ecx
je 0x1032223
push 0x28
push 0x708
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push dword [esi]
mov dword [esi + 8], eax
push ebp
call edi
push dword [esp + 0x40]
mov dword [esp + 0x34], eax
push dword [esi + 4]
call edi
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
and dword [esp + 0x14], 0
push 0xff0062
push 0x28
push 0x28
push 0
push 0
push ebp
call dword [sym.imp.GDI32.dll_PatBlt]
push dword [esp + 0x40]
push dword [esi + 4]
call edi
push 0xcc0020
push 0
push 0x90
push dword [esi + 4]
push 0x24
push 0x24
push 4
push 0
push ebp
call ebx
and dword [esp + 0x20], 0
cmp dword [esp + 0x18], 0
jle 0x1032004
and dword [esp + 0x10], 0
mov dword [esp + 0x1c], 5
mov eax, dword [esp + 0x10]
add eax, 0x12
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
imul eax, eax
push 0xa
pop ecx
cdq
idiv ecx
mov ecx, dword [esp + 0x20]
lea eax, [eax + ecx*2 + 2]
mov ecx, dword [esp + 0x10]
and ecx, 1
shl ecx, 0xf
or ecx, 0x800080
push ecx
mov dword [esp + 0x3c], eax
add eax, 0x13
push eax
push dword [esp + 0x3c]
push ebp
call dword [sym.imp.GDI32.dll_SetPixel]
inc dword [esp + 0x10]
dec dword [esp + 0x1c]
cmp dword [esp + 0x1c], 0xfffffffb
jg 0x1031fa3
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x2c]
jl 0x1031f96
and dword [esp + 0x10], 0
cmp dword [esp + 0x14], 0
jl 0x103206e
mov dword [esp + 0x20], 5
mov eax, dword [esp + 0x10]
add eax, 0x12
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
imul eax, eax
push 0xa
pop ecx
cdq
idiv ecx
mov ecx, dword [esp + 0x18]
lea eax, [eax + ecx + 2]
mov ecx, dword [esp + 0x10]
and ecx, 1
shl ecx, 0xf
or ecx, 0x800080
push ecx
mov dword [esp + 0x3c], eax
add eax, 0x13
push eax
push dword [esp + 0x3c]
push ebp
call dword [sym.imp.GDI32.dll_SetPixel]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
dec dword [esp + 0x20]
cmp eax, dword [esp + 0x14]
jle 0x1032018
push dword [esp + 0x28]
push dword [esi + 4]
call edi
mov eax, dword [esi + 0xc]
test al, 1
je 0x1032083
push 0xf
pop eax
jmp 0x1032089
and eax, 2
imul eax, eax, 0xf
push 0x8800c6
push 0
push eax
push dword [esi + 4]
push 0x14
push 0xf
push dword [esp + 0x50]
push dword [esp + 0x50]
push ebp
call ebx
push dword [esi + 8]
push dword [esi + 4]
call edi
push 0xcc0020
xor eax, eax
push eax
push eax
push ebp
push 0x28
push 0x28
push eax
mov eax, dword [esi + 0xc]
lea eax, [eax + eax*4]
shl eax, 3
push eax
push dword [esi + 4]
call ebx
inc dword [esi + 0xc]
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0xa
jl 0x1031f53
add dword [esp + 0x18], 2
inc dword [esp + 0x2c]
cmp dword [esp + 0x18], 8
jl 0x1031f4e
push 0xff0062
push 0x28
push 0x28
push 0
push 0
push ebp
call dword [sym.imp.GDI32.dll_PatBlt]
and dword [esp + 0x20], 0
push dword [esp + 0x40]
push dword [esi + 4]
call edi
push 0xcc0020
push 0
push dword [esp + 0x28]
push dword [esi + 4]
push 0x24
push 0x24
push 4
push 0
push ebp
call ebx
push dword [esi + 8]
push dword [esi + 4]
call edi
push 0xcc0020
xor eax, eax
push eax
push eax
push ebp
push 0x28
push 0x28
push eax
mov eax, dword [esi + 0xc]
lea eax, [eax + eax*4]
shl eax, 3
push eax
push dword [esi + 4]
call ebx
add dword [esp + 0x20], 0x24
inc dword [esi + 0xc]
cmp dword [esp + 0x20], 0xb4
jl 0x1032108
push dword [esp + 0x30]
push ebp
call edi
and dword [esi + 0xc], 0
cmp dword [esp + 0x24], 0
je 0x103217d
push dword [esp + 0x24]
push dword [esi + 4]
call edi
push dword [esp + 0x24]
call fcn.01021880
push dword [esp + 0x40]
call fcn.01021880
push dword [esp + 0x28]
call fcn.01021880
push ebp
call fcn.01021880
xor eax, eax
inc eax
push eax
mov dword [esi + 0x20], eax
push dword [0x1039554]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x1039554]
call dword [sym.imp.USER32.dll_GetDC]
push dword [esi + 8]
mov ebp, eax
push dword [esi + 4]
call edi
push 0xcc0020
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0xc]
push 0
lea eax, [eax + eax*4]
shl eax, 3
push eax
push dword [esi + 4]
push 0x28
push 0x28
push dword [esi + 0x14]
push dword [esi + 0x10]
push ebp
call ebx
push dword [esp + 0x40]
push dword [esi + 4]
call edi
push ebp
push dword [0x1039554]
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x400
call fcn.010295ea
inc dword [esi + 0xc]
cmp dword [esi + 0xc], 0x2d
jle 0x1032219
and dword [esi + 0xc], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
mov ebx, dword [esp + 0x24]
cmp ebx, ecx
je 0x1032231
push ebx
push dword [esi + 4]
call edi
push ebx
call fcn.01021880
push dword [esi + 4]
call fcn.01021880
push dword [esp + 0x40]
call fcn.01021880
push dword [esp + 0x28]
call fcn.01021880
push ebp
call fcn.01021880
mov dword [0x103951c], 1
jmp 0x1032219