Function at 0x103368e
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x24
cmp dword [0x103a6ec], 0
push ebx
push ebp
push esi
push edi
jne 0x1033a22
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x38]
mov ecx, eax
sub ecx, dword [esi + 0x18]
cmp ecx, 0x64
jb 0x1033a22
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 0x10339ba
sub eax, dword [esi + 0x1c]
cmp eax, 0x3e8
jb 0x1033a22
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 + 0x40], eax
call ebp
push 0
mov dword [esp + 0x28], 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 0x1033732
push dword [esp + 0x38]
push eax
call edi
push 0x28
push 0x28
push dword [esi + 4]
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi], eax
jmp 0x1033735
and dword [esi], 0
xor ecx, ecx
cmp dword [esp + 0x38], ecx
je 0x1033a2c
cmp dword [esp + 0x24], ecx
je 0x1033a2c
cmp dword [esi], ecx
je 0x1033a2c
mov eax, dword [esi + 4]
cmp eax, ecx
je 0x1033a2c
cmp ebp, ecx
je 0x1033a2c
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 + 0x38]
mov dword [esp + 0x2c], eax
push dword [esi + 4]
call edi
and dword [esi + 0xc], 0
and dword [esp + 0x10], 0
and dword [esp + 0x18], 0
push 0xff0062
push 0x28
push 0x28
push 0
push 0
push ebp
call dword [sym.imp.GDI32.dll_PatBlt]
push dword [esp + 0x38]
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 + 0x1c], 0
cmp dword [esp + 0x10], 0
jle 0x103382d
and dword [esp + 0x14], 0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
call fcn.01033a6c
mov eax, dword [esp + 0x14]
and eax, 1
shl eax, 0xf
or eax, 0x800080
push eax
mov eax, dword [esp + 0x34]
add eax, 0x13
push eax
push dword [esp + 0x34]
push ebp
call dword [sym.imp.GDI32.dll_SetPixel]
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0xa
jl 0x10337df
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x10]
jl 0x10337da
and dword [esp + 0x14], 0
cmp dword [esp + 0x18], 0
jl 0x103387c
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
call fcn.01033a6c
mov eax, dword [esp + 0x14]
and eax, 1
shl eax, 0xf
or eax, 0x800080
push eax
mov eax, dword [esp + 0x34]
add eax, 0x13
push eax
push dword [esp + 0x34]
push ebp
call dword [sym.imp.GDI32.dll_SetPixel]
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
jle 0x1033839
push dword [esp + 0x24]
push dword [esi + 4]
call edi
mov eax, dword [esi + 0xc]
test al, 1
je 0x1033891
push 0xf
pop eax
jmp 0x1033897
and eax, 2
imul eax, eax, 0xf
push 0x8800c6
push 0
push eax
push dword [esi + 4]
push 0x14
push 0xf
push dword [esp + 0x48]
push dword [esp + 0x48]
push ebp
call ebx
push dword [esi + 8]
push dword [esi + 4]
call edi
xor eax, eax
push 0xcc0020
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 + 0x18]
cmp dword [esp + 0x18], 0xa
jl 0x1033797
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 4
jl 0x1033792
push 0xff0062
push 0x28
push 0x28
push 0
push 0
push ebp
call dword [sym.imp.GDI32.dll_PatBlt]
and dword [esp + 0x1c], 0
push dword [esp + 0x38]
push dword [esi + 4]
call edi
push 0xcc0020
push 0
push dword [esp + 0x24]
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
xor eax, eax
push 0xcc0020
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]
add dword [esp + 0x1c], 0x24
cmp dword [esp + 0x1c], 0xb4
jl 0x1033911
push dword [esp + 0x28]
push ebp
call edi
and dword [esi + 0xc], 0
cmp dword [esp + 0x20], 0
je 0x1033986
push dword [esp + 0x20]
push dword [esi + 4]
call edi
push dword [esp + 0x20]
call fcn.01023ede
push dword [esp + 0x38]
call fcn.01023ede
push dword [esp + 0x24]
call fcn.01023ede
push ebp
call fcn.01023ede
push 1
pop eax
push eax
mov dword [esi + 0x20], eax
push dword [0x103a71c]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x103a71c]
call dword [sym.imp.USER32.dll_GetDC]
push dword [esi + 8]
mov ebp, eax
push dword [esi + 4]
call edi
push 0xcc0020
push 0
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0xc]
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 + 0x38]
push dword [esi + 4]
call edi
push ebp
push dword [0x103a71c]
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x400
call fcn.0102a7ec
inc dword [esi + 0xc]
cmp dword [esi + 0xc], 0x2d
jle 0x1033a22
and dword [esi + 0xc], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
mov ebx, dword [esp + 0x20]
cmp ebx, ecx
je 0x1033a3a
push ebx
push dword [esi + 4]
call edi
push ebx
call fcn.01023ede
push dword [esi + 4]
call fcn.01023ede
push dword [esp + 0x38]
call fcn.01023ede
push dword [esp + 0x24]
call fcn.01023ede
push ebp
call fcn.01023ede
mov dword [0x103a6ec], 1
jmp 0x1033a22