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

Disassembly:
sub esp, 0x80
test byte [0x47d49c], 1
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jne 0x429c69
or dword [0x47d49c], 1
push str.AlphaBlend
push 0x46d144
call edi
push eax
call esi
mov dword [0x47d498], eax
cmp dword [0x47d498], 0
jne 0x429c7c
mov dword [0x47d498], 0x4273b0
test byte [0x47d49c], 2
jne 0x429ca0
or dword [0x47d49c], 2
push str.GradientFill
push 0x46d144
call edi
push eax
call esi
mov dword [0x47d494], eax
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
shr edx, 0x18
mov ecx, eax
shr ecx, 0x18
add edx, ecx
shr edx, 1
test dl, dl
mov byte [esp + 0x13], dl
je 0x42a00b
mov ecx, dword [ebx]
mov edi, dword [ebx + 8]
mov ebp, dword [ebx + 0xc]
sub edi, dword [ebx]
sub ebp, dword [ebx + 4]
cmp dl, 0xff
mov esi, dword [esp + 0x90]
mov dword [esp + 0x58], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 0x60], ecx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x50], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
jae 0x429d5e
xor eax, eax
push esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x90]
push ebp
push edi
mov esi, eax
push edx
mov dword [esp + 0x28], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dl, byte [esp + 0x13]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x98]
cmp dword [0x47d494], 0
je 0x429e27
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x6c], edx
xor edx, edx
shr ecx, 0x10
mov dh, cl
mov ecx, dword [esp + 0x94]
push 1
push 1
mov word [esp + 0x7e], 0xff00
mov word [esp + 0x8e], 0xff00
mov dword [esp + 0x58], 0
mov word [esp + 0x78], dx
xor edx, edx
mov dh, ch
mov dword [esp + 0x5c], 1
mov word [esp + 0x7a], dx
xor edx, edx
mov dh, cl
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x80], ecx
mov ecx, eax
shr ecx, 0x10
mov word [esp + 0x7c], dx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x84], edx
xor edx, edx
mov dh, cl
xor ecx, ecx
mov ch, ah
mov word [esp + 0x88], dx
xor edx, edx
mov dh, al
lea eax, [esp + 0x58]
push eax
mov word [esp + 0x8e], cx
push 2
lea ecx, [esp + 0x78]
push ecx
push esi
mov word [esp + 0x9c], dx
call dword [0x47d494]
mov dl, byte [esp + 0x13]
jmp 0x429fb2
xor ecx, ecx
cmp dword [esp + 0x9c], 0x10
mov esi, 1
setge cl
add ecx, 3
shl esi, cl
mov ebp, ecx
mov dword [esp + 0x28], esi
xor esi, esi
cmp dword [esp + 0x28], esi
jle 0x429faa
mov di, word [esp + 0x94]
mov dx, ax
movzx ecx, al
shr eax, 0x10
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x94]
shr eax, 0x10
mov dword [esp + 0x40], eax
movzx eax, byte [esp + 0x94]
shr di, 8
mov dword [esp + 0x48], eax
mov eax, ecx
mov word [esp + 0x16], di
mov edi, dword [esp + 0x28]
shr dx, 8
neg eax
imul ecx, edi
mov word [esp + 0x14], dx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x24], ecx
jmp 0x429eb5
mov dx, word [esp + 0x14]
movzx eax, byte [esp + 0x16]
movzx edx, dl
imul eax, esi
imul edx, dword [esp + 0x18]
add edx, eax
mov eax, dword [esp + 0x20]
mov ecx, ebp
sar edx, cl
mov ecx, dword [esp + 0x24]
add eax, ecx
mov ecx, ebp
sar eax, cl
movzx ecx, byte [esp + 0x40]
movzx edx, dl
imul ecx, esi
mov dh, al
movzx eax, byte [esp + 0x3c]
imul eax, dword [esp + 0x18]
add eax, ecx
mov ecx, ebp
sar eax, cl
shl edx, 8
movzx eax, al
or edx, eax
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x74], ecx
mov edi, eax
sub edi, dword [ebx + 4]
mov dword [esp + 0x6c], edx
mov ecx, edi
imul ecx, esi
mov edx, ecx
mov ecx, ebp
sar edx, cl
add esi, 1
mov ecx, edx
mov edx, eax
sub edx, ecx
mov ecx, esi
imul ecx, edi
mov edi, ecx
mov ecx, ebp
sar edi, cl
mov dword [esp + 0x74], edx
sub eax, edi
sub edx, eax
test edx, edx
mov dword [esp + 0x6c], eax
jle 0x429f78
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x90]
push edx
lea eax, [esp + 0x6c]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
add dword [esp + 0x20], eax
add dword [esp + 0x24], ecx
sub dword [esp + 0x18], 1
cmp esi, dword [esp + 0x28]
jl 0x429eb0
mov dl, byte [esp + 0x13]
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
cmp dl, 0xff
jae 0x42a00b
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov byte [esp + 0x1e], dl
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0
mov byte [esp + 0x1f], 1
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x94]
push ebp
push edi
push 0
push 0
push esi
push ebp
push edi
push eax
push ecx
push edx
call dword [0x47d498]
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
add esp, 0x80
ret