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

Disassembly:
sub esp, 0x6c
mov eax, dword [esp + 0x80]
push ebx
push ebp
push esi
cmp eax, 8
push edi
mov dword [esp + 0x2c], ecx
jl 0x4af0fb
mov eax, dword [ecx]
lea edx, [esp + 0x4c]
push edx
call dword [eax + 0x78]
mov edx, dword [esp + 0x80]
push 0
push 0
push eax
lea ecx, [esp + 0x48]
call fcn.0041fdf0
mov ecx, eax
mov esi, dword [ecx]
mov dword [esp + 0x6c], esi
mov edi, dword [ecx + 4]
mov dword [esp + 0x70], edi
mov eax, dword [ecx + 8]
mov dword [esp + 0x74], eax
mov ecx, dword [ecx + 0xc]
test eax, eax
mov dword [esp + 0x78], ecx
jne 0x4ae5e3
test ecx, ecx
je 0x4af0fb
mov ecx, dword [esp + 0x84]
mov ebp, dword [esp + 0x88]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [ebp]
mov ebp, dword [ebp + 4]
add eax, esi
add ecx, esi
mov esi, dword [esp + 0x98]
add edx, edi
mov ebx, eax
add ebp, edi
mov edi, dword [esp + 0x94]
cmp eax, ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ebp
jle 0x4ae643
mov ebx, ecx
mov edi, esi
mov esi, dword [esp + 0x94]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x4c], edx
push ecx
mov ebp, ebx
mov ebx, dword [esp + 0x64]
lea edx, [esp + 0x68]
lea ecx, [esp + 0x60]
mov dword [esp + 0x54], eax
call fcn.00760bc0
test al, al
je 0x4af0fb
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x68]
cmp ecx, eax
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], edi
jne 0x4ae69b
cmp edx, dword [esp + 0x50]
je 0x4ae729
mov eax, ebp
sub eax, ecx
mov ecx, ebx
sub ecx, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x4c]
mov eax, ebp
sub eax, ecx
mov ecx, ebx
sub ecx, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x3c]
call fcn.0047cc60
lea ecx, [esp + 0x34]
mov dword [esp + 0x94], eax
call fcn.0047cc60
mov dword [esp + 0x98], eax
mov edx, edi
fild dword [esp + 0x98]
sub edx, esi
mov dword [esp + 0x98], edx
fidiv dword [esp + 0x94]
fild dword [esp + 0x98]
fmulp st(1)
call fcn.0076a6b0
cdq
xor eax, edx
sub eax, edx
cmp edi, esi
jge 0x4ae71e
add eax, edi
mov dword [esp + 0x88], eax
jmp 0x4ae729
mov ecx, edi
sub ecx, eax
mov dword [esp + 0x88], ecx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
cmp eax, ebp
jne 0x4ae73d
cmp ecx, ebx
je 0x4ae7c3
mov edx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x50]
sub eax, edx
sub ebp, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x40], ecx
sub ebx, edx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebx
call fcn.0047cc60
lea ecx, [esp + 0x3c]
mov dword [esp + 0x94], eax
call fcn.0047cc60
mov dword [esp + 0x98], eax
mov eax, edi
fild dword [esp + 0x98]
sub eax, esi
mov dword [esp + 0x98], eax
fidiv dword [esp + 0x94]
fild dword [esp + 0x98]
fmulp st(1)
call fcn.0076a6b0
cdq
xor eax, edx
sub eax, edx
cmp esi, edi
jle 0x4ae7ba
sub esi, eax
mov dword [esp + 0x84], esi
jmp 0x4ae7c3
add eax, esi
mov dword [esp + 0x84], eax
mov esi, dword [esp + 0x2c]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x70]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esi]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x5c]
mov ecx, dword [0x821f8c]
mov dword [esp + 0x94], eax
test ecx, ecx
je 0x4af0fb
mov eax, dword [esp + 0x60]
mov edi, dword [ecx + 4]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x50], eax
sub eax, edi
push eax
push edx
call fcn.007618e0
mov ecx, dword [0x8198d4]
mov edx, dword [esp + 0x5c]
mov edi, eax
mov eax, dword [esp + 0x60]
mov ebx, dword [ecx + 4]
mov dword [esp + 0x50], eax
sub eax, ebx
push eax
push edx
call fcn.00411230
mov ecx, dword [0x821f8c]
mov edx, dword [esp + 0x60]
mov ebp, dword [esp + 0x70]
mov ebx, eax
mov ax, word [ecx + 0x24]
mov esi, dword [esp + 0x84]
add ax, word [ecx + 4]
mov dword [esp + 0x1c], 0xffffffff
sub eax, edx
sub eax, ebp
add eax, esi
mov dword [esp + 0x98], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x94]
test eax, eax
je 0x4af0fb
mov esi, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
xor eax, eax
mov ebp, 0x100
mov al, byte [esi]
sub ebp, ecx
imul eax, ecx
sar eax, 8
mov dword [esp + 0x28], eax
xor eax, eax
mov al, byte [esi + 1]
imul eax, ecx
sar eax, 8
mov dword [esp + 0x24], eax
xor eax, eax
mov al, byte [esi + 2]
mov esi, dword [esp + 0x64]
imul eax, ecx
sar eax, 8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
sub esi, eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x30], esi
sub eax, edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x88]
sub eax, edx
mov edx, dword [ecx]
mov dword [esp + 0x84], eax
call dword [edx + 0x74]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x18], eax
test ecx, ecx
jge 0x4ae922
neg eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
neg eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x90]
mov dword [esp + 0x14], 1
cdq
mov ecx, eax
mov eax, dword [esp + 0x84]
xor ecx, edx
sub ecx, edx
test eax, eax
jge 0x4ae94b
mov dword [esp + 0x14], 0xffffffff
cdq
xor eax, edx
sub eax, edx
lea edx, [esi + esi]
mov dword [esp + 0x84], edx
lea edx, [ecx + ecx]
mov dword [esp + 0x90], edx
lea edx, [eax + eax]
cmp eax, esi
mov dword [esp + 0x88], edx
jle 0x4aec07
cmp eax, ecx
jle 0x4aec07
mov ecx, dword [esp + 0x90]
sub ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x84]
sub ecx, eax
test eax, eax
mov dword [esp + 0x8c], ecx
jle 0x4af0e6
mov edx, dword [0x8198d4]
xor ecx, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov ax, word [esp + 0x98]
xor esi, esi
cmp ax, word [edi]
mov si, word [ebx]
jae 0x4aeabe
test esi, esi
je 0x4aeabe
mov edx, dword [esp + 0x94]
mov ax, word [ecx + edx]
mov cx, word [0x83b2c8]
mov edx, eax
shr dx, cl
mov ecx, dword [0x83b2cc]
shl dl, cl
mov cx, word [0x83b2d8]
mov byte [esp + 0x3c], dl
mov edx, eax
shr dx, cl
mov ecx, dword [0x83b2dc]
shl dl, cl
mov cx, word [0x83b2d0]
shr ax, cl
mov ecx, dword [0x83b2d4]
mov byte [esp + 0x3d], dl
mov edx, dword [esp + 0x24]
shl al, cl
mov ecx, dword [0x83b2dc]
mov byte [esp + 0x3e], al
mov eax, dword [esp + 0x3d]
and eax, 0xff
imul eax, ebp
sar eax, 8
add eax, edx
mov edx, dword [esp + 0x3e]
imul eax, esi
and edx, 0xff
imul edx, ebp
sar eax, 7
sar eax, cl
mov ecx, dword [0x83b2d8]
sar edx, 8
shl eax, cl
mov ecx, dword [esp + 0x20]
add edx, ecx
mov ecx, dword [0x83b2d4]
imul edx, esi
sar edx, 7
sar edx, cl
mov ecx, dword [0x83b2d0]
shl edx, cl
mov ecx, dword [esp + 0x28]
or eax, edx
mov edx, dword [esp + 0x3c]
and edx, 0xff
imul edx, ebp
sar edx, 8
add edx, ecx
mov ecx, dword [0x83b2cc]
imul edx, esi
sar edx, 7
sar edx, cl
mov ecx, dword [0x83b2c8]
shl edx, cl
mov ecx, dword [esp + 0x30]
or eax, edx
mov edx, dword [esp + 0x94]
mov word [ecx + edx], ax
mov edx, dword [0x8198d4]
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x4aeb69
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x94]
add esi, edx
mov dword [esp + 0x94], esi
mov esi, dword [esp + 0x88]
sub eax, esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x80]
lea esi, [eax + eax]
add edi, esi
test eax, eax
jle 0x4aeb0a
mov eax, dword [0x821f8c]
cmp edi, dword [eax + 0x1c]
jb 0x4aeb1e
sub edi, dword [eax + 0x20]
jmp 0x4aeb1e
mov edx, dword [0x821f8c]
mov eax, edi
cmp edi, dword [edx + 0x18]
jae 0x4aeb1c
mov eax, dword [edx + 0x20]
add eax, edi
mov edi, eax
mov eax, dword [esp + 0x80]
mov edx, dword [0x8198d4]
add ebx, esi
test eax, eax
jle 0x4aeb4a
cmp ebx, dword [edx + 0x1c]
jb 0x4aeb5a
mov eax, dword [edx + 0x20]
mov esi, dword [esp + 0x1c]
sub ebx, eax
mov eax, dword [esp + 0x98]
add eax, esi
jmp 0x4aeb70
mov esi, dword [edx + 0x18]
mov eax, ebx
cmp ebx, esi
jae 0x4aeb58
mov eax, dword [edx + 0x20]
add eax, ebx
mov ebx, eax
mov eax, dword [esp + 0x98]
mov esi, dword [esp + 0x1c]
add eax, esi
jmp 0x4aeb70
mov eax, dword [esp + 0x98]
mov esi, dword [esp + 0x8c]
test esi, esi
jle 0x4aebae
mov esi, dword [0x821f8c]
add edi, 2
add ecx, 2
cmp edi, dword [esi + 0x1c]
mov dword [esp + 0x30], ecx
jb 0x4aeb93
sub edi, dword [esi + 0x20]
mov esi, dword [edx + 0x1c]
add ebx, 2
cmp ebx, esi
jb 0x4aeba0
sub ebx, dword [edx + 0x20]
mov esi, dword [esp + 0x88]
sub dword [esp + 0x8c], esi
mov esi, dword [esp + 0x14]
add eax, esi
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x84]
add esi, eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x8c], esi
mov esi, dword [esp + 0x10]
add esi, eax
mov eax, dword [esp + 0x34]
dec eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x34], eax
jne 0x4ae9b3
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x60]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x6c
ret 0x1c
cmp esi, ecx
jle 0x4aee75
mov eax, dword [esp + 0x90]
sub eax, esi
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x88]
sub eax, esi
mov dword [esp + 0x10], eax
xor eax, eax
test esi, esi
mov dword [esp + 0x34], eax
jle 0x4af0e6
mov edx, dword [0x8198d4]
mov cx, word [esp + 0x98]
xor esi, esi
cmp cx, word [edi]
mov si, word [ebx]
jae 0x4aed4a
test esi, esi
je 0x4aed4a
mov edx, dword [esp + 0x94]
mov cx, word [0x83b2c8]
mov ax, word [edx + eax*2]
mov edx, eax
shr dx, cl
mov ecx, dword [0x83b2cc]
shl dl, cl
mov cx, word [0x83b2d8]
mov byte [esp + 0x3c], dl
mov edx, eax
shr dx, cl
mov ecx, dword [0x83b2dc]
shl dl, cl
mov cx, word [0x83b2d0]
shr ax, cl
mov ecx, dword [0x83b2d4]
mov byte [esp + 0x3d], dl
shl al, cl
mov ecx, dword [0x83b2dc]
mov byte [esp + 0x3e], al
mov edx, dword [esp + 0x3d]
and edx, 0xff
mov eax, dword [esp + 0x24]
imul edx, ebp
sar edx, 8
add edx, eax
mov eax, dword [esp + 0x3e]
imul edx, esi
and eax, 0xff
imul eax, ebp
sar edx, 7
sar edx, cl
mov ecx, dword [0x83b2d8]
sar eax, 8
shl edx, cl
mov ecx, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [0x83b2d4]
imul eax, esi
sar eax, 7
sar eax, cl
mov ecx, dword [0x83b2d0]
shl eax, cl
mov ecx, dword [esp + 0x28]
or edx, eax
mov eax, dword [esp + 0x3c]
and eax, 0xff
imul eax, ebp
sar eax, 8
add eax, ecx
mov ecx, dword [0x83b2cc]
imul eax, esi
sar eax, 7
sar eax, cl
mov ecx, dword [0x83b2c8]
shl eax, cl
mov ecx, dword [esp + 0x94]
or edx, eax
mov eax, dword [esp + 0x34]
mov word [ecx + eax*2], dx
mov edx, dword [0x8198d4]
mov ecx, dword [esp + 0x8c]
test ecx, ecx
jle 0x4aede9
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x94]
add esi, edx
mov dword [esp + 0x94], esi
mov esi, dword [esp + 0x84]
sub ecx, esi
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x80]
lea esi, [ecx + ecx]
add edi, esi
test ecx, ecx
jle 0x4aed9d
mov ecx, dword [0x821f8c]
cmp edi, dword [ecx + 0x1c]
jb 0x4aedb1
sub edi, dword [ecx + 0x20]
jmp 0x4aedb1
mov edx, dword [0x821f8c]
mov ecx, edi
cmp edi, dword [edx + 0x18]
jae 0x4aedaf
mov ecx, dword [edx + 0x20]
add ecx, edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x8198d4]
add dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x80]
add ebx, esi
test ecx, ecx
jle 0x4aedd9
cmp ebx, dword [edx + 0x1c]
jb 0x4aede9
sub ebx, dword [edx + 0x20]
jmp 0x4aede9
mov esi, dword [edx + 0x18]
mov ecx, ebx
cmp ebx, esi
jae 0x4aede7
mov ecx, dword [edx + 0x20]
add ecx, ebx
mov ebx, ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x4aee09
mov esi, dword [esp + 0x14]
add dword [esp + 0x98], esi
mov esi, dword [esp + 0x84]
sub ecx, esi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x90]
mov esi, dword [esp + 0x8c]
add esi, ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x8c], esi
mov esi, dword [esp + 0x10]
add esi, ecx
mov ecx, dword [0x821f8c]
mov dword [esp + 0x10], esi
add edi, 2
cmp edi, dword [ecx + 0x1c]
jb 0x4aee42
sub edi, dword [ecx + 0x20]
mov ecx, dword [edx + 0x1c]
add ebx, 2
cmp ebx, ecx
jb 0x4aee4f
sub ebx, dword [edx + 0x20]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x4aec40
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x60]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x6c
ret 0x1c
mov eax, dword [esp + 0x84]
sub eax, ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x88]
sub eax, ecx
test ecx, ecx
mov dword [esp + 0x10], eax
jle 0x4af0e6
xor edx, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov ax, word [esp + 0x98]
xor esi, esi
cmp ax, word [edi]
mov si, word [ebx]
jae 0x4aefa9
test esi, esi
je 0x4aefa9
mov ecx, dword [esp + 0x94]
mov ax, word [edx + ecx]
mov cx, word [0x83b2c8]
mov edx, eax
shr dx, cl
mov ecx, dword [0x83b2cc]
shl dl, cl
mov cx, word [0x83b2d8]
mov byte [esp + 0x4c], dl
mov edx, eax
shr dx, cl
mov ecx, dword [0x83b2dc]
shl dl, cl
mov byte [esp + 0x4d], dl
mov edx, eax
mov eax, dword [0x83b2d0]
mov cx, ax
shr dx, cl
mov ecx, dword [0x83b2d4]
shl dl, cl
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x4e], dl
mov edx, dword [esp + 0x4e]
and edx, 0xff
imul edx, ebp
sar edx, 8
add edx, ecx
mov ecx, dword [0x83b2d4]
imul edx, esi
sar edx, 7
sar edx, cl
mov ecx, eax
mov eax, dword [esp + 0x4d]
and eax, 0xff
imul eax, ebp
shl edx, cl
mov ecx, dword [esp + 0x24]
sar eax, 8
add eax, ecx
mov ecx, dword [0x83b2dc]
imul eax, esi
sar eax, 7
sar eax, cl
mov ecx, dword [0x83b2d8]
shl eax, cl
mov ecx, dword [esp + 0x28]
or edx, eax
mov eax, dword [esp + 0x4c]
and eax, 0xff
imul eax, ebp
sar eax, 8
add eax, ecx
mov ecx, dword [0x83b2cc]
imul eax, esi
sar eax, 7
sar eax, cl
mov ecx, dword [0x83b2c8]
shl eax, cl
mov ecx, dword [esp + 0x94]
or edx, eax
mov eax, edx
mov edx, dword [esp + 0x34]
mov word [edx + ecx], ax
mov eax, dword [esp + 0x8c]
test eax, eax
jle 0x4aeff4
mov eax, dword [0x821f8c]
add edi, 2
add edx, 2
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x34], edx
cmp edi, ecx
jb 0x4aefcd
sub edi, dword [eax + 0x20]
mov eax, dword [0x8198d4]
add ebx, 2
cmp ebx, dword [eax + 0x1c]
jb 0x4aefdd
sub ebx, dword [eax + 0x20]
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x8c]
sub eax, ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x4af021
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x98]
add ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x90]
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x8c]
mov esi, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x88]
add esi, ecx
mov ecx, dword [esp + 0x94]
add ecx, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x80]
lea eax, [ecx + ecx]
add edi, eax
test ecx, ecx
jle 0x4af087
mov esi, dword [0x821f8c]
mov dword [esp + 0x3c], edi
cmp edi, dword [esi + 0x1c]
jb 0x4af081
sub edi, dword [esi + 0x20]
jmp 0x4af0a3
mov edi, dword [esp + 0x3c]
jmp 0x4af0a3
mov esi, dword [0x821f8c]
mov dword [esp + 0x3c], edi
cmp edi, dword [esi + 0x18]
jae 0x4af09d
mov esi, dword [esi + 0x20]
add esi, edi
jmp 0x4af0a1
mov esi, dword [esp + 0x3c]
mov edi, esi
mov esi, dword [esp + 0x1c]
add ebx, eax
add dword [esp + 0x98], esi
test ecx, ecx
jle 0x4af0c3
mov eax, dword [0x8198d4]
cmp ebx, dword [eax + 0x1c]
jb 0x4af0d7
sub ebx, dword [eax + 0x20]
jmp 0x4af0d7
mov ecx, dword [0x8198d4]
mov eax, ebx
cmp ebx, dword [ecx + 0x18]
jae 0x4af0d5
mov eax, dword [ecx + 0x20]
add eax, ebx
mov ebx, eax
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp + 0x30], eax
jne 0x4aeea4
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x60]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x6c
ret 0x1c
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x6c
ret 0x1c