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

Disassembly:
push 0xffffffffffffffff
push 0x59e3b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [esp + 0x6c]
push edi
lea eax, [ecx + 0xb0]
mov edx, eax
mov edi, dword [eax]
mov esi, dword [edx]
mov dword [esp + 0x50], edi
mov dword [esp + 0x40], esi
mov ebx, dword [edx + 4]
mov dword [esp + 0x44], ebx
mov esi, dword [edx + 8]
mov dword [esp + 0x48], esi
mov edx, dword [edx + 0xc]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x54], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
call fcn.0056f9a3
mov ecx, dword [ebp + 0x58]
mov esi, eax
and esi, 0x80
xor edx, edx
test ecx, ecx
jle 0x4b0a77
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cmp ebx, dword [eax]
jne 0x4b0a51
cmp esi, dword [eax + 8]
jne 0x4b0a51
cmp edi, dword [eax + 4]
je 0x4b0a63
mov eax, dword [esp + 0x14]
inc edx
add eax, 4
cmp edx, ecx
mov dword [esp + 0x14], eax
jl 0x4b0a3d
jmp 0x4b0a77
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x44]
add ecx, edx
mov edx, dword [esp + 0x74]
cmp edx, ecx
jge 0x4b0e59
xor eax, eax
mov dword [esp + 0x18], vtable.CBitmap.0
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x10]
lea ecx, [esp + 0x20]
push edx
push ecx
xor ecx, ecx
cmp esi, eax
lea edx, [esp + 0x38]
mov dword [esp + 0x70], eax
setne cl
push edx
push ebx
inc ecx
push eax
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.004b0630
test eax, eax
jne 0x4b0adb
mov dword [esp + 0x18], vtable.CGdiObject.0
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], 1
call fcn.0057463f
xor eax, eax
jmp 0x4b0e59
push 0xa0
call fcn.0056bc5e
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
test ebx, ebx
mov byte [esp + 0x68], 2
je 0x4b0b10
push 0x4b0ea0
push 0x4b0e70
push 4
lea ecx, [ebx + 0x10]
push 0x24
push ecx
call fcn.00427b27
jmp 0x4b0b12
xor ebx, ebx
mov edx, dword [esp + 0x44]
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], esi
mov dword [ebx], edx
mov dword [ebx + 4], edi
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x68], 0
lea edx, [ecx + eax]
cmp dword [esp + 0x74], edx
jge 0x4b0b8b
mov edx, dword [esp + 0x74]
mov edi, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], edx
mov dword [esp + 0x44], eax
mov eax, ecx
mov ecx, dword [esp + 0x2c]
add eax, edi
mov dword [ebx + 0xc], 1
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x3c]
sub eax, edx
push edi
push eax
mov dword [esp + 0x58], ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
sub ecx, edi
mov edi, dword [esp + 0x50]
sub ecx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
lea edx, [ebx + 0x44]
mov dword [ebx + 0x44], eax
mov eax, dword [esp + 0x24]
mov dword [edx + 4], eax
mov ecx, dword [esp + 0x28]
mov dword [edx + 8], ecx
mov eax, dword [esp + 0x2c]
mov dword [edx + 0xc], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push ecx
lea eax, [ebx + 0x34]
push edx
push eax
lea ecx, [esp + 0x24]
push 1
push ecx
mov ecx, ebp
call fcn.004b0040
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push edx
mov edx, esi
neg edx
sbb edx, edx
lea ecx, [esp + 0x34]
push eax
and edx, 3
push ecx
mov ecx, dword [esp + 0x7c]
push edi
add edx, 7
push 1
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
mov ecx, ebp
call fcn.004b0630
test eax, eax
je 0x4b0c31
mov eax, dword [esp + 0x20]
lea edx, [ebx + 0x20]
mov dword [ebx + 0x20], eax
mov ecx, dword [esp + 0x24]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x28]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x10]
push edx
lea ecx, [ebx + 0x10]
push eax
push ecx
lea edx, [esp + 0x24]
push 0
push edx
mov ecx, ebp
call fcn.004b0040
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
mov eax, esi
neg eax
sbb eax, eax
lea edx, [esp + 0x34]
push ecx
and eax, 3
push edx
mov edx, dword [esp + 0x7c]
push edi
add eax, 8
push 1
lea ecx, [esp + 0x2c]
push eax
push ecx
push edx
mov ecx, ebp
call fcn.004b0630
test eax, eax
je 0x4b0ca0
mov ecx, dword [esp + 0x20]
lea eax, [ebx + 0x68]
mov dword [ebx + 0x68], ecx
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x10]
push eax
lea edx, [ebx + 0x58]
push ecx
push edx
lea eax, [esp + 0x24]
push 2
push eax
mov ecx, ebp
call fcn.004b0040
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
push edi
xor edi, edi
neg esi
mov edx, dword [esp + 0x80]
push edi
sbb esi, esi
lea ecx, [esp + 0x2c]
and esi, 3
add esi, 9
push esi
push ecx
push edx
mov ecx, ebp
call fcn.004b0630
test eax, eax
je 0x4b0d17
mov ecx, dword [esp + 0x20]
lea eax, [ebx + 0x8c]
mov dword [ebx + 0x8c], ecx
mov edx, dword [esp + 0x24]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x10]
push eax
lea edx, [ebx + 0x7c]
push ecx
push edx
lea eax, [esp + 0x24]
push 3
push eax
mov ecx, ebp
call fcn.004b0040
cmp dword [ebx + 0xc], edi
jne 0x4b0e3e
mov ecx, dword [ebp + 0x58]
mov eax, dword [ebp + 0x54]
mov esi, ecx
mov dword [esp + 0x74], esi
inc esi
cmp esi, edi
jne 0x4b0d4c
cmp eax, edi
je 0x4b0d41
push eax
call fcn.0056bc87
add esp, 4
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x58], edi
jmp 0x4b0e34
cmp eax, edi
jne 0x4b0d75
lea ecx, [esi*4]
push ecx
call fcn.0056bc5e
add esp, 4
mov dword [ebp + 0x54], eax
push esi
push eax
call fcn.004ef3b0
mov dword [ebp + 0x5c], esi
mov dword [ebp + 0x58], esi
jmp 0x4b0e34
mov edi, dword [ebp + 0x5c]
cmp esi, edi
jg 0x4b0d96
cmp esi, ecx
jle 0x4b0d8e
mov edx, esi
lea eax, [eax + ecx*4]
sub edx, ecx
push edx
push eax
call fcn.004ef3b0
mov dword [ebp + 0x58], esi
jmp 0x4b0e34
mov eax, dword [ebp + 0x60]
test eax, eax
jne 0x4b0dc0
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4b0db4
mov eax, 4
jmp 0x4b0dc0
cmp eax, 0x400
jle 0x4b0dc0
mov eax, 0x400
add eax, edi
cmp esi, eax
mov dword [esp + 0x70], eax
jl 0x4b0dce
mov dword [esp + 0x70], esi
mov ecx, dword [esp + 0x70]
lea edx, [ecx*4]
push edx
call fcn.0056bc5e
mov ecx, dword [ebp + 0x58]
mov esi, dword [ebp + 0x54]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x78]
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x58]
lea esi, [edx + 1]
mov edx, esi
mov dword [esp + 0x14], eax
sub edx, ecx
lea eax, [eax + ecx*4]
push edx
push eax
call fcn.004ef3b0
mov eax, dword [ebp + 0x54]
push eax
call fcn.0056bc87
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x74]
add esp, 4
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x58], esi
mov dword [ebp + 0x5c], edx
mov eax, dword [ebp + 0x54]
mov ecx, dword [esp + 0x74]
mov dword [eax + ecx*4], ebx
mov dword [esp + 0x18], vtable.CGdiObject.0
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], 3
call fcn.0057463f
mov eax, ebx
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 0xc