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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x102bff3c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x28]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x74]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + 0x18]
cmp ecx, 2
jne 0x1001318c
push dword [esi + 0x20]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, eax
test edi, edi
je 0x1001303b
mov ecx, dword [esi + 0x28]
push edi
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx + edx*4 + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + edx*4 + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + edx*4 + 4]
add eax, dword [ecx + edx*4 + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + edx*4 + 8]
add eax, dword [ecx + edx*4 + 0x10]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_FillRect]
push edi
call ebx
mov edi, dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [esi + 0x3c], 0
jne 0x10013357
jmp 0x10013050
mov eax, dword [esi + 0x28]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x74]
cmp dword [eax + ecx*4], 0
je 0x100132e0
cmp dword [eax + ecx*4 + 0x18], 3
jne 0x100130e5
push dword [esi + 0x44]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x28]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x74]
push dword [eax + ecx*4 + 8]
push dword [eax + ecx*4 + 4]
push dword [esi + 0x44]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x4c], eax
test ecx, ecx
je 0x100130e5
test eax, eax
je 0x100130e5
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x28]
push 0xcc0020
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x74]
push dword [eax + ecx*4 + 0x10]
push dword [eax + ecx*4 + 0xc]
push dword [esi + 0x44]
push dword [eax + ecx*4 + 8]
push dword [eax + ecx*4 + 4]
push 0
push 0
push dword [esi + 0x48]
call edi
mov eax, dword [esi + 0x28]
lea edx, [esp + 0x10]
push edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x74]
mov eax, dword [eax + ecx*4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [esi + 0x28]
lea edx, [esp + 0xc]
push edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x74]
mov eax, dword [eax + ecx*4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esi + 0x28]
push 0
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x74]
mov ebx, dword [eax + ecx*4]
lea edi, [eax + ecx*4]
mov ecx, dword [esp + 0x10]
mov eax, ecx
neg eax
push eax
push dword [esp + 0x18]
mov edx, dword [ebx]
push ecx
push 0
push dword [edi + 8]
push dword [edi + 4]
push dword [edi + 0x10]
push dword [edi + 0xc]
push dword [esi + 0x44]
push ebx
call dword [edx + 0x20]
test eax, eax
jne 0x10013166
mov ecx, esi
call fcn.100135e0
cmp dword [esi + 0x3c], 0
jne 0x10013357
mov eax, dword [esi + 0x28]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x74]
mov eax, dword [eax + ecx*4 + 0x14]
cmp eax, 5
jae 0x100131e8
push 0x64
jmp 0x100131ee
mov edx, dword [esi + 0x48]
test edx, edx
je 0x10013041
cmp ecx, 3
jne 0x10013041
push 0xcc0020
push 0
push 0
push edx
push dword [eax + 8]
push dword [eax + 4]
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [esi + 0x44]
call edi
push dword [esi + 0x50]
push dword [esi + 0x48]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 0x48]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esi + 0x4c]
mov dword [esi + 0x48], 0
call ebx
mov dword [esi + 0x4c], 0
jmp 0x10013041
lea eax, [eax + eax*4]
add eax, eax
push eax
push dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x3c], 0
jne 0x10013357
mov eax, dword [esi + 0x28]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x74]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + 0x18]
cmp ecx, 2
jne 0x1001327f
push dword [esi + 0x20]
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, eax
test edi, edi
je 0x100132da
mov ecx, dword [esi + 0x28]
push edi
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx + edx*4 + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + edx*4 + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + edx*4 + 4]
add eax, dword [ecx + edx*4 + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + edx*4 + 8]
add eax, dword [ecx + edx*4 + 0x10]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_FillRect]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call ebx
jmp 0x100132e0
mov edx, dword [esi + 0x48]
test edx, edx
je 0x100132da
cmp ecx, 3
jne 0x100132da
push 0xcc0020
push 0
push 0
push edx
push dword [eax + 8]
push dword [eax + 4]
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [esi + 0x44]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esi + 0x50]
push dword [esi + 0x48]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 0x48]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esi + 0x4c]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x48], 0
call ebx
mov dword [esi + 0x4c], 0
jmp 0x100132e0
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
inc dword [esi + 0x28]
mov eax, 0x92492493
mov ecx, dword [esi + 0x78]
sub ecx, dword [esi + 0x74]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esi + 0x28], eax
jne 0x10013347
push dword [esi + 0x20]
mov dword [esi + 0x28], 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edi, eax
test edi, edi
je 0x10013347
mov ecx, dword [esi + 0x18]
lea eax, [esp + 0x24]
push edi
push eax
push dword [esi + 0x44]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], ecx
call dword [sym.imp.USER32.dll_FillRect]
push edi
call ebx
cmp dword [esi + 0x3c], 0
mov edi, dword [sym.imp.GDI32.dll_BitBlt]
je 0x10013050
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101b70aa
mov esp, ebp
pop ebp
ret