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

Disassembly:
sub esp, 0x84
test byte [0x5f0cfc], 1
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jne 0x4528a1
or dword [0x5f0cfc], 1
push str.AlphaBlend
push str.msimg32.dll
call edi
push eax
call esi
mov dword [0x5f0cf8], eax
cmp dword [0x5f0cf8], 0
jne 0x4528b4
mov dword [0x5f0cf8], 0x44fae0
test byte [0x5f0cfc], 2
jne 0x4528d8
or dword [0x5f0cfc], 2
push str.GradientFill
push str.msimg32.dll
call edi
push eax
call esi
mov dword [0x5f0cf4], eax
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0xa4]
mov ecx, edx
shr ecx, 0x18
mov esi, eax
shr esi, 0x18
add ecx, esi
shr ecx, 1
mov byte [esp + 0x17], cl
test cl, cl
je 0x452cc0
mov ecx, dword [ebp]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
sub ebx, dword [ebp]
sub edi, dword [ebp + 4]
cmp byte [esp + 0x17], 0xff
mov esi, dword [esp + 0x98]
mov dword [esp + 0x60], ecx
mov ecx, dword [ebp + 4]
mov dword [esp + 0x64], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x68], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
jae 0x4529a1
xor eax, eax
mov edx, esi
push edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
mov esi, eax
mov eax, dword [esp + 0x9c]
push ebx
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [esp + 0x48], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xa4]
cmp dword [0x5f0cf4], 0
je 0x452a8d
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x74], ecx
mov ecx, edx
shr ecx, 0x10
movzx cx, cl
shl cx, 8
mov word [esp + 0x78], cx
mov ecx, edx
shr ecx, 8
movzx dx, dl
movzx cx, cl
shl dx, 8
shl cx, 8
mov word [esp + 0x7c], dx
mov edx, dword [esp + 0x68]
mov word [esp + 0x7a], cx
mov dword [esp + 0x80], edx
mov ecx, 0xff00
mov word [esp + 0x7e], cx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x84], ecx
mov edx, eax
shr edx, 0x10
movzx cx, dl
shl cx, 8
mov edx, eax
shr edx, 8
mov word [esp + 0x88], cx
movzx cx, dl
shl cx, 8
movzx dx, al
mov word [esp + 0x8a], cx
xor ecx, ecx
shl dx, 8
cmp byte [esp + 0xa8], cl
mov word [esp + 0x8c], dx
setne cl
lea edx, [esp + 0x58]
mov eax, 0xff00
mov word [esp + 0x8e], ax
lea eax, [esp + 0x70]
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 1
push ecx
push 1
push edx
push 2
push eax
push esi
call dword [0x5f0cf4]
jmp 0x452c63
xor ecx, ecx
cmp dword [esp + 0xac], 0x10
mov esi, 1
setge cl
add ecx, 3
shl esi, cl
mov edi, ecx
mov dword [esp + 0x20], esi
xor esi, esi
cmp dword [esp + 0x20], esi
jle 0x452c5b
mov cx, ax
movzx ebx, al
shr eax, 0x10
mov dword [esp + 0x44], eax
mov word [esp + 0x18], dx
shr word [esp + 0x18], 8
mov eax, edx
shr eax, 0x10
movzx edx, dl
mov dword [esp + 0x48], eax
mov eax, ebx
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x20]
shr cx, 8
neg eax
imul ebx, edx
mov word [esp + 0x1a], cx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x28], ebx
jmp 0x452b19
mov edx, dword [esp + 0x2c]
mov cx, word [esp + 0x1a]
mov ebx, dword [esp + 0x28]
movzx eax, cl
movzx ecx, byte [esp + 0x18]
imul eax, edx
imul ecx, esi
add eax, ecx
mov ecx, edi
sar eax, cl
mov ecx, dword [esp + 0x24]
add ebx, ecx
mov ecx, edi
sar ebx, cl
movzx eax, al
movzx ecx, bl
movzx ebx, byte [esp + 0x44]
imul ebx, edx
movzx edx, byte [esp + 0x48]
imul edx, esi
shl ecx, 8
or eax, ecx
add ebx, edx
mov ecx, edi
sar ebx, cl
shl eax, 8
movzx ecx, bl
or eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
cmp byte [esp + 0xa8], 0
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
mov ebx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
je 0x452be4
mov eax, dword [ebp + 0xc]
mov ecx, eax
sub ecx, dword [ebp + 4]
mov dword [esp + 0x30], ecx
imul ecx, esi
mov edx, ecx
mov ecx, edi
sar edx, cl
inc esi
mov ecx, edx
mov dword [esp + 0x34], esi
imul esi, dword [esp + 0x30]
mov edx, eax
sub edx, ecx
mov ecx, edi
sar esi, cl
mov dword [esp + 0x7c], edx
sub eax, esi
sub edx, eax
mov dword [esp + 0x74], eax
test edx, edx
jle 0x452c2e
mov ecx, dword [esp + 0x98]
push ebx
lea eax, [esp + 0x74]
push eax
push ecx
jmp 0x452c28
mov edx, dword [ebp + 8]
mov eax, edx
sub eax, dword [ebp]
lea ecx, [esi + 1]
mov ebx, eax
imul eax, esi
imul ebx, ecx
mov dword [esp + 0x34], ecx
mov ecx, edi
sar ebx, cl
mov ecx, ebx
mov ebx, edx
sub ebx, ecx
mov ecx, edi
sar eax, cl
mov dword [esp + 0x70], ebx
sub edx, eax
mov dword [esp + 0x78], edx
sub edx, ebx
mov ebx, dword [esp + 0x30]
test edx, edx
jle 0x452c2e
mov eax, dword [esp + 0x1c]
push ebx
lea edx, [esp + 0x74]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x34]
add dword [esp + 0x24], ecx
add dword [esp + 0x28], edx
dec dword [esp + 0x2c]
cmp esi, dword [esp + 0x20]
jl 0x452b10
mov ebx, dword [esp + 0x58]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
mov al, byte [esp + 0x17]
cmp al, 0xff
jae 0x452cc0
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
mov byte [esp + 0x22], al
mov byte [esp + 0x20], 0
mov byte [esp + 0x21], 0
mov byte [esp + 0x23], 1
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x9c]
push edi
push ebx
push 0
push 0
push esi
push edi
push ebx
push ecx
push edx
push eax
call dword [0x5f0cf8]
mov ecx, dword [esp + 0x3c]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret