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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52e639
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x53a090]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x53a090]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], eax
call fcn.004ab480
mov ecx, dword [edi + 0xba0]
mov esi, dword [edi + 0xba4]
sub esi, ecx
sar esi, 4
cmp esi, 1
ja 0x4ab614
xor edx, edx
test esi, esi
je 0x4ab607
mov edi, edi
mov eax, dword [ecx + 8]
cmp eax, dword [ecx]
jne 0x4ab614
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 4]
jne 0x4ab614
inc edx
add ecx, 0x10
cmp edx, esi
jb 0x4ab5f0
cmp byte [edi + 0x80a], 0
jne 0x4ab614
xor al, al
jmp 0x4ab616
mov al, 1
mov ecx, dword [edi + 0xc30]
mov byte [esp + 0x17], al
mov dword [esp + 0x34], ecx
mov dword [esp + 0x64], ecx
mov byte [esp + 0x68], al
test al, al
je 0x4ab638
add ecx, 0x4c
call fcn.004c6850
mov dword [esp + 0x168], 0
xor ebx, ebx
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ecx
mov byte [esp + 0x168], 1
mov eax, dword [edi + 0xba4]
sub eax, dword [edi + 0xba0]
mov dword [esp + 0x38], ecx
sar eax, 4
test eax, eax
je 0x4ab7bb
xor edx, edx
mov dword [esp + 0x20], edx
mov edi, edi
mov eax, dword [edi + 0xba0]
add eax, edx
lea edi, [esp + 0x4c]
cmp edi, esi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x4c], eax
jae 0x4ab726
lea edi, [esp + 0x4c]
cmp ebx, edi
mov edi, dword [esp + 0x18]
ja 0x4ab726
lea eax, [esp + 0x4c]
sub eax, ebx
sar eax, 2
mov dword [esp + 0x28], eax
cmp esi, ecx
jne 0x4ab71d
mov eax, ecx
sub eax, esi
sar eax, 2
cmp eax, 1
jae 0x4ab719
sub esi, ebx
sar esi, 2
mov eax, 0x3fffffff
sub eax, esi
cmp eax, 1
jb 0x4ab870
sub ecx, ebx
sar ecx, 2
mov edx, ecx
shr edx, 1
mov eax, 0x3fffffff
sub eax, edx
inc esi
cmp eax, ecx
jae 0x4ab6f7
xor ecx, ecx
jmp 0x4ab6f9
add ecx, edx
cmp ecx, esi
jae 0x4ab6ff
mov ecx, esi
push ecx
lea ecx, [esp + 0x44]
call fcn.00487cb0
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
test esi, esi
je 0x4ab790
mov eax, dword [ebx + eax*4]
jmp 0x4ab78e
cmp esi, ecx
jne 0x4ab78a
mov eax, ecx
sub eax, esi
sar eax, 2
cmp eax, 1
jae 0x4ab786
sub esi, ebx
sar esi, 2
mov eax, 0x3fffffff
sub eax, esi
cmp eax, 1
jb 0x4ab870
sub ecx, ebx
sar ecx, 2
mov edx, ecx
shr edx, 1
mov eax, 0x3fffffff
sub eax, edx
inc esi
cmp eax, ecx
jae 0x4ab764
xor ecx, ecx
jmp 0x4ab766
add ecx, edx
cmp ecx, esi
jae 0x4ab76c
mov ecx, esi
push ecx
lea ecx, [esp + 0x44]
call fcn.00487cb0
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
test esi, esi
je 0x4ab790
mov dword [esi], eax
mov eax, dword [edi + 0xba4]
sub eax, dword [edi + 0xba0]
inc dword [esp + 0x38]
add esi, 4
add edx, 0x10
sar eax, 4
mov dword [esp + 0x44], esi
mov dword [esp + 0x20], edx
cmp dword [esp + 0x38], eax
jb 0x4ab680
mov eax, esi
sub eax, ebx
sar eax, 2
push 0x4ab530
push eax
mov edx, esi
mov ecx, ebx
call fcn.004bc160
add esp, 8
mov dword [esp + 0x28], esi
cmp esi, ebx
je 0x4abb98
mov ebx, dword [esi - 4]
add esi, 0xfffffffc
mov edx, dword [ebx + 8]
mov eax, dword [ebx]
lea ecx, [ebx + 8]
mov dword [esp + 0x38], ebx
cmp edx, eax
jne 0x4ab7fc
mov eax, dword [ecx + 4]
cmp eax, dword [ebx + 4]
setl al
test al, al
mov eax, ebx
jne 0x4ab807
mov eax, ecx
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
mov eax, dword [ebx]
mov dword [esp + 0x28], edi
cmp edx, eax
jne 0x4ab820
mov eax, dword [ecx + 4]
cmp eax, dword [ebx + 4]
setl al
test al, al
jne 0x4ab829
mov ecx, ebx
push dword [esp + 0x28]
mov eax, dword [ecx + 4]
push dword [ecx]
mov edi, dword [esp + 0x20]
mov ecx, edi
mov dword [esp + 0x2c], eax
call fcn.004a0b30
test al, al
jne 0x4abb88
mov ecx, dword [ebx + 8]
mov edx, dword [ebx]
lea eax, [ebx + 8]
cmp ecx, edx
jne 0x4ab85e
mov eax, dword [eax + 4]
cmp eax, dword [ebx + 4]
lea eax, [ebx + 8]
setl byte [esp + 0x1f]
cmp byte [esp + 0x1f], 0
je 0x4ab87a
mov dword [esp + 0x28], eax
jmp 0x4ab880
push 0x43c218
call fcn.005290d2
mov eax, ebx
mov dword [esp + 0x28], ebx
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
cmp ecx, edx
jne 0x4ab931
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 4]
jne 0x4ab927
cmp byte [edi + 0x80a], 0
je 0x4ab9a5
mov eax, dword [edi + 0xc30]
add eax, 4
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jge 0x4ab9a5
mov edi, dword [edi + 0xc30]
add edi, 4
push ecx
mov ebx, dword [edi]
push edi
call dword [ebx + 0x14]
push eax
push edi
call dword [ebx + 0x54]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
cmp ecx, eax
jge 0x4ab9a1
mov ebx, dword [edi + 0xc30]
push ecx
mov ecx, ebx
call fcn.004beeb0
test eax, eax
jle 0x4ab910
push eax
push dword [esp + 0x24]
mov ecx, ebx
call fcn.004bfbf0
mov ebx, dword [esp + 0x38]
mov dword [ebx + 0xc], 0
mov dword [ebx + 4], 0
jmp 0x4ab9a5
cmp ecx, edx
jne 0x4ab931
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 4]
setg al
test al, al
je 0x4ab93e
mov eax, ecx
sub eax, edx
jmp 0x4ab942
mov eax, edx
sub eax, ecx
test eax, eax
je 0x4ab985
cmp ecx, edx
jne 0x4ab950
mov eax, dword [ebx + 0xc]
cmp eax, dword [ebx + 4]
setg al
test al, al
je 0x4ab95b
sub ecx, edx
jmp 0x4ab961
mov eax, ecx
mov ecx, edx
sub ecx, eax
test ecx, ecx
jle 0x4ab975
push ecx
push dword [esp + 0x24]
mov ecx, dword [edi + 0xc30]
call fcn.004bfbf0
mov dword [ebx + 0xc], 0
mov dword [ebx + 4], 0
jmp 0x4ab9a5
cmp edx, ecx
jne 0x4ab9a5
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
cmp eax, ecx
jle 0x4ab995
mov eax, ecx
test eax, eax
js 0x4ab9a5
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], eax
jmp 0x4ab9a5
mov ebx, dword [esp + 0x38]
mov eax, dword [ebx + 4]
mov dword [esp + 0x28], eax
test eax, eax
je 0x4aba42
push 0x20
push eax
lea ecx, [esp + 0x138]
mov dword [esp + 0x14c], 0xf
mov dword [esp + 0x148], 0
mov byte [esp + 0x138], 0
call fcn.00490660
mov byte [esp + 0x168], 2
cmp dword [esp + 0x144], 0x10
mov eax, dword [esp + 0x130]
jae 0x4aba01
lea eax, [esp + 0x130]
push dword [esp + 0x28]
mov ecx, dword [edi + 0xc30]
push eax
push dword [esp + 0x28]
call fcn.004bfd90
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x28]
mov byte [esp + 0x168], 1
cmp dword [esp + 0x144], 0x10
mov dword [esp + 0x20], eax
jb 0x4aba46
push dword [esp + 0x130]
call fcn.00510ee0
add esp, 4
mov eax, dword [esp + 0x20]
push dword [ebp + 0xc]
mov ecx, dword [edi + 0xc30]
push dword [esp + 0x34]
push eax
call fcn.004bfd90
test al, al
je 0x4aba79
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0xc]
add eax, ecx
mov dword [ebx], eax
mov dword [ebx + 4], 0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 4], 0
cmp dword [edi + 0x7c0], 0
je 0x4abb88
push ecx
push edi
lea ecx, [esp + 0x58]
call fcn.00489d90
mov byte [esp + 0x168], 3
mov edi, dword [esp + 0x50]
test edi, edi
je 0x4abb70
mov ebx, dword [esp + 0x18]
push dword [esp + 0x20]
mov eax, dword [ebx + 0xc30]
add eax, 4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
push eax
push edi
mov ecx, ebx
call fcn.004a2a50
test al, al
je 0x4abb70
mov ecx, ebx
call fcn.004ab1b0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x38]
mov eax, dword [ebx]
lea ecx, [esp + 0x54]
push ecx
mov ecx, ebx
call dword [eax + 0x2c]
fld dword [esp + 0x54]
call fcn.0052af70
fld dword [esp + 0x58]
mov dword [esp + 0x28], eax
call fcn.0052af70
fld dword [esp + 0x5c]
mov dword [esp + 0x38], eax
call fcn.0052af70
fld dword [esp + 0x60]
mov ebx, eax
call fcn.0052af70
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x154], eax
push 0
mov dword [esp + 0x154], ebx
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x14c]
push eax
push dword [ebx + 8]
mov dword [esp + 0x154], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x158], ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4abb70
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov byte [esp + 0x168], 1
test edi, edi
je 0x4abb84
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x28], esi
cmp esi, ebx
jne 0x4ab7e0
test ebx, ebx
je 0x4abba5
push ebx
call fcn.00510ee0
add esp, 4
cmp byte [esp + 0x17], 0
mov dword [esp + 0x168], 0xffffffff
je 0x4abc29
mov ebx, dword [esp + 0x34]
lea ecx, [ebx + 0x4c]
call fcn.004c6560
dec dword [ebx + 0x5c]
jne 0x4abc29
mov ecx, dword [ebx + 0x58]
mov edx, dword [ebx + 0x4c]
lea eax, [ecx + ecx*4]
mov dword [esp + 0x34], edx
cmp dword [edx + eax*4], 2
je 0x4abc1e
lea eax, [ecx + 1]
mov dword [ebx + 0x58], eax
lea esi, [eax + eax*4]
push dword [edx + esi*4 + 8]
call fcn.00510eb1
mov eax, dword [esp + 0x38]
add esp, 4
mov dword [eax + esi*4 + 8], 0
mov dword [eax + esi*4 + 4], 0
mov dword [eax + esi*4], 2
mov dword [eax + esi*4 + 0xc], 0
mov byte [eax + esi*4 + 0x10], 1
mov ecx, dword [ebx + 0x58]
mov dword [ebx + 0x54], ecx
mov eax, dword [ebx + 0x4c]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 + 0x10], 0
cmp dword [edi + 0x7c0], 0
je 0x4abc39
mov ecx, edi
call fcn.004ab1b0
mov ecx, edi
call fcn.004a04b0
cmp dword [edi + 0xaf8], 0
jl 0x4abc57
mov edx, dword [edi + 0xaf8]
mov ecx, dword [edi + 0xafc]
jmp 0x4abc6c
mov ecx, dword [edi + 0xbc8]
mov eax, dword [edi + 0xba0]
add ecx, ecx
mov edx, dword [eax + ecx*8]
mov ecx, dword [eax + ecx*8 + 4]
sub esp, 0x10
mov eax, esp
push 7
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.004a1ef0
push dword [eax + 4]
mov ecx, edi
push dword [eax]
call fcn.004a2740
cmp byte [edi + 0x808], 0
je 0x4abcb6
mov eax, dword [edi]
push 1
mov ecx, edi
mov word [edi + 0xaa4], 0x101
call dword [eax + 0xa4]
jmp 0x4abcbf
mov word [edi + 0xaa4], 0
mov ecx, edi
call fcn.004a28b0
mov eax, dword [edi + 0x82c]
test eax, eax
je 0x4abcf9
mov edx, dword [ebp + 0xc]
cmp eax, 2
jne 0x4abd3a
xor eax, eax
test edx, edx
je 0x4abd3a
mov edi, edi
mov ecx, dword [esp + 0x30]
movsx ecx, byte [eax + ecx]
cmp ecx, 0x20
je 0x4abcf2
cmp ecx, 9
jne 0x4abcf9
inc eax
cmp eax, edx
jb 0x4abce0
jmp 0x4abd3a
mov ecx, dword [edi + 0xbc8]
mov eax, dword [edi + 0xba0]
add ecx, ecx
push dword [eax + ecx*8 + 4]
push dword [eax + ecx*8]
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call fcn.0049eb10
fild dword [edi + 0x810]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fadd dword [esp + 0x38]
call fcn.0052af70
mov edx, dword [ebp + 0xc]
mov dword [edi + 0xb0c], eax
cmp byte [ebp + 0x10], 0
je 0x4abd81
push 0x58
lea eax, [esp + 0x74]
push 0
push eax
mov dword [esp + 0x78], 0
call fcn.00518020
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x80], 0x7d1
movzx eax, byte [ebx]
movzx ecx, byte [ebx + 1]
shl eax, 8
or ecx, eax
mov dword [esp + 0x88], ecx
lea esi, [esp + 0x78]
jmp 0x4abe27
mov ebx, dword [esp + 0x30]
test edx, edx
je 0x4abe3e
movzx esi, byte [ebx]
cmp esi, 0xc0
jl 0x4abdf2
cmp edx, 1
je 0x4abdf2
cmp esi, 0xe0
jge 0x4abdb9
movzx ecx, byte [ebx + 1]
mov eax, ecx
and eax, 0xc0
cmp al, 0x80
jne 0x4abdf2
and esi, 0x1f
jmp 0x4abdea
cmp esi, 0xf0
jge 0x4abdf2
movzx edx, byte [ebx + 1]
movzx ecx, byte [ebx + 2]
mov eax, edx
and eax, 0xc0
cmp al, 0x80
jne 0x4abdf2
mov eax, ecx
and eax, 0xc0
cmp al, 0x80
jne 0x4abdf2
and esi, 0xf
shl esi, 6
and edx, 0x3f
or esi, edx
and ecx, 0x3f
shl esi, 6
or esi, ecx
push 0x58
lea eax, [esp + 0xd4]
push 0
push eax
mov dword [esp + 0xd8], 0
call fcn.00518020
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe0], 0x7d1
lea esi, [esp + 0xd8]
mov eax, dword [edi]
sub esp, 0x50
mov edi, esp
mov ecx, 0x17
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x74]
mov ecx, edi
call dword [eax + 0x70]
cmp byte [edi + 0xbf4], 0
je 0x4abe56
push ebx
push 0
push 0x87a
mov ecx, edi
call fcn.004adeb0
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret 0xc