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

Disassembly:
sub esp, 0x488
push ebx
push ebp
mov ebp, dword [esp + 0x494]
push esi
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
mov dword [esp + 0x28], 0
mov dword [esp + 0x44], 0
call dword [sym.imp.COMCTL32.dll_ImageList_GetIconSize]
test eax, eax
je 0x4b3827
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x4b3827
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x4b3827
cmp eax, 0x400
jg 0x4b3827
cmp ecx, 0x400
jg 0x4b3827
imul eax, ecx
cmp eax, 0x100
jle 0x4b33b2
lea edx, [eax*4]
push edx
call fcn.004a49a0
jmp 0x4b33b9
lea eax, [esp + 0x98]
mov ebx, dword [esp + 0x4a0]
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
mov dword [esp + 0x40], esi
je 0x4b37ff
push 0
push esi
call dword [0x58df74]
test al, 1
mov dword [esp + 0x50], eax
je 0x4b33f2
mov dword [esp + 0x38], 1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x4b4]
lea ecx, [esp + 0x3c]
push ecx
push 0
push edx
push eax
push edi
push esi
push ebp
call fcn.004adda0
test eax, eax
mov dword [esp + 0x48], eax
je 0x4b36e3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x44]
push ecx
push 0xffffff
push edx
push eax
push edi
push esi
push ebp
call fcn.004adda0
test eax, eax
mov dword [esp + 0x54], eax
je 0x4b36d8
mov ecx, dword [esp + 0x4b8]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetNearestColor]
mov ecx, dword [esp + 0x14]
imul ecx, dword [esp + 0x10]
movzx edx, al
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
movzx edx, ah
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4bc]
mov dword [esp + 0x2c], edx
movzx edx, al
mov dword [esp + 0x5c], edx
movzx edx, ah
shr eax, 0x10
test ecx, ecx
movzx eax, al
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x58], eax
je 0x4b36c1
lea ecx, [ecx]
movzx ebx, byte [edi]
movzx edx, byte [edi + 2]
movzx ecx, byte [edi + 1]
add edx, ebx
add ecx, edx
mov eax, 0x55555556
imul ecx
movzx ecx, byte [esi + 1]
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx edx, byte [esi + 2]
mov dword [esp + 0x18], eax
movzx eax, byte [esi]
add edx, eax
mov dword [esp + 0x20], ecx
add ecx, edx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx edx, byte [esi + 1]
mov ecx, eax
mov eax, dword [esp + 0x18]
sub ecx, eax
movzx eax, byte [esi]
sub ebx, eax
imul ebx, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
add esi, 1
movzx edx, byte [esi + 1]
mov dword [esp + 0x18], edx
add esi, 1
mov eax, 0x80808081
imul ebx
add edx, ebx
movzx ebx, byte [edi + 1]
sub ebx, dword [esp + 0x28]
add edi, 1
imul ebx, dword [esp + 0x2c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [esp + 0x20], eax
mov eax, 0x80808081
imul ebx
add edx, ebx
movzx ebx, byte [edi + 1]
sub ebx, dword [esp + 0x18]
add edi, 1
imul ebx, dword [esp + 0x1c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [esp + 0x28], eax
mov eax, 0x80808081
imul ebx
add edx, ebx
mov ebx, dword [esp + 0x58]
sub ebx, dword [esp + 0x20]
add ecx, 0xff
imul ebx, ecx
imul ebx, dword [esp + 0x4c0]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add dword [esp + 0x18], eax
mov eax, 0x81018203
imul ebx
add edx, ebx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add esi, 2
add edi, 2
add eax, edx
mov ebx, eax
sub ebx, dword [esp + 0x30]
mov eax, 0x80808081
add ebx, dword [esp + 0x20]
add ebp, 1
imul ebx, dword [esp + 0x4c4]
imul ebx
add edx, ebx
mov ebx, dword [esp + 0x4c]
sub ebx, dword [esp + 0x28]
sar edx, 7
imul ebx, ecx
imul ebx, dword [esp + 0x4c0]
mov eax, edx
shr eax, 0x1f
add eax, edx
add al, byte [esp + 0x30]
add ebp, 1
mov byte [ebp - 2], al
mov eax, 0x81018203
imul ebx
add edx, ebx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
sub ebx, dword [esp + 0x2c]
mov eax, 0x80808081
add ebx, dword [esp + 0x28]
add ebp, 1
imul ebx, dword [esp + 0x4c4]
imul ebx
add edx, ebx
mov ebx, dword [esp + 0x5c]
sub ebx, dword [esp + 0x18]
sar edx, 7
imul ebx, ecx
imul ecx, dword [esp + 0x4c4]
imul ebx, dword [esp + 0x4c0]
mov eax, edx
shr eax, 0x1f
add eax, edx
add al, byte [esp + 0x2c]
add ebp, 1
mov byte [ebp - 3], al
mov eax, 0x81018203
imul ebx
add edx, ebx
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
sub ebx, dword [esp + 0x1c]
mov eax, 0x80808081
add ebx, dword [esp + 0x18]
imul ebx, dword [esp + 0x4c4]
imul ebx
add edx, ebx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
add al, byte [esp + 0x1c]
mov byte [ebp - 2], al
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub dword [esp + 0x34], 1
mov byte [ebp - 1], cl
jne 0x4b34b0
mov ebx, dword [esp + 0x4a0]
mov edx, dword [esp + 0x54]
push edx
mov dword [esp + 0x20], 1
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x50]
push ecx
push esi
call dword [0x58df74]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [esp + 0x1c], 0
je 0x4b37ff
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.GDI32.dll_SetStretchBltMode]
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x10]
push 3
neg eax
push ebx
mov dword [esp + 0x68], 0x28
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
mov word [esp + 0x74], 1
mov word [esp + 0x76], 0x20
mov dword [esp + 0x78], 0
call esi
cmp dword [esp + 0x38], 0
push 0xcc0020
mov edi, eax
push 0
je 0x4b37bc
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x68]
push ecx
push edx
mov edx, dword [esp + 0x4c0]
push eax
mov eax, dword [esp + 0x28]
mov ecx, eax
neg ecx
push ecx
mov ecx, dword [esp + 0x4c0]
push 0
add eax, 0xffffffff
push eax
mov eax, dword [esp + 0x4cc]
push edx
mov edx, dword [esp + 0x4c8]
push eax
push ecx
push edx
jmp 0x4b37f4
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x4c0]
push edx
mov edx, dword [esp + 0x4c0]
push eax
mov eax, dword [esp + 0x4c0]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x4c8]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_StretchDIBits]
push edi
push ebx
call esi
mov edx, dword [esp + 0x14]
imul edx, dword [esp + 0x10]
cmp edx, 0x100
jle 0x4b381a
mov eax, dword [esp + 0x24]
push eax
call fcn.004a4a00
cmp dword [esp + 0x1c], 0
jne 0x4b38a1
jmp 0x4b382e
mov ebx, dword [esp + 0x4a0]
mov ecx, dword [esp + 0x4b8]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetNearestColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [esp + 0x4ac]
test edx, edx
mov esi, eax
jle 0x4b389a
mov edi, dword [esp + 0x4b0]
test edi, edi
jle 0x4b389a
mov ecx, dword [esp + 0x4a4]
mov eax, dword [esp + 0x4a8]
mov dword [esp + 0x88], ecx
add ecx, edx
push esi
lea edx, [esp + 0x8c]
mov dword [esp + 0x90], eax
push edx
add eax, edi
push ebx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], 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, 0x488
ret 0x2c