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

Disassembly:
sub esp, 0xb4
push ebx
push ebp
mov ebp, dword [esp + 0xc0]
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x1c]
sub edi, eax
mov eax, dword [esp + 0xcc]
lea esi, [ebp + 0x10]
push eax
mov dword [esp + 0x5c], esi
sub ebx, ecx
mov dword [esp + 0x58], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0xcc]
push edi
push ebx
push ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [esp + 0x14]
push eax
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x48], eax
mov eax, dword [esi]
mov dword [esp + 0x28], ecx
neg ecx
mov dword [esp + 0x20], eax
push ecx
neg eax
push eax
push esi
call dword [sym.imp.USER32.dll_OffsetRect]
lea ecx, [ebp + 0xbc]
lea eax, [esp + 0x5c]
call fcn.29a972f0
mov eax, dword [ebp + 0xe0]
mov ecx, dword [ebp + 0xe4]
mov dword [esp + 0x44], eax
or eax, 0xffffffff
mov dword [ebp + 0xe0], eax
mov dword [ebp + 0xe4], eax
mov dword [esp + 0x50], ecx
mov edx, esi
mov ecx, dword [edx]
lea eax, [ebp + 0xbc]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x68]
mov ecx, dword [esp + 0xcc]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0xcc]
push edi
push ebx
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xff00ff
mov dword [esp + 0x50], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esp + 0x10], eax
push eax
push esi
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.USER32.dll_FillRect]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [ebp]
push esi
mov ecx, ebp
call dword [edx + 0x38]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xcc]
push 0xcc0020
push eax
push ecx
push edx
push edi
mov edi, dword [esp + 0x28]
push ebx
xor esi, esi
push esi
push esi
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp]
push edi
mov ecx, ebp
call dword [eax + 0x38]
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x3c], ecx
push 0x18
mov dword [esp + 0x44], ecx
push eax
mov dword [esp + 0x4c], ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edi, dword [esp + 0x30]
imul edi, dword [esp + 0x34]
mov al, byte [0x29b87d2c]
shl edi, 2
test al, 1
jne 0x29a7f804
mov edx, dword [0x29b87d2c]
or edx, 1
push 0x29b2bfa0
mov dword [0x29b87d2c], edx
mov dword [0x29b87d24], esi
mov dword [0x29b87d28], esi
call fcn.29b25ac6
add esp, 4
mov cl, byte [0x29b87d2c]
mov eax, 2
test al, cl
jne 0x29a7f83a
mov edx, dword [0x29b87d2c]
or edx, eax
push 0x29b2bf90
mov dword [0x29b87d2c], edx
mov dword [0x29b87d1c], esi
mov dword [0x29b87d20], esi
call fcn.29b25ac6
add esp, 4
mov esi, 0x29b87d24
call fcn.29a7fad0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push 0
lea edx, [esp + 0x70]
push edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x78], ecx
mov ecx, dword [0x29b87d24]
push ecx
push eax
push 0
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x28]
push edx
push eax
mov dword [esp + 0x88], 0x28
mov word [esp + 0x94], 1
mov word [esp + 0x96], 0x20
mov dword [esp + 0x98], 0
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x29a7f9eb
mov esi, 0x29b87d1c
call fcn.29a7fad0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
xor esi, esi
push esi
lea edx, [esp + 0x9c]
push edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xa4], ecx
mov ecx, dword [0x29b87d1c]
push ecx
push eax
push esi
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x30]
push edx
push eax
mov dword [esp + 0xb4], 0x28
mov word [esp + 0xc0], 1
mov word [esp + 0xc2], 0x20
mov dword [esp + 0xc4], esi
call dword [sym.imp.GDI32.dll_GetDIBits]
mov edi, dword [esp + 0x74]
imul edi, dword [esp + 0x70]
test edi, edi
jbe 0x29a7f9c6
jmp 0x29a7f930
mov ecx, dword [0x29b87d1c]
cmp dword [ecx + esi*4], 0xff00ff
je 0x29a7f9bd
mov edx, dword [0x29b87d24]
mov eax, dword [edx + esi*4]
test eax, eax
je 0x29a7f9bd
movzx ecx, ah
mov edx, eax
mov dword [esp + 0x10], ecx
shr edx, 0x10
fild dword [esp + 0x10]
movzx ecx, dl
fmul qword [0x29b59848]
mov dword [esp + 0x10], ecx
movzx edx, al
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
fmul qword [0x29b59840]
faddp st(1)
fild dword [esp + 0x10]
fmul qword [0x29b59838]
faddp st(1)
fmul qword [0x29b59960]
call fcn.29b2608c
cmp eax, 0xff
jle 0x29a7f99f
mov eax, 0xff
mov edx, dword [0x29b87d24]
movzx eax, al
mov ecx, eax
or ecx, 0xffffff00
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
mov dword [edx + esi*4], ecx
inc esi
cmp esi, edi
jb 0x29a7f930
mov ecx, dword [0x29b87d24]
mov edx, dword [esp + 0x34]
push 0
lea eax, [esp + 0x70]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetDIBits]
xor esi, esi
call fcn.29a7f5d0
mov ecx, dword [esp + 0x54]
mov edi, dword [esp + 0x14]
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0xff
mov byte [esp + 0x13], 1
mov edx, dword [esp + 0x10]
push edx
push ecx
push ebx
push esi
push esi
mov esi, dword [esp + 0x34]
push edi
push ecx
mov ecx, dword [esp + 0xe8]
push ebx
mov ebx, dword [esp + 0x48]
push ebx
push esi
push ecx
call eax
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [ebp + 0xbc], edx
mov edx, dword [esp + 0x68]
mov dword [ebp + 0xc0], eax
mov eax, dword [esp + 0x44]
mov dword [ebp + 0xc4], ecx
mov ecx, dword [esp + 0x50]
push ebx
mov dword [ebp + 0xc8], edx
mov edx, dword [esp + 0x5c]
push esi
push edx
mov dword [ebp + 0xe0], eax
mov dword [ebp + 0xe4], ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
call ebx
mov ecx, dword [esp + 0x24]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
call ebp
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
mov edx, dword [esp + 0x48]
push edx
push edi
call ebx
mov eax, dword [esp + 0x18]
push eax
call ebp
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret 8