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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5513b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, ecx
sub ebx, dword [ebp + 0xc]
test ebx, ebx
push edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
jle 0x490f6c
mov edi, dword [ebp + 0x10]
sub edi, dword [ebp + 8]
test edi, edi
mov dword [esp + 0x10], edi
jle 0x490f6c
cmp dword [0x5a7a7c], 8
jg 0x490f85
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push ecx
call fcn.0048d9e0
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea ecx, [esp + 0x50]
call fcn.005280aa
mov edx, dword [esi + 4]
push edx
lea ecx, [esp + 0x54]
mov dword [esp + 0x70], 0
call fcn.004043a0
test eax, eax
je 0x491266
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], vtable.CBitmap.0
mov eax, dword [esi + 4]
push ebx
push edi
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x78], 1
call fcn.00404370
test eax, eax
je 0x491250
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x54]
call fcn.004043e0
push 0x28
mov dword [esp + 0x34], eax
call fcn.005253dd
mov esi, eax
mov dword [esi + 4], edi
xor eax, eax
add esp, 4
mov edi, ebx
imul edi, dword [esp + 0x10]
push eax
push eax
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esi], 0x28
mov dword [esi + 8], ebx
mov word [esi + 0xc], 1
mov word [esi + 0xe], 0x20
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
push esi
push eax
call dword [sym.imp.gdi32.dll_CreateDIBSection]
test eax, eax
mov dword [esp + 0x34], eax
je 0x491247
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x491247
push eax
lea ecx, [esp + 0x54]
call fcn.0040a400
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x28]
push 0xcc0020
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [esp + 0x1c]
push ecx
push ebx
push edx
push 0
push 0
lea ecx, [esp + 0x70]
call fcn.00404430
mov eax, dword [ebp + 0x1c]
cmp eax, 0xffffffff
je 0x4910a9
movzx ecx, ah
mov ch, al
shr eax, 0x10
movzx edx, al
shl ecx, 8
or ecx, edx
mov dword [ebp + 0x1c], ecx
test edi, edi
jle 0x4911d1
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
cmp eax, dword [ebp + 0x1c]
je 0x4911b7
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x50]
push ecx
push eax
call fcn.00490970
fld qword [0x5603f8]
fstp qword [esp + 8]
sub esp, 8
fld qword [esp + 0x58]
fstp qword [esp + 8]
fld qword [esp + 0x60]
fstp qword [esp]
call fcn.00490770
mov ecx, eax
mov eax, dword [ebp + 0x18]
add esp, 0x18
cmp eax, 0xffffffff
jne 0x491195
movzx eax, byte [0x5a7956]
movzx edi, cl
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
cmp eax, 0xff
mov dword [esp + 0x18], 0xff
jg 0x491131
mov dword [esp + 0x18], eax
mov ebx, dword [0x5a7954]
movzx edi, ch
movzx eax, bh
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
cmp eax, 0xff
mov dword [esp + 0x14], 0xff
jg 0x491159
mov dword [esp + 0x14], eax
shr ecx, 0x10
movzx ecx, cl
movzx eax, bl
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
cmp eax, 0xff
jle 0x491177
mov eax, 0xff
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x2c]
xor edx, edx
mov dh, al
movzx eax, byte [esp + 0x18]
mov dl, byte [esp + 0x14]
shl edx, 8
or edx, eax
mov dword [ecx], edx
jmp 0x4911b7
fild dword [ebp + 0x18]
sub esp, 0x18
fmul qword [0x5732c8]
fst qword [esp + 0x10]
fst qword [esp + 8]
fstp qword [esp]
push ecx
call fcn.004904f0
add esp, 0x1c
mov dword [edi], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
add ecx, 4
dec eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x24], eax
jne 0x4910b5
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0xc]
push 0xcc0020
push 0
push 0
lea edx, [esp + 0x5c]
push edx
mov edx, dword [ebp + 8]
push ebx
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [eax + 4]
push edx
call fcn.00404430
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x54]
call fcn.004043e0
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.gdi32.dll_DeleteObject]
push esi
call fcn.005253e2
add esp, 4
lea ecx, [esp + 0x38]
mov byte [esp + 0x6c], 0
mov dword [esp + 0x38], vtable.CGdiObject.0
call fcn.00528977
lea ecx, [esp + 0x50]
mov dword [esp + 0x6c], 0xffffffff
call fcn.005286a1
jmp 0x490f6c
push esi
call fcn.005253e2
add esp, 4
lea ecx, [esp + 0x38]
mov byte [esp + 0x6c], 0
mov dword [esp + 0x38], vtable.CGdiObject.0
call fcn.00528977
lea ecx, [esp + 0x50]
mov dword [esp + 0x6c], 0xffffffff
call fcn.005286a1
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18