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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a1412
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x34], esi
mov byte [esp + 0xd], 0
mov eax, dword [esi]
call dword [eax + 0x58]
test eax, eax
jne 0x4af2f4
mov cl, byte [ebp + 0x14]
test cl, cl
je 0x4af2f4
mov byte [esp + 0xd], 1
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x4afbff
test eax, eax
jne 0x4af30f
mov al, byte [esp + 0xd]
test al, al
je 0x4afbff
mov al, byte [esi + 0x45]
mov ebx, dword [ebp + 0xc]
test al, al
jne 0x4af361
mov al, byte [esi + 0x34]
test al, al
je 0x4af336
lea ecx, [esi + 0x54]
push ebx
push ecx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
je 0x4af361
mov al, byte [esi + 0x34]
test al, al
jne 0x4af35d
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x54]
mov edi, dword [ebx]
sub edx, eax
mov eax, dword [ebx + 8]
sub eax, edi
cmp edx, eax
jne 0x4af361
mov ecx, dword [esi + 0x60]
mov eax, dword [esi + 0x58]
mov edx, dword [ebx + 0xc]
mov edi, dword [ebx + 4]
sub ecx, eax
sub edx, edi
cmp ecx, edx
jne 0x4af361
xor eax, eax
jmp 0x4af366
mov eax, 1
mov byte [esi + 0x45], al
test al, al
mov eax, dword [ebp + 0x18]
jne 0x4af382
test eax, eax
je 0x4af382
mov al, byte [eax + 0x24]
mov cl, byte [esi + 0x44]
cmp al, cl
je 0x4af382
mov byte [esi + 0x45], 1
mov al, byte [esi + 0x45]
test al, al
jne 0x4af416
lea edi, [esi + 0x54]
push ebx
push edi
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x4af40b
mov eax, dword [ebx]
mov ecx, dword [edi]
sub eax, ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x58]
sub ecx, eax
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax]
cmp ecx, eax
je 0x4af3f3
fild dword [esp + 0x10]
fild dword [esp + 0x18]
mov eax, dword [ecx + 8]
fld st(1)
fadd qword [eax + 0x20]
fstp qword [eax + 0x20]
fld st(0)
fadd qword [eax + 0x28]
fstp qword [eax + 0x28]
fld st(1)
fadd qword [eax + 0x30]
fstp qword [eax + 0x30]
fld st(0)
fadd qword [eax + 0x38]
fstp qword [eax + 0x38]
mov ecx, dword [ecx]
mov eax, dword [esi + 0x4c]
cmp ecx, eax
jne 0x4af3c3
fstp st(0)
fstp st(0)
mov edx, ebx
mov eax, dword [edx]
mov dword [edi], eax
mov ecx, dword [edx + 4]
mov dword [edi + 4], ecx
mov eax, dword [edx + 8]
mov dword [edi + 8], eax
mov ecx, dword [edx + 0xc]
mov dword [edi + 0xc], ecx
mov al, byte [esi + 0x45]
test al, al
je 0x4afaf0
mov byte [esi + 0x45], 0
mov eax, dword [esi + 0x4c]
mov edi, dword [eax]
cmp edi, eax
je 0x4af43a
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4af431
push 1
call fcn.004afdb0
mov edi, dword [edi]
mov eax, dword [esi + 0x4c]
cmp edi, eax
jne 0x4af423
lea ecx, [esi + 0x48]
call fcn.004afdd0
mov eax, ebx
lea edx, [esi + 0x54]
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4af4b3
mov cl, byte [eax + 0x24]
test cl, cl
je 0x4af4b3
push 0xf8
call fcn.00570bbc
mov edi, eax
add esp, 4
mov dword [esp + 0x58], edi
test edi, edi
mov dword [esp + 0xe0], 0
je 0x4af49c
mov ecx, edi
call fcn.0050b650
mov dword [edi], vtable.CBendTextSurface.0
jmp 0x4af49e
xor edi, edi
mov dword [esp + 0xe0], 0xffffffff
mov dword [esp + 0x14], edi
mov byte [esi + 0x44], 1
jmp 0x4af4f3
push 0xf8
call fcn.00570bbc
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov dword [esp + 0xe0], 1
je 0x4af4dc
mov ecx, eax
call fcn.0050b650
jmp 0x4af4de
xor eax, eax
mov edi, eax
mov dword [esp + 0xe0], 0xffffffff
mov dword [esp + 0x14], edi
mov byte [esi + 0x44], 0
fild dword [ebx]
lea ecx, [esp + 0x78]
push ecx
mov ecx, edi
fstp qword [esp + 0x7c]
fild dword [ebx + 4]
fstp qword [esp + 0x84]
fild dword [ebx + 8]
fstp qword [esp + 0x8c]
fild dword [ebx + 0xc]
fstp qword [esp + 0x94]
call fcn.0050bf90
mov edx, ebx
mov eax, dword [edx]
mov dword [esp + 0x5c], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x60], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x64], eax
mov eax, dword [0x5bebfc]
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x5c]
neg eax
push eax
push eax
push edx
mov dword [esp + 0x74], ecx
call dword [sym.imp.USER32.dll_InflateRect]
fild dword [esp + 0x5c]
push 1
lea eax, [esp + 0x7c]
push 0
push eax
fstp qword [esp + 0x84]
fild dword [esp + 0x6c]
mov ecx, edi
fstp qword [esp + 0x8c]
fild dword [esp + 0x70]
fstp qword [esp + 0x94]
fild dword [esp + 0x74]
fstp qword [esp + 0x9c]
call fcn.0050bb40
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4af5b4
mov cl, byte [esi + 0x34]
test cl, cl
je 0x4af5b4
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4af5ac
mov dl, byte [ecx + 0x24]
test dl, dl
jne 0x4af5b4
push eax
mov ecx, edi
call fcn.0050bd40
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
test ecx, ecx
sete cl
test cl, cl
je 0x4af5fb
call fcn.00443eb0
mov eax, dword [eax + 0x40]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x4af5ec
call fcn.00458d90
mov dword [esp + 0x20], eax
call fcn.00443eb0
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov dword [eax + 0x40], ecx
je 0x4af5f8
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0057a95b
jmp 0x4af5fb
mov eax, dword [ebp + 8]
mov dword [esp + 0x40], eax
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
mov edx, dword [esi + 0x40]
sub eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], 0
fld qword [edx + 0x18]
fild dword [esp + 0x10]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0x40590000
mov dword [esp + 0x24], 0
fmulp st(1)
mov dword [esp + 0x28], 0x40590000
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 1
fmul qword [0x5b56f8]
fstp qword [edi + 0x88]
mov ecx, dword [esi + 0x40]
mov eax, dword [ecx + 0x34]
mov ecx, esi
mov dword [edi + 0x70], eax
mov edx, dword [esi + 0x24]
mov eax, dword [esi]
mov ebx, dword [esi + 0x2c]
mov dword [esp + 0x38], edx
call dword [eax + 0x58]
dec eax
cmp ebx, eax
jae 0x4af683
mov eax, dword [esi + 0x2c]
jmp 0x4af68b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x58]
dec eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x40]
mov al, byte [eax + 0x2c]
test al, al
jne 0x4af6a5
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], eax
jmp 0x4af6bd
mov al, byte [esp + 0xd]
test al, al
je 0x4af6bd
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 4
mov al, byte [esp + 0xe]
test al, al
je 0x4af6e6
mov al, byte [esp + 0xf]
test al, al
je 0x4afad9
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov byte [esp + 0xf], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov ecx, edi
call fcn.0050c3e0
test al, al
je 0x4afbff
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
mov ecx, dword [esi + 0x40]
call fcn.00507380
mov eax, dword [esi + 0x40]
mov ebx, dword [eax + 0x20]
cmp ebx, 1
jle 0x4af796
xor edx, edx
xor ecx, ecx
cmp ebx, edx
jle 0x4af734
mov eax, dword [eax + 8]
inc ecx
mov eax, dword [eax + ecx*4 - 4]
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
mov eax, dword [esi + 0x40]
cmp ecx, dword [eax + 0x20]
jl 0x4af71e
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
cmp eax, ecx
mov dword [esp + 0x10], eax
jg 0x4af79a
mov ecx, dword [esi + 0x40]
test esi, esi
mov dword [ecx + 0x30], eax
je 0x4af753
lea eax, [esi + 0x10]
jmp 0x4af755
xor eax, eax
mov ecx, dword [esi + 0x40]
push eax
call fcn.00507350
mov eax, dword [esi + 0x40]
xor ebx, ebx
mov ecx, dword [eax + 0x20]
test ecx, ecx
jle 0x4af785
mov eax, dword [eax + 8]
mov edx, dword [esp + 0x40]
push edx
mov eax, dword [eax + ebx*4]
mov ecx, eax
call fcn.005124a0
mov eax, dword [esi + 0x40]
inc ebx
cmp ebx, dword [eax + 0x20]
jl 0x4af76a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jle 0x4af744
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov ebx, eax
cmp eax, ecx
mov dword [esp + 0x10], ebx
ja 0x4afa0d
mov eax, dword [esi + 0x40]
test esi, esi
mov dword [eax + 0x30], ebx
je 0x4af7bb
lea eax, [esi + 0x10]
jmp 0x4af7bd
xor eax, eax
mov ecx, dword [esi + 0x40]
push eax
call fcn.00507350
mov ecx, dword [esi + 0x40]
cmp dword [ecx + 0x20], 1
jle 0x4af923
call fcn.00507420
test eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x1c], 0
jle 0x4af9fc
mov ecx, edi
call fcn.0050c440
mov eax, dword [esi + 0x40]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0x20]
test edx, edx
jle 0x4af8ee
mov eax, dword [eax + 8]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x14]
mov dword [edi + 0x6c], eax
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov edx, ecx
mov dword [esp + 0x70], ecx
push edx
push eax
mov ecx, edi
mov dword [esp + 0x74], eax
call fcn.0050c6b0
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00512580
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x74], eax
cmp eax, ecx
mov ebx, eax
jge 0x4af8c2
push ebx
mov ecx, esi
call fcn.005123e0
mov edi, eax
mov eax, dword [esp + 0x74]
cmp ebx, eax
je 0x4af85e
mov al, byte [edi + 0x50]
test al, al
jne 0x4af8be
lea edx, [esp + 0x20]
push 1
push edx
mov ecx, edi
call fcn.00511b50
mov eax, dword [esp + 0x20]
mov dword [esp + 0xe0], 2
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4af8a2
mov eax, dword [edi + 0x44]
push 1
add edi, 0x68
push eax
lea ecx, [esp + 0x28]
push edi
push ecx
mov ecx, dword [esp + 0x24]
call fcn.0050cab0
test al, al
je 0x4afa4f
lea ecx, [esp + 0x20]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00575bd5
mov eax, dword [esi + 0x10]
inc ebx
cmp ebx, eax
jl 0x4af845
mov edi, dword [esp + 0x14]
mov ecx, edi
call fcn.0050c770
test al, al
je 0x4afa74
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
inc ecx
mov eax, dword [edx + 0x40]
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax + 0x20]
jl 0x4af807
mov ecx, edi
call fcn.0050c4d0
test al, al
je 0x4afa74
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4af7ec
mov ebx, dword [esp + 0x10]
jmp 0x4af9fc
mov ecx, dword [ecx + 8]
mov dword [esp + 0x1c], 0
mov ecx, dword [ecx]
mov dword [esp + 0x18], ecx
mov eax, dword [ecx + 0x10]
test eax, eax
jle 0x4af9ef
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
call fcn.005123e0
lea ecx, [esp + 0x3c]
mov ebx, eax
push 0
push ecx
mov ecx, ebx
call fcn.00511b50
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xe0], 3
mov eax, dword [edx + 0x10]
dec eax
cmp ecx, eax
je 0x4af996
mov eax, dword [ebx + 4]
cmp eax, 4
je 0x4af985
cmp eax, 8
jne 0x4af996
lea eax, [esp + 0x3c]
lea ecx, [edi + 0x78]
push eax
call fcn.00575d0e
mov byte [edi + 0x74], 1
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4af9bf
mov eax, dword [ebx + 0x44]
push 1
add ebx, 0x68
push eax
lea edx, [esp + 0x44]
push ebx
push edx
mov ecx, edi
call fcn.0050cab0
test al, al
je 0x4afa60
lea ecx, [esp + 0x3c]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00575bd5
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc eax
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x1c], eax
cmp eax, edx
jl 0x4af93f
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esp + 0x30]
je 0x4af9fc
mov ecx, edi
call fcn.0050ca80
mov eax, dword [esp + 0x30]
inc ebx
cmp ebx, eax
mov dword [esp + 0x10], ebx
jbe 0x4af7ac
push 0
mov ecx, edi
call fcn.0050d920
fld qword [esp + 0x24]
fcomp qword [esp + 0x4c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
fnstsw ax
test ah, 0x40
je 0x4afa8e
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x4afbff
fld qword [esp + 0x4c]
fadd st(0), st(0)
fst qword [esp + 0x4c]
jmp 0x4afa9c
mov dword [esp + 0xe0], 0xffffffff
lea ecx, [esp + 0x20]
jmp 0x4afa6f
mov dword [esp + 0xe0], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.00575bd5
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
fld qword [esp + 0x24]
fadd qword [esp + 0x44]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
jmp 0x4afa96
fld qword [esp + 0x24]
fadd qword [esp + 0x4c]
fmul qword [0x5af430]
fstp qword [esp + 0x24]
fld qword [esp + 0x24]
fsub qword [esp + 0x44]
fcomp qword [0x5b7268]
fnstsw ax
test ah, 1
je 0x4afac7
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
mov byte [esp + 0xe], 1
jmp 0x4af6bd
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
mov byte [esp + 0xe], 0
jmp 0x4af6bd
lea eax, [esi + 0x48]
mov ecx, edi
push eax
call fcn.0050c080
test edi, edi
je 0x4afaf0
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov ecx, dword [esi + 0x40]
call fcn.005073c0
mov ecx, dword [ebp + 8]
push 1
call fcn.0057aca4
mov eax, dword [esi + 0x4c]
mov ebx, dword [eax]
cmp ebx, eax
je 0x4afbf7
mov ecx, dword [ebx + 8]
push 0x601d20
push ecx
call fcn.0053cd7f
add esp, 4
mov ecx, eax
call fcn.0053cbff
test eax, eax
je 0x4afbdf
mov eax, dword [ebp + 0x18]
lea esi, [esp + 0x78]
lea edi, [esp + 0xa8]
mov dword [esp + 0xd0], 0
fild dword [eax + 0xc]
mov dword [esp + 0xd4], 0x3ff00000
fstp qword [esp + 0x5c]
fild dword [eax + 0x10]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x98], edx
fstp qword [esp + 0x64]
fild dword [eax + 0x14]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa0], edx
fstp qword [esp + 0x78]
fild dword [eax + 0x18]
mov dl, byte [eax + 0x25]
mov ecx, 8
fstp qword [esp + 0x80]
fild dword [eax + 0x1c]
fstp qword [esp + 0x88]
fild dword [eax + 0x20]
lea eax, [esp + 0x98]
push eax
fstp qword [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 8]
mov byte [esp + 0xcc], dl
mov byte [esp + 0xcd], 0
call fcn.005108d0
mov esi, dword [esp + 0x34]
mov ecx, dword [ebx + 8]
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ecx]
call dword [edx]
mov ebx, dword [ebx]
mov eax, dword [esi + 0x4c]
cmp ebx, eax
jne 0x4afb0f
mov ecx, dword [esi + 0x40]
call fcn.005073f0
mov ecx, dword [esp + 0xd8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14