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

Disassembly:
sub esp, 0x8c
mov edx, dword [esp + 0x90]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp edx, edi
mov dword [esp + 0x10], ecx
je 0x48b38e
cmp dword [esp + 0xa4], edi
je 0x48b38e
mov ecx, dword [esp + 0xa8]
cmp ecx, edi
je 0x48b38e
mov ebp, dword [esp + 0xac]
cmp bp, di
jl 0x48b38e
fld dword [esp + 0xb0]
fcomp dword [0x63b1d8]
fnstsw ax
test ah, 1
jne 0x48b38e
fld dword [esp + 0xb0]
fcomp dword [0x63b1d4]
fnstsw ax
test ah, 0x41
je 0x48b38e
cmp dword [esp + 0xb8], edi
je 0x48b38e
cmp dword [ecx], edi
je 0x48b38e
lea eax, [esp + 0x84]
push eax
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
jne 0x48aeb7
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x8c
ret 0x20
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x5c], eax
push 4
lea edx, [eax + eax*2]
push 0x1000
mov dword [esp + 0x60], 0x28
mov dword [esp + 0x68], ecx
lea eax, [edx*8 + 0x1f]
mov word [esp + 0x6c], 1
cdq
and edx, 0x1f
mov word [esp + 0x6e], 0x18
add eax, edx
mov dword [esp + 0x70], edi
mov ebx, eax
mov dword [esp + 0x74], edi
sar ebx, 5
shl ebx, 2
mov eax, ebx
mov dword [esp + 0x78], edi
imul eax, ecx
push eax
push edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edi
mov byte [esp + 0x90], 8
mov byte [esp + 0x91], 8
mov byte [esp + 0x92], 8
mov byte [esp + 0x93], 0
mov dword [esp + 0x60], ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
cmp esi, edi
jne 0x48af6c
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x8c
ret 0x20
push edi
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
test edi, edi
jne 0x48af98
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x8c
ret 0x20
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0x58]
push 0
push eax
push esi
push ecx
push 0
push edx
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0x60]
fld dword [esp + 0xb0]
mov edi, dword [ecx]
mov edx, dword [ecx + 4]
fsubr qword [0x63b1e0]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 0
sub eax, edx
fild qword [esp + 0x30]
dec eax
mov dword [esp + 0x20], 0
fmul st(1)
lea eax, [eax + eax*2]
mov dword [esp + 0x24], eax
call fcn.0048b770
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], 0
mov dword [esp + 0x54], eax
mov edx, dword [ecx]
mov dword [esp + 0x30], edx
fild qword [esp + 0x30]
fmul st(1)
call fcn.0048b770
push 4
push 0x1000
shl edi, 4
push edi
push 0
fstp st(0)
mov dword [esp + 0x58], eax
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x28], ecx
jne 0x48b072
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x8c
ret 0x20
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x14], 0
cmp dword [eax], 0
jbe 0x48b0fb
add ecx, 6
add eax, 0x14
mov edi, dword [eax - 4]
mov edx, dword [eax - 8]
imul edi, ebx
lea edx, [edx + edx*2]
add eax, 0xc
sub edx, edi
mov edi, dword [esp + 0xa8]
mov dword [ecx - 6], edx
add ecx, 0x10
movzx dx, byte [eax - 0xc]
sub edx, ebp
mov word [ecx - 0x12], dx
movzx dx, byte [eax - 0xc]
add edx, ebp
mov word [ecx - 0x10], dx
movzx dx, byte [eax - 0xb]
sub edx, ebp
mov word [ecx - 0xe], dx
movzx dx, byte [eax - 0xb]
add edx, ebp
mov word [ecx - 0xc], dx
movzx dx, byte [eax - 0xa]
sub edx, ebp
mov word [ecx - 0xa], dx
movzx dx, byte [eax - 0xa]
add edx, ebp
mov word [ecx - 8], dx
mov edx, dword [esp + 0x14]
inc edx
cmp edx, dword [edi]
mov dword [esp + 0x14], edx
jb 0x48b08c
mov eax, edi
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
mov edx, dword [eax]
dec edi
mov ecx, dword [ecx]
mov dword [esp + 0x2c], edi
cmp edx, ecx
jbe 0x48b114
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + 8]
cmp ecx, edx
jle 0x48b354
mov eax, ecx
mov edi, dword [esp + 0x24]
imul eax, ebx
mov edx, ebx
add edi, eax
neg edx
mov ecx, eax
mov dword [esp + 0x4c], edx
neg edi
jmp 0x48b144
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0xb8]
cmp eax, ebp
jae 0x48b354
mov ebp, dword [esp + 0x1c]
add ecx, edx
mov edx, dword [esp + 0x24]
dec ebp
add edi, ebx
mov dword [esp + 0x1c], ebp
lea eax, [ecx + edx]
mov dword [esp + 0x3c], ecx
cmp ecx, eax
mov dword [esp + 0x44], edi
mov ebx, ecx
mov dword [esp + 0x30], eax
jg 0x48b340
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x18]
lea edx, [eax + ecx*8]
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
jbe 0x48b232
mov eax, dword [esp + 0x28]
lea ecx, [eax + 6]
mov eax, dword [ecx - 6]
xor edx, edx
add eax, ebx
mov dl, byte [esi + eax + 2]
mov edi, edx
xor edx, edx
mov dl, byte [esi + eax + 1]
mov ebp, edx
xor edx, edx
mov dl, byte [eax + esi]
mov eax, edx
movsx edx, word [ecx - 2]
cmp edi, edx
jl 0x48b1fb
movsx edx, word [ecx]
cmp edi, edx
jg 0x48b1fb
movsx edx, word [ecx + 2]
cmp ebp, edx
jl 0x48b1fb
movsx edx, word [ecx + 4]
cmp ebp, edx
jg 0x48b1fb
movsx edx, word [ecx + 6]
cmp eax, edx
jl 0x48b1fb
movsx edx, word [ecx + 8]
cmp eax, edx
jle 0x48b20c
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x48]
inc eax
cmp eax, edx
mov dword [esp + 0x14], eax
ja 0x48b222
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
inc eax
add ecx, 0x10
cmp eax, edx
mov dword [esp + 0x10], eax
jb 0x48b1b0
jmp 0x48b232
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jb 0x48b329
mov ecx, dword [esp + 0xa8]
mov edx, dword [ecx]
cmp eax, edx
mov dword [esp + 0x40], edx
jae 0x48b2d0
mov edx, dword [esp + 0x28]
shl eax, 4
lea ecx, [eax + edx + 6]
mov eax, dword [ecx - 6]
xor edx, edx
add eax, ebx
mov dl, byte [esi + eax + 2]
mov edi, edx
xor edx, edx
mov dl, byte [esi + eax + 1]
mov ebp, edx
xor edx, edx
mov dl, byte [eax + esi]
mov eax, edx
movsx edx, word [ecx - 2]
cmp edi, edx
jl 0x48b29d
movsx edx, word [ecx]
cmp edi, edx
jg 0x48b29d
movsx edx, word [ecx + 2]
cmp ebp, edx
jl 0x48b29d
movsx edx, word [ecx + 4]
cmp ebp, edx
jg 0x48b29d
movsx edx, word [ecx + 6]
cmp eax, edx
jl 0x48b29d
movsx edx, word [ecx + 8]
cmp eax, edx
jle 0x48b2ae
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x54]
inc eax
cmp eax, edx
mov dword [esp + 0x14], eax
ja 0x48b2c4
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
inc eax
add ecx, 0x10
cmp eax, edx
mov dword [esp + 0x10], eax
jb 0x48b252
jmp 0x48b2cc
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
cmp eax, edx
jb 0x48b329
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
lea ecx, [edi + eax]
mov eax, 0x55555556
add ecx, ebx
imul ecx
mov eax, dword [esp + 0xa4]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [eax]
add edx, ecx
mov ecx, dword [esp + 0x38]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x2c]
sub edx, ebp
add edx, eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 4], edx
add ecx, 8
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0xb8]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jae 0x48b33c
mov eax, dword [esp + 0x30]
add ebx, 3
cmp ebx, eax
jle 0x48b193
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0x1c]
cmp eax, dword [edx + 8]
jg 0x48b13c
mov eax, dword [esp + 0xbc]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
push edx
mov dword [eax], ecx
call edi
push 0x8000
push 0
push esi
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8c
ret 0x20
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8c
ret 0x20