Function at 0x1006c920
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x1035dd3c]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x10364d8c]
mov edx, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword fs:[0x2c]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10365b78]
mov edi, dword [ebp + 0x1c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
cmp eax, dword [ecx + 4]
jg 0x1006dd0e
jmp 0x1006c98c
mov edx, dword [esp + 0x20]
mov eax, dword [0x10365b7c]
mov ecx, 0x1006ba10
test eax, eax
cmove eax, ecx
cmp dword [esp + 0x28], 0
mov dword [0x10365b7c], eax
je 0x1006da35
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [esp + 0x28]
mov dword [esp + 0x28], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 3
push dword [esp + 0x24]
mov dword [esp + 0x64], eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
cmp dword [0x10365b7c], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
je 0x1006d355
cmp byte [ebp + 0x20], 0
mov al, byte [ebp + 0x24]
jne 0x1006c9fc
cmp al, 0xff
jae 0x1006d355
cmp byte [ebp + 0x28], 0
mov word [esp + 0x34], 0
mov byte [esp + 0x36], al
mov byte [esp + 0x37], 1
mov esi, dword [esp + 0x34]
jne 0x1006cafc
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi]
add eax, dword [ecx]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 4]
add eax, dword [edi + 4]
mov dword [esp + 0x64], eax
mov eax, dword [ecx + 8]
sub eax, dword [edi + 8]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 0xc]
sub eax, dword [edi + 0xc]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1006cafc
cmp byte [ebp + 0x2c], 0
mov ecx, dword [esp + 0x18]
jne 0x1006d130
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0xc]
sub eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
sub eax, dword [ecx + 4]
cmp byte [ebp + 0x30], 0
mov dword [esp + 0x28], eax
jne 0x1006d058
mov eax, dword [esp + 0x60]
sub dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [ecx]
mov edi, dword [esp + 0x6c]
push esi
mov edx, dword [eax]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push dword [esp + 0x2c]
sub edi, dword [esp + 0x6c]
mov eax, dword [eax + 8]
sub eax, dword [esi + 8]
sub eax, ecx
mov dword [esp + 0x74], edi
sub eax, edx
push eax
mov eax, dword [esi + 4]
add eax, dword [esp + 0x3c]
push eax
mov eax, dword [esi]
add eax, ecx
push eax
push dword [esp + 0x38]
push edi
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x48]
call dword [0x10365b7c]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
mov edx, dword [edi]
test edx, edx
jle 0x1006cb92
mov eax, dword [edi + 4]
test eax, eax
jle 0x1006cb92
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x60], eax
add eax, edx
mov dword [esp + 0x68], eax
mov eax, dword [edi + 4]
add eax, ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1006cb92
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
sub eax, ecx
mov edx, dword [esp + 0x68]
push esi
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x64]
sub edx, edi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
push dword [esi + 4]
push dword [esi]
mov esi, dword [esp + 0x24]
push dword [esi + 4]
push dword [esi]
push dword [esp + 0x38]
push eax
push edx
push ecx
push edi
push dword [esp + 0x48]
call dword [0x10365b7c]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 4]
test eax, eax
jle 0x1006cc49
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
add eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 8]
sub eax, dword [edi + 8]
mov dword [esp + 0x68], eax
mov eax, dword [edi + 4]
add eax, ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1006cc49
mov eax, dword [esp + 0x60]
sub dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x18]
push dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
mov ecx, dword [ecx]
mov edi, dword [esp + 0x74]
sub edi, dword [esp + 0x6c]
mov eax, dword [eax + 8]
sub eax, dword [esi + 8]
sub eax, ecx
mov dword [esp + 0x74], edi
sub eax, edx
push eax
mov eax, dword [esp + 0x24]
push dword [eax + 4]
lea eax, [ecx + edx]
push eax
push dword [esp + 0x38]
push edi
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x48]
call dword [0x10365b7c]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
cmp dword [edi + 8], 0
jle 0x1006cce9
mov eax, dword [edi + 4]
test eax, eax
jle 0x1006cce9
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 8]
mov eax, ecx
sub eax, dword [edi + 8]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x64], eax
add eax, dword [edi + 4]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
mov dword [esp + 0x70], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1006cce9
mov eax, dword [esp + 0x60]
sub dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x6c]
mov edi, dword [esp + 0x64]
sub edx, edi
push esi
push dword [eax + 4]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x20]
push ecx
mov dword [esp + 0x78], edx
push dword [eax + 4]
mov eax, dword [eax + 8]
sub eax, ecx
push eax
push dword [esp + 0x38]
push edx
push dword [esp + 0x84]
push edi
push dword [esp + 0x84]
push dword [esp + 0x48]
call dword [0x10365b7c]
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
test eax, eax
jle 0x1006cd9d
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
add eax, dword [edi + 4]
mov ecx, dword [edx]
mov dword [esp + 0x64], eax
mov eax, dword [edi]
add eax, ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], eax
mov eax, dword [edx + 0xc]
sub eax, dword [edi + 0xc]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1006cd9d
mov eax, dword [esp + 0x60]
sub dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x70]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
sub edi, dword [esp + 0x68]
mov dword [esp + 0x70], edi
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
sub eax, dword [esi + 0xc]
sub eax, ecx
sub eax, edx
push eax
mov eax, esi
push dword [eax]
lea eax, [ecx + edx]
push eax
mov eax, dword [esp + 0x28]
push dword [eax]
push dword [esp + 0x38]
push edi
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x48]
call dword [0x10365b7c]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
cmp dword [edi + 8], 0
jle 0x1006ce55
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 8]
mov eax, ecx
sub eax, dword [edi + 8]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 4]
add eax, dword [edi + 4]
mov dword [esp + 0x64], eax
mov eax, dword [edx + 0xc]
sub eax, dword [edi + 0xc]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
mov dword [esp + 0x70], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1006ce55
mov eax, dword [esp + 0x60]
sub dword [esp + 0x68], eax
mov eax, dword [esp + 0x64]
sub dword [esp + 0x6c], eax
mov eax, dword [esp + 0x18]
mov edx, dword [edi + 4]
mov edi, dword [edi + 8]
push esi
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov esi, dword [esp + 0x18]
sub eax, ecx
sub eax, dword [esi + 0xc]
sub eax, edx
push eax
push edi
lea eax, [ecx + edx]
push eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 8]
sub eax, edi
push eax
push dword [esp + 0x38]
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x48]
call dword [0x10365b7c]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
test eax, eax
jle 0x1006cef6
cmp dword [edi + 0xc], 0
jle 0x1006cfaa
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, edx
sub eax, dword [edi + 0xc]
mov dword [esp + 0x64], eax
mov eax, dword [edi]
add eax, ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
mov dword [esp + 0x74], edx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1006cef6
mov eax, dword [esp + 0x60]
sub dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x6c]
mov edi, dword [esp + 0x64]
sub edx, edi
push esi
mov ecx, dword [eax + 0xc]
push ecx
push dword [eax]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x78], edx
mov eax, dword [eax + 0xc]
sub eax, ecx
push eax
mov eax, dword [esp + 0x28]
push dword [eax]
push dword [esp + 0x38]
push edx
push dword [esp + 0x84]
push edi
push dword [esp + 0x84]
push dword [esp + 0x48]
call dword [0x10365b7c]
mov edi, dword [esp + 0x14]
cmp dword [edi + 0xc], 0
jle 0x1006cfaa
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
add eax, dword [edx]
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x60], eax
mov eax, ecx
sub eax, dword [edi + 0xc]
mov dword [esp + 0x64], eax
mov eax, dword [edx + 8]
sub eax, dword [edi + 8]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
mov dword [esp + 0x74], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1006cfaa
mov eax, dword [esp + 0x60]
sub dword [esp + 0x68], eax
mov eax, dword [esp + 0x64]
sub dword [esp + 0x6c], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0xc]
mov edi, dword [edi]
push esi
mov edx, dword [eax]
mov eax, dword [eax + 8]
mov esi, dword [esp + 0x18]
push ecx
sub eax, dword [esi + 8]
sub eax, edx
sub eax, edi
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
sub eax, ecx
push eax
lea eax, [edx + edi]
push eax
push dword [esp + 0x38]
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x48]
call dword [0x10365b7c]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
cmp dword [edi + 8], 0
jle 0x1006da1d
cmp dword [edi + 0xc], 0
jle 0x1006da1d
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
mov eax, edx
sub eax, dword [edi + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x60], eax
mov eax, ecx
sub eax, dword [edi + 0xc]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
mov dword [esp + 0x70], edx
push eax
mov dword [esp + 0x78], ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1006da1d
mov eax, dword [esp + 0x60]
sub dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x6c]
sub edi, dword [esp + 0x64]
push esi
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov esi, dword [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x78], edi
mov eax, dword [esi + 0xc]
sub eax, ecx
push eax
mov eax, dword [esi + 8]
sub eax, edx
push eax
push dword [esp + 0x38]
push edi
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x48]
call dword [0x10365b7c]
jmp 0x1006da1d
sub eax, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
dec edx
add eax, edx
cdq
idiv dword [esp + 0x28]
mov dword [esp + 0x48], eax
test eax, eax
jle 0x1006cafc
xor eax, eax
nop word [eax + eax]
mov edx, dword [esp + 0x64]
lea edi, [eax + edx]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x28]
add eax, edi
add edx, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x40], edi
cmp edx, dword [esp + 0x6c]
jle 0x1006d0b7
mov eax, edi
sub eax, edx
mov edx, dword [esp + 0x6c]
add eax, edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [ecx]
push esi
push dword [esp + 0x44]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x70]
sub edi, dword [esp + 0x68]
mov eax, dword [eax + 8]
sub eax, dword [esi + 8]
sub eax, ecx
mov dword [esp + 0x70], edi
sub eax, edx
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
add eax, dword [esi + 4]
push eax
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x40]
push eax
push dword [esp + 0x38]
mov eax, dword [esp + 0x68]
sub eax, ecx
push eax
push edi
push ecx
push dword [esp + 0x84]
push dword [esp + 0x48]
call dword [0x10365b7c]
sub dword [esp + 0x48], 1
mov esi, dword [esp + 0x34]
je 0x1006caf8
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
jmp 0x1006d080
mov eax, dword [ecx + 8]
sub eax, dword [edi + 8]
sub eax, dword [edi]
sub eax, dword [ecx]
mov dword [esp + 0x40], eax
sub eax, dword [esp + 0x60]
cmp byte [ebp + 0x30], 0
je 0x1006d27e
mov edx, dword [ecx + 0xc]
sub edx, dword [ecx + 4]
sub edx, dword [edi + 0xc]
sub edx, dword [edi + 4]
mov ecx, dword [esp + 0x68]
dec ecx
mov dword [esp + 0x28], edx
add eax, ecx
mov ecx, dword [esp + 0x28]
cdq
idiv dword [esp + 0x40]
sub ecx, dword [esp + 0x64]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x6c]
dec eax
add eax, ecx
cdq
idiv dword [esp + 0x28]
mov dword [esp + 0x30], eax
test eax, eax
jle 0x1006cafc
mov eax, dword [esp + 0x64]
xor edx, edx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x3c], edx
nop word [eax + eax]
lea esi, [edx + eax]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x28]
add edx, esi
mov dword [esp + 0x44], edx
add edx, eax
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x34]
cmp edx, ecx
jle 0x1006d1d1
mov ecx, dword [esp + 0x28]
sub ecx, edx
mov edx, dword [esp + 0x6c]
add ecx, edx
mov dword [esp + 0x50], ecx
mov ecx, edx
cmp dword [esp + 0x48], 0
jle 0x1006d266
sub edx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x54], edx
xor edx, edx
mov dword [esp + 0x38], eax
nop
mov ecx, dword [esp + 0x60]
lea eax, [edx + ecx]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x40]
add edx, eax
mov dword [esp + 0x4c], edx
add edx, ecx
mov ecx, dword [esp + 0x68]
cmp edx, ecx
jle 0x1006d215
sub eax, edx
mov edx, ecx
add eax, ecx
mov ecx, dword [esp + 0x18]
push esi
push dword [esp + 0x54]
push eax
mov eax, dword [ecx + 4]
add eax, dword [edi + 4]
push eax
mov eax, dword [edi]
add eax, dword [ecx]
mov ecx, dword [esp + 0x68]
sub edx, ecx
push eax
push dword [esp + 0x38]
mov eax, dword [esp + 0x54]
push dword [esp + 0x6c]
add eax, dword [esp + 0x80]
push edx
push eax
push ecx
push dword [esp + 0x48]
call dword [0x10365b7c]
sub dword [esp + 0x38], 1
je 0x1006d25e
mov edx, dword [esp + 0x4c]
jmp 0x1006d1f0
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
sub dword [esp + 0x30], 1
mov edx, dword [esp + 0x44]
mov dword [esp + 0x3c], edx
jne 0x1006d1a0
jmp 0x1006cafc
mov edx, dword [esp + 0x68]
dec edx
add eax, edx
cdq
idiv dword [esp + 0x40]
mov dword [esp + 0x38], eax
test eax, eax
jle 0x1006cafc
xor eax, eax
mov dword [esp + 0x28], eax
nop dword [eax]
mov edi, dword [esp + 0x60]
add eax, edi
mov edx, dword [esp + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
add eax, edx
mov dword [esp + 0x30], edx
add edi, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], edi
cmp edi, dword [esp + 0x68]
jle 0x1006d2da
mov eax, edx
mov edx, dword [esp + 0x68]
sub eax, edi
mov dword [esp + 0x3c], edx
add eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [ecx + 4]
push esi
mov esi, dword [esp + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x70]
sub edi, dword [esp + 0x68]
mov dword [esp + 0x70], edi
mov eax, dword [eax + 0xc]
sub eax, dword [esi + 0xc]
sub eax, ecx
sub eax, edx
push eax
push dword [esp + 0x38]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x24]
push eax
mov eax, esi
mov eax, dword [eax]
add eax, dword [ecx]
mov ecx, dword [esp + 0x54]
push eax
push dword [esp + 0x38]
mov eax, dword [esp + 0x54]
push edi
sub eax, ecx
push eax
push dword [esp + 0x84]
push ecx
push dword [esp + 0x48]
call dword [0x10365b7c]
sub dword [esp + 0x38], 1
mov esi, dword [esp + 0x34]
je 0x1006caf8
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
jmp 0x1006d2a0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 8]
sub ecx, dword [esi]
mov eax, dword [edx + 8]
sub eax, dword [edx]
cmp eax, ecx
jne 0x1006d3f4
mov ecx, dword [esi + 0xc]
mov eax, dword [edx + 0xc]
sub ecx, dword [esi + 4]
sub eax, dword [edx + 4]
cmp eax, ecx
jne 0x1006d3f4
cmp dword [edi], 0
jne 0x1006d3f4
cmp dword [edi + 8], 0
jne 0x1006d3f4
cmp dword [edi + 4], 0
jne 0x1006d3f4
cmp dword [edi + 0xc], 0
jne 0x1006d3f4
push edx
push dword [esp + 0x30]
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1006da1d
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x74]
push 0xcc0020
sub eax, dword [ecx + 4]
add eax, edx
push eax
mov eax, dword [esi]
sub eax, dword [ecx]
mov ecx, dword [esp + 0x78]
add eax, ecx
push eax
push dword [esp + 0x30]
mov eax, dword [esp + 0x8c]
sub eax, edx
push eax
mov eax, dword [esp + 0x8c]
sub eax, ecx
push eax
push edx
push ecx
push dword [esp + 0x40]
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x1006da1d
cmp byte [ebp + 0x28], 0
jne 0x1006d4d3
mov eax, dword [edi]
add eax, dword [edx]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 4]
add eax, dword [edi + 4]
mov dword [esp + 0x64], eax
mov eax, dword [edx + 8]
sub eax, dword [edi + 8]
mov dword [esp + 0x68], eax
mov eax, dword [edx + 0xc]
sub eax, dword [edi + 0xc]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1006d4cf
cmp byte [ebp + 0x2c], 0
jne 0x1006db18
mov ecx, dword [esi + 4]
mov esi, dword [esi + 0xc]
sub esi, dword [edi + 4]
sub esi, ecx
mov dword [esp + 0x44], ecx
sub esi, dword [edi + 0xc]
cmp byte [ebp + 0x30], 0
mov dword [esp + 0x48], esi
jne 0x1006da49
mov eax, dword [esp + 0x60]
sub dword [esp + 0x68], eax
mov eax, edi
mov esi, dword [esp + 0x6c]
sub esi, dword [esp + 0x64]
push 0xcc0020
mov edx, dword [eax]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x4c]
mov dword [esp + 0x74], esi
mov ecx, dword [eax]
mov eax, dword [eax + 8]
sub eax, dword [edi + 8]
sub eax, ecx
sub eax, edx
push eax
mov eax, dword [edi + 4]
add eax, dword [esp + 0x50]
push eax
mov eax, dword [edi]
mov edi, dword [esp + 0x74]
add eax, ecx
push eax
push dword [esp + 0x38]
push esi
push dword [esp + 0x84]
push edi
push dword [esp + 0x84]
push dword [esp + 0x48]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov esi, dword [edi]
test esi, esi
jle 0x1006d557
mov eax, dword [edi + 4]
test eax, eax
jle 0x1006d557
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x60], eax
add eax, esi
mov dword [esp + 0x68], eax
mov eax, dword [edi + 4]
add eax, ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1006d557
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
sub eax, ecx
mov edx, dword [esp + 0x68]
sub edx, dword [esp + 0x60]
push 0xcc0020
push dword [edi + 4]
mov dword [esp + 0x70], edx
push dword [edi]
mov dword [esp + 0x78], eax
push dword [esi + 4]
push dword [esi]
mov esi, dword [esp + 0x74]
push dword [esp + 0x38]
push eax
push edx
push ecx
push esi
push dword [esp + 0x48]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [edi + 4]
mov esi, dword [esp + 0x1c]
test edx, edx
jle 0x1006d60a
mov eax, dword [edi]
add eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 8]
sub eax, dword [edi + 8]
mov dword [esp + 0x68], eax
lea eax, [ecx + edx]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
mov dword [esp + 0x6c], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1006d60a
mov eax, dword [esp + 0x60]
sub dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
push 0xcc0020
mov esi, dword [esp + 0x70]
push dword [eax + 4]
mov edx, dword [eax]
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov edi, dword [esp + 0x1c]
sub esi, dword [esp + 0x6c]
mov dword [esp + 0x74], esi
sub eax, dword [edi + 8]
mov edi, dword [esp + 0x6c]
sub eax, ecx
sub eax, edx
push eax
mov eax, dword [esp + 0x24]
push dword [eax + 4]
lea eax, [ecx + edx]
push eax
push dword [esp + 0x38]
push esi
push dword [esp + 0x84]
push edi
push dword [esp + 0x84]
push dword [esp + 0x48]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov edx, dword [edi + 8]
test edx, edx
jle 0x1006d6a8
mov eax, dword [edi + 4]
test eax, eax
jle 0x1006d6a8
mov ecx, dword [esi + 8]
mov eax, ecx
sub eax, edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x60], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x64], eax
add eax, dword [edi + 4]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1006d6a8
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x64]
sub edx, esi
mov edi, dword [esp + 0x68]
mov ecx, dword [eax + 8]
sub edi, dword [esp + 0x60]
push 0xcc0020
push dword [eax + 4]
mov eax, dword [esp + 0x20]
push ecx
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edx
push dword [eax + 4]
mov eax, dword [eax + 8]
sub eax, ecx
push eax
push dword [esp + 0x38]
push edx
push edi
push esi
push dword [esp + 0x84]
push dword [esp + 0x48]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edi, dword [esp + 0x14]
mov edx, dword [edi]
mov esi, dword [esp + 0x1c]
test edx, edx
jle 0x1006d75d
mov ecx, dword [esi]
mov eax, dword [esi + 4]
add eax, dword [edi + 4]
mov dword [esp + 0x64], eax
lea eax, [ecx + edx]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esi + 0xc]
sub eax, dword [edi + 0xc]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1006d75d
mov eax, dword [esp + 0x60]
sub dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x6c]
sub esi, dword [esp + 0x64]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x18]
push 0xcc0020
mov dword [esp + 0x70], esi
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
sub eax, ecx
sub eax, edx
sub eax, dword [edi + 0xc]
push eax
mov eax, edi
mov edi, dword [esp + 0x6c]
push dword [eax]
lea eax, [ecx + edx]
push eax
mov eax, dword [esp + 0x28]
push dword [eax]
push dword [esp + 0x38]
push esi
push dword [esp + 0x84]
push edi
push dword [esp + 0x84]
push dword [esp + 0x48]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov edx, dword [edi + 8]
test edx, edx
jle 0x1006d817
mov ecx, dword [esi + 8]
mov eax, ecx
sub eax, edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x60], eax
mov eax, dword [esi + 4]
add eax, dword [edi + 4]
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0xc]
sub eax, dword [edi + 0xc]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1006d817
mov edi, dword [esp + 0x6c]
sub edi, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
sub dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x6c], edi
mov edi, dword [esp + 0x18]
push 0xcc0020
mov esi, dword [eax + 8]
mov edx, dword [eax + 4]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edi, dword [esp + 0x18]
sub eax, ecx
sub eax, edx
sub eax, dword [edi + 0xc]
mov edi, dword [esp + 0x70]
push eax
push esi
lea eax, [ecx + edx]
push eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 8]
sub eax, esi
push eax
push dword [esp + 0x38]
push edi
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x48]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
mov esi, dword [esp + 0x1c]
test eax, eax
jle 0x1006d8be
cmp dword [edi + 0xc], 0
jle 0x1006d8be
mov edx, dword [esi + 0xc]
mov eax, edx
sub eax, dword [edi + 0xc]
mov ecx, dword [esi]
mov dword [esp + 0x64], eax
mov eax, dword [edi]
add eax, ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
mov dword [esp + 0x74], edx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1006d8be
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x64]
sub edx, esi
mov edi, dword [esp + 0x68]
mov ecx, dword [eax + 0xc]
push 0xcc0020
sub edi, dword [esp + 0x64]
push ecx
push dword [eax]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edx
mov eax, dword [eax + 0xc]
sub eax, ecx
push eax
mov eax, dword [esp + 0x28]
push dword [eax]
push dword [esp + 0x38]
push edx
push edi
push esi
push dword [esp + 0x84]
push dword [esp + 0x48]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov edx, dword [edi + 0xc]
test edx, edx
jle 0x1006d974
mov eax, dword [edi]
add eax, dword [esi]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x60], eax
mov eax, ecx
sub eax, edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x64], eax
mov eax, dword [esi + 8]
sub eax, dword [edi + 8]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1006d974
mov eax, dword [esp + 0x60]
sub dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x6c]
sub edi, dword [esp + 0x64]
mov dword [esp + 0x6c], edi
mov ecx, dword [eax + 0xc]
mov esi, dword [eax]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
push 0xcc0020
push ecx
mov edx, dword [eax]
mov eax, dword [eax + 8]
sub eax, dword [edi + 8]
mov edi, dword [esp + 0x74]
sub eax, edx
sub eax, esi
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
sub eax, ecx
push eax
lea eax, [edx + esi]
push eax
push dword [esp + 0x38]
push edi
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x48]
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 8]
test esi, esi
jle 0x1006da1d
mov edi, dword [edi + 0xc]
test edi, edi
jle 0x1006da1d
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
mov eax, edx
mov ecx, dword [ecx + 0xc]
sub eax, esi
mov dword [esp + 0x60], eax
mov eax, ecx
sub eax, edi
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x78]
mov dword [esp + 0x74], ecx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1006da1d
mov eax, dword [esp + 0x60]
sub dword [esp + 0x68], eax
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x64]
sub esi, edi
push 0xcc0020
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x78], esi
mov eax, dword [eax + 0xc]
sub eax, ecx
push eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 8]
sub eax, edx
push eax
push dword [esp + 0x38]
push esi
push dword [esp + 0x84]
push edi
push dword [esp + 0x84]
push dword [esp + 0x48]
call dword [sym.imp.GDI32.dll_StretchBlt]
push dword [esp + 0x5c]
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x24]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.102601ec
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x6c]
mov eax, esi
sub eax, dword [esp + 0x64]
dec ecx
add eax, ecx
cdq
idiv esi
mov dword [esp + 0x38], eax
test eax, eax
jle 0x1006d4cf
xor eax, eax
nop word [eax + eax]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x30], esi
lea edx, [eax + ecx]
add eax, esi
add ecx, eax
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], ecx
cmp ecx, edx
jle 0x1006daa1
mov eax, esi
mov dword [esp + 0x3c], edx
sub eax, ecx
add eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x68]
sub esi, dword [esp + 0x60]
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
push 0xcc0020
push dword [esp + 0x34]
mov dword [esp + 0x70], esi
mov ecx, dword [eax]
mov eax, dword [eax + 8]
sub eax, dword [edi + 8]
sub eax, ecx
sub eax, edx
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
add eax, dword [edi + 4]
mov edi, dword [esp + 0x6c]
push eax
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x54]
push eax
push dword [esp + 0x38]
mov eax, dword [esp + 0x54]
sub eax, ecx
push eax
push esi
push ecx
push edi
push dword [esp + 0x48]
call dword [sym.imp.GDI32.dll_StretchBlt]
sub dword [esp + 0x38], 1
je 0x1006d4cb
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
jmp 0x1006da70
mov ecx, dword [esi + 8]
sub ecx, dword [edi + 8]
sub ecx, dword [edi]
sub ecx, dword [esi]
cmp byte [ebp + 0x30], 0
mov dword [esp + 0x40], ecx
je 0x1006dc3f
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
sub eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov dword [esp + 0x34], eax
mov eax, ecx
sub eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
dec ecx
add eax, ecx
mov ecx, dword [esp + 0x34]
cdq
idiv dword [esp + 0x40]
sub ecx, dword [esp + 0x64]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x6c]
dec eax
add eax, ecx
cdq
idiv dword [esp + 0x34]
mov dword [esp + 0x48], eax
test eax, eax
jle 0x1006d4cf
mov eax, dword [esp + 0x64]
xor ecx, ecx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x38], ecx
lea edi, [ecx + eax]
add ecx, dword [esp + 0x34]
mov dword [esp + 0x4c], ecx
add ecx, eax
cmp ecx, edx
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x14]
cmovg ecx, edx
cmp dword [esp + 0x30], 0
jle 0x1006dc27
sub ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], ecx
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], eax
nop
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x18]
push 0xcc0020
lea edx, [ecx + eax]
mov ecx, dword [esp + 0x44]
add dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x2c]
add ecx, eax
mov eax, dword [esi + 4]
cmp ecx, dword [esp + 0x6c]
cmovg ecx, dword [esp + 0x6c]
add eax, dword [edi + 4]
sub ecx, edx
push eax
mov eax, dword [edi]
add eax, dword [esi]
push eax
push dword [esp + 0x30]
mov eax, dword [esp + 0x74]
push dword [esp + 0x54]
add eax, dword [esp + 0x4c]
push ecx
push eax
push edx
push dword [esp + 0x40]
call dword [sym.imp.GDI32.dll_BitBlt]
sub dword [esp + 0x3c], 1
je 0x1006dc1f
mov ecx, dword [esp + 0x28]
jmp 0x1006dbc0
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
sub dword [esp + 0x48], 1
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x38], ecx
jne 0x1006db84
jmp 0x1006d4cf
mov esi, dword [esp + 0x68]
mov eax, ecx
sub eax, dword [esp + 0x60]
dec eax
add eax, esi
cdq
idiv ecx
mov dword [esp + 0x38], eax
test eax, eax
jle 0x1006d4cf
xor edi, edi
nop dword [eax]
mov edx, dword [esp + 0x60]
lea eax, [edi + edx]
mov dword [esp + 0x44], eax
lea eax, [edi + ecx]
lea ecx, [eax + edx]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], eax
cmp ecx, esi
jle 0x1006dc91
sub eax, ecx
mov dword [esp + 0x3c], esi
add eax, esi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x6c]
sub esi, dword [esp + 0x64]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x18]
push 0xcc0020
mov dword [esp + 0x70], esi
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
sub eax, ecx
sub eax, edx
sub eax, dword [edi + 0xc]
push eax
push dword [esp + 0x38]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x24]
push eax
mov eax, edi
mov edi, dword [esp + 0x74]
mov eax, dword [eax]
add eax, dword [ecx]
mov ecx, dword [esp + 0x54]
push eax
push dword [esp + 0x38]
mov eax, dword [esp + 0x54]
push esi
sub eax, ecx
push eax
push edi
push ecx
push dword [esp + 0x48]
call dword [sym.imp.GDI32.dll_StretchBlt]
sub dword [esp + 0x38], 1
je 0x1006d4cb
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x4c]
jmp 0x1006dc60
push 0x10365b78
call fcn.1025fd8f
add esp, 4
cmp dword [0x10365b78], 0xffffffff
jne 0x1006c988
push str.AlphaBlend
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10365b78
mov dword [0x10365b7c], eax
call fcn.1025fd45
add esp, 4
jmp 0x1006c988