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

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x68
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
push esi
cmp ebx, eax
push edi
je 0x4a9b9d
mov ecx, dword [esp + 0x8c]
xor ebp, ebp
cmp ecx, ebp
je 0x4a9b9d
cmp ecx, 3
jne 0x4a99c8
mov edi, dword [esp + 0x80]
xor edx, edx
mov dl, ah
push 2
mov ecx, dword [edi]
push 2
mov dword [esp + 0x90], ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [edi + 4]
mov word [esp + 0x4e], bp
mov dword [esp + 0x44], ecx
xor cx, cx
mov cl, al
mov word [esp + 0x5e], bp
movzx si, dl
shr eax, 0x10
xor edx, edx
mov word [esp + 0x6e], bp
mov dh, al
mov eax, dword [edi + 4]
mov dword [esp + 0x54], eax
mov eax, ebx
mov word [esp + 0x4c], dx
mov edx, dword [edi + 8]
shl ecx, 8
shr eax, 0x10
mov word [esp + 0x48], cx
mov dword [esp + 0x50], edx
mov word [esp + 0x58], cx
mov dword [esp + 0x60], edx
movzx ax, al
mov word [esp + 0x68], cx
mov ecx, dword [esp + 0x90]
xor edx, edx
mov dword [esp + 0x70], ecx
mov dh, bl
xor ecx, ecx
shl eax, 8
mov word [esp + 0x78], dx
mov word [esp + 0x5c], ax
mov edi, dword [edi + 0xc]
mov word [esp + 0x6c], ax
mov cl, bh
xor edx, edx
mov word [esp + 0x7c], ax
mov eax, 1
mov dh, cl
mov dword [esp + 0x2c], eax
mov ecx, 3
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], ecx
mov word [esp + 0x7a], dx
mov edx, dword [esp + 0x84]
push eax
lea ecx, [esp + 0x44]
push 4
shl esi, 8
push ecx
push edx
mov word [esp + 0x5a], si
mov word [esp + 0x6a], si
mov dword [esp + 0x74], edi
mov word [esp + 0x7a], si
mov dword [esp + 0x84], edi
mov word [esp + 0x8e], bp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x48], 2
call dword [sym.imp.MSIMG32.dll_GradientFill]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
xor cx, cx
mov esi, dword [esp + 0x80]
mov cl, al
mov word [esp + 0x46], bp
shl ecx, 8
mov dword [esp + 0x14], ecx
mov word [esp + 0x40], cx
xor ecx, ecx
mov edi, dword [esi]
mov cl, ah
mov edx, dword [esi + 4]
shr eax, 0x10
movzx ax, al
movzx cx, cl
shl eax, 8
mov dword [esp + 0x1c], eax
mov word [esp + 0x44], ax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x88], edi
shl ecx, 8
cmp eax, 1
mov eax, dword [esi + 8]
mov dword [esp + 0x38], edi
mov dword [esp + 0x80], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], ecx
mov word [esp + 0x42], cx
mov dword [esp + 0x84], eax
jne 0x4a9a5b
sub eax, edi
xor edx, edx
div dword [esp + 0x90]
add eax, edi
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x4c], eax
jmp 0x4a9a82
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
sub eax, edx
xor edx, edx
mov ecx, dword [esp + 0x80]
div dword [esp + 0x90]
add eax, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
xor cx, cx
xor edx, edx
mov cl, bl
mov dl, bh
shr ebx, 0x10
movzx si, dl
mov edx, dword [esp + 0x8c]
mov word [esp + 0x56], bp
movzx bx, bl
shl ecx, 8
shl esi, 8
shl ebx, 8
cmp edx, 1
mov word [esp + 0x50], cx
mov word [esp + 0x52], si
mov word [esp + 0x54], bx
jne 0x4a9ae5
mov eax, dword [esp + 0x84]
xor edx, edx
sub eax, edi
div dword [esp + 0x90]
add eax, dword [esp + 0x88]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x80]
jmp 0x4a9aff
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x80]
sub eax, edi
xor edx, edx
div dword [esp + 0x90]
mov edx, edi
add eax, edx
mov edx, dword [esp + 0x10]
mov word [esp + 0x60], cx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x5c], eax
mov ax, word [esp + 0x14]
mov dword [esp + 0x68], ecx
mov cx, word [esp + 0x18]
mov word [esp + 0x66], bp
mov word [esp + 0x70], ax
mov word [esp + 0x76], bp
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x8c]
mov word [esp + 0x72], cx
mov eax, 1
xor ecx, ecx
mov dword [esp + 0x6c], edx
mov dx, word [esp + 0x1c]
cmp ebp, eax
setne cl
mov word [esp + 0x74], dx
push ecx
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x24]
mov dword [esp + 0x28], eax
push 2
push edx
lea eax, [esp + 0x44]
push 4
push eax
push ecx
mov word [esp + 0x7a], si
mov word [esp + 0x7c], bx
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], 3
call dword [sym.imp.MSIMG32.dll_GradientFill]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [esp + 0x80]
mov esi, eax
mov eax, dword [esp + 0x7c]
push esi
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret