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

Disassembly:
sub esp, 0x80
mov eax, dword [esp + 0x84]
mov ecx, dword [eax + 4]
push ebx
push ebp
push esi
push edi
shr ecx, 1
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x34], ecx
je 0x4aaf29
xor esi, esi
xor ebp, ebp
cmp ecx, edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], edi
jbe 0x4aa35b
mov edx, eax
mov edx, dword [edx]
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x70], ebp
jge 0x4aa2e2
cmp esi, edi
jl 0x4aa2f9
mov eax, edx
mov esi, dword [eax]
mov dword [esp + 0x70], esi
mov esi, dword [eax + 4]
mov ebp, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [esp + 0x7c], edi
jmp 0x4aa345
mov eax, dword [edx]
mov ebx, dword [edx + 8]
cmp eax, ebx
jge 0x4aa345
mov ecx, dword [edx + 4]
cmp ecx, dword [edx + 0xc]
jge 0x4aa33d
cmp dword [esp + 0x70], eax
jle 0x4aa314
mov dword [esp + 0x70], eax
cmp esi, ecx
mov eax, ecx
jg 0x4aa31c
mov eax, esi
cmp ebp, ebx
mov esi, eax
mov eax, ebx
jl 0x4aa326
mov eax, ebp
mov ecx, dword [esp + 0x7c]
mov ebp, eax
mov eax, dword [edx + 0xc]
cmp ecx, eax
jl 0x4aa335
mov eax, ecx
mov edi, eax
mov dword [esp + 0x7c], edi
jmp 0x4aa341
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
add edx, 0x10
dec eax
mov dword [esp + 0x30], eax
jne 0x4aa2d8
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], esi
cmp ecx, 1
je 0x4aae0b
mov ecx, dword [esp + 0x70]
mov ebx, ebp
sub ebx, ecx
mov eax, edi
sub eax, esi
mov ecx, ebx
imul ecx, eax
cmp ecx, 0x1388
mov dword [esp + 0x3c], eax
jl 0x4aae0b
mov ebp, dword [esp + 0x98]
mov eax, ebp
imul eax, ebp
xor edi, edi
cmp eax, edi
je 0x4aa40f
mov esi, 1
cmp eax, esi
jb 0x4aa3a6
add esi, esi
cmp esi, eax
jbe 0x4aa3a0
mov dword [esp + 0x40], 0
mov ecx, dword [esp + 0x40]
shr ecx, 0x17
and ecx, 0xff
sub ecx, 0x7f
js 0x4aa3c9
mov eax, 1
shl eax, cl
jmp 0x4aa3cb
xor eax, eax
cmp eax, esi
je 0x4aa40f
xor eax, eax
cmp esi, edi
mov dword [esp + 0x24], eax
je 0x4aa40b
mov edx, esi
shl edx, 4
push edx
call fcn.00489377
add esp, 4
cmp eax, edi
je 0x4aa40f
dec esi
cmp esi, edi
jl 0x4aa407
lea ecx, [eax + 8]
lea edx, [esi + 1]
mov dword [ecx - 8], edi
mov dword [ecx - 4], edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
add ecx, 0x10
dec edx
jne 0x4aa3f6
mov dword [esp + 0x24], eax
cmp eax, edi
jne 0x4aa41f
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x80
ret
xor edx, edx
lea eax, [ebx + ebp - 1]
div ebp
xor edx, edx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x38], 0
mov ebx, eax
mov eax, dword [esp + 0x3c]
lea eax, [eax + ebp - 1]
div ebp
mov dword [esp + 0x44], ebx
mov ebp, eax
test dword [ecx + 4], 0xfffffffe
mov dword [esp + 0x48], ebp
jbe 0x4aa692
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x94]
mov eax, dword [edx]
add eax, dword [esp + 0x1c]
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov esi, dword [edx + 8]
cmp eax, esi
mov edi, dword [edx + 0xc]
mov dword [esp + 0x60], eax
jge 0x4aa66a
cmp ecx, edi
jge 0x4aa66a
mov edx, dword [esp + 0x70]
sub eax, edx
sub esi, edx
mov edx, dword [esp + 0x74]
sub ecx, edx
mov dword [esp + 0x60], eax
sub edi, edx
cdq
idiv ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x50], eax
mov eax, ecx
cdq
idiv ebp
mov ecx, eax
lea eax, [esi + ebx - 1]
cdq
idiv ebx
mov dword [esp + 0x58], eax
lea eax, [edi + ebp - 1]
cdq
idiv ebp
cmp ecx, eax
jge 0x4aa66a
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x98]
mov edx, esi
imul edx, ebx
mov dword [esp + 0x40], edx
lea edx, [esi + 1]
imul edx, ebx
mov esi, edi
shl esi, 4
mov dword [esp + 0x28], esi
mov esi, ecx
imul esi, edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x3c], edx
mov edx, ecx
imul edx, ebp
shl esi, 4
add esi, edi
sub eax, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
lea ecx, [edx + ebp]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x50]
cmp ecx, eax
mov dword [esp + 0x80], edi
jge 0x4aa649
mov eax, ecx
shl eax, 4
lea ebp, [eax + esi + 8]
mov eax, dword [esp + 0x58]
sub eax, ecx
mov dword [esp + 0x34], eax
jmp 0x4aa567
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
cmp edi, eax
mov esi, dword [esp + 0x2c]
mov ecx, edx
mov edx, dword [esp + 0x88]
jge 0x4aa57e
mov edi, eax
mov eax, dword [esp + 0x64]
cmp ecx, eax
jl 0x4aa588
mov eax, ecx
mov ecx, dword [esp + 0x68]
cmp edx, ecx
mov dword [esp + 0x18], ecx
jg 0x4aa598
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x6c]
cmp esi, ecx
mov dword [esp + 0x20], ecx
jg 0x4aa5a8
mov dword [esp + 0x20], esi
mov esi, dword [ebp - 8]
mov ecx, dword [ebp]
cmp esi, ecx
jge 0x4aa5ba
mov ebx, dword [ebp - 4]
cmp ebx, dword [ebp + 4]
jl 0x4aa5d0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov dword [ebp - 8], edi
mov dword [ebp - 4], eax
mov dword [ebp], ecx
mov dword [ebp + 4], edx
jmp 0x4aa60b
cmp edi, dword [esp + 0x18]
jge 0x4aa60b
mov edx, dword [esp + 0x20]
cmp eax, edx
jge 0x4aa60b
cmp esi, edi
jle 0x4aa5e4
mov esi, edi
cmp ebx, eax
mov dword [ebp - 8], esi
mov esi, eax
jg 0x4aa5ef
mov esi, ebx
mov eax, dword [esp + 0x18]
cmp ecx, eax
mov dword [ebp - 4], esi
jge 0x4aa5fc
mov ecx, eax
mov dword [ebp], ecx
mov ecx, dword [ebp + 4]
cmp ecx, edx
jge 0x4aa608
mov ecx, edx
mov dword [ebp + 4], ecx
mov edi, dword [esp + 0x80]
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x34]
add edi, ebx
add edx, ebx
add ebp, 0x10
dec eax
mov dword [esp + 0x80], edi
mov dword [esp + 0x88], edx
mov dword [esp + 0x34], eax
jne 0x4aa563
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
add esi, ecx
dec eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jne 0x4aa521
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
inc eax
add edi, 0x10
shr edx, 1
cmp eax, edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], edi
jb 0x4aa463
mov edi, dword [esp + 0x94]
mov eax, dword [edi + 4]
mov ecx, eax
shr eax, 1
xor ebx, ebx
and ecx, 1
cmp eax, ebx
je 0x4aa76b
cmp ecx, ebx
je 0x4aa6c7
mov eax, dword [edi]
cmp eax, ebx
je 0x4aa6c0
push eax
call fcn.00489183
add esp, 4
mov dword [edi], ebx
jmp 0x4aa767
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ebx
fild qword [esp + 0x48]
fstp dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
shr ecx, 0x17
and ecx, 0xff
sub ecx, 0x7f
js 0x4aa6f2
mov edx, 1
shl edx, cl
jmp 0x4aa6f4
xor edx, edx
cmp edx, eax
jae 0x4aa6fa
add edx, edx
cmp edx, 1
je 0x4aa767
push 0x10
call fcn.00489377
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4aa767
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [edi + 4]
shr eax, 1
cmp eax, 1
mov ecx, 1
ja 0x4aa72b
mov ecx, eax
cmp ecx, ebx
jbe 0x4aa756
xor eax, eax
mov edx, dword [edi]
add edx, eax
mov ebp, dword [edx]
lea ebx, [eax + esi]
mov dword [ebx], ebp
mov ebp, dword [edx + 4]
mov dword [ebx + 4], ebp
mov ebp, dword [edx + 8]
mov dword [ebx + 8], ebp
mov edx, dword [edx + 0xc]
add eax, 0x10
dec ecx
mov dword [ebx + 0xc], edx
jne 0x4aa731
xor ebx, ebx
mov eax, dword [edi]
cmp eax, ebx
je 0x4aa765
push eax
call fcn.00489183
add esp, 4
mov dword [edi], esi
and dword [edi + 4], 1
cmp dword [esp + 0x98], ebx
mov dword [esp + 0x20], ebx
jbe 0x4aadf1
lea esp, [esp]
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x24]
shl eax, 4
add eax, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
shl eax, 4
mov edx, dword [eax + ecx]
lea ebx, [eax + ecx]
cmp edx, dword [ebx + 8]
jge 0x4aadc8
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 0xc]
jge 0x4aadc8
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x1c], eax
cmp ecx, dword [esp + 0x98]
mov dword [esp + 0x34], ecx
jae 0x4aa93e
add ebx, 8
mov dword [esp + 0x18], ebx
lea esp, [esp]
mov eax, dword [ebx - 8]
mov ecx, dword [ebx]
cmp eax, ecx
lea edi, [ebx - 8]
jge 0x4aa93e
mov edx, dword [ebx - 4]
mov ebx, dword [ebx + 4]
cmp edx, ebx
jge 0x4aa93e
mov esi, dword [esp + 0x6c]
sub ecx, eax
mov eax, dword [esp + 0x64]
sub ebx, edx
mov edx, dword [esp + 0x60]
imul ebx, ecx
mov ecx, dword [esp + 0x1c]
add ebx, ecx
mov ecx, dword [esp + 0x68]
cmp edx, ecx
mov dword [esp + 0x48], ebx
jge 0x4aa84b
mov ebx, eax
mov ebp, esi
cmp ebx, ebp
jl 0x4aa85e
mov ebx, dword [esp + 0x18]
mov eax, edi
mov edx, dword [eax]
mov ebp, dword [eax + 4]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
jmp 0x4aa888
mov ebx, dword [edi]
cmp dword [esp + 0x60], ebx
jle 0x4aa868
mov edx, ebx
mov ebx, dword [esp + 0x18]
mov ebp, dword [ebx - 4]
cmp eax, ebp
jle 0x4aa875
mov eax, ebp
mov ebp, eax
mov eax, dword [ebx]
cmp ecx, eax
jge 0x4aa87f
mov ecx, eax
mov eax, dword [ebx + 4]
cmp esi, eax
jl 0x4aa888
mov eax, esi
sub ecx, edx
sub eax, ebp
imul eax, ecx
mov ecx, dword [esp + 0x48]
cdq
idiv ecx
cmp eax, 1
jg 0x4aa93a
mov esi, dword [esp + 0x68]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x60]
cmp ecx, esi
jge 0x4aa8bb
mov edx, dword [esp + 0x64]
mov ebp, dword [esp + 0x6c]
cmp edx, ebp
jl 0x4aa8d6
mov ecx, edi
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x60], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x64], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x68], edx
jmp 0x4aa902
mov eax, dword [edi]
cmp ecx, eax
jle 0x4aa8e0
mov dword [esp + 0x60], eax
mov eax, dword [ebx - 4]
cmp edx, eax
jg 0x4aa8e9
mov eax, edx
mov dword [esp + 0x64], eax
mov eax, dword [ebx]
cmp esi, eax
jl 0x4aa8f5
mov eax, esi
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 4]
cmp ebp, eax
jl 0x4aa902
mov eax, ebp
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [edi], eax
mov eax, dword [esp + 0x10]
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x98]
inc eax
add ebx, 0x10
cmp eax, ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ebx
jb 0x4aa800
jmp 0x4aa93e
dec dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x98]
shl ecx, 4
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x98]
add edi, ecx
mov ecx, dword [esp + 0x3c]
sar eax, 1
inc ecx
cmp ecx, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x3c], ecx
jae 0x4aac96
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x14], ebp
mov esi, eax
jl 0x4aaa6d
mov edx, eax
shl edx, 4
mov ecx, edi
lea ebx, [edx + ecx + 4]
mov edx, dword [ebx - 4]
mov ecx, dword [ebx + 4]
cmp edx, ecx
jge 0x4aaa6d
mov edi, dword [ebx]
mov edx, dword [ebx + 8]
cmp edi, edx
jge 0x4aaa6d
mov edi, dword [esp + 0x58]
cmp dword [esp + 0x50], edi
jge 0x4aa9f7
mov edi, dword [esp + 0x5c]
cmp dword [esp + 0x54], edi
jl 0x4aaa10
mov edi, dword [ebx - 4]
mov ebp, dword [ebx + 8]
mov dword [esp + 0x50], edi
mov edi, dword [ebx]
mov dword [esp + 0x54], edi
mov edi, dword [ebx + 4]
mov dword [esp + 0x58], edi
jmp 0x4aaa47
mov edi, dword [ebx - 4]
cmp dword [esp + 0x50], edi
jle 0x4aaa1d
mov dword [esp + 0x50], edi
mov edi, dword [ebx]
mov ebp, dword [esp + 0x54]
cmp ebp, edi
jg 0x4aaa29
mov edi, ebp
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x58]
cmp edi, ecx
jge 0x4aaa37
mov edi, ecx
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x5c]
cmp edi, edx
jge 0x4aaa45
mov edi, edx
mov ebp, edi
sub ecx, dword [ebx - 4]
sub edx, dword [ebx]
imul ecx, edx
mov edx, dword [esp + 0x14]
add edx, ecx
mov dword [esp + 0x2c], esi
dec esi
sub ebx, 0x10
test esi, esi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x14], edx
jge 0x4aa9c8
lea edx, [eax + 1]
cmp edx, dword [esp + 0x98]
jge 0x4aab36
mov ecx, dword [esp + 0x18]
mov eax, edx
shl eax, 4
lea edi, [eax + ecx + 4]
lea ebx, [ebx]
mov ebx, dword [edi - 4]
mov eax, dword [edi + 4]
cmp ebx, eax
jge 0x4aab36
mov esi, dword [edi]
mov ecx, dword [edi + 8]
cmp esi, ecx
jge 0x4aab36
mov esi, dword [esp + 0x58]
cmp dword [esp + 0x50], esi
jge 0x4aaabf
mov ebp, dword [esp + 0x54]
cmp ebp, dword [esp + 0x5c]
jl 0x4aaad8
mov esi, dword [edi - 4]
mov ebp, dword [edi + 8]
mov dword [esp + 0x50], esi
mov esi, dword [edi]
mov dword [esp + 0x54], esi
mov esi, dword [edi + 4]
mov dword [esp + 0x58], esi
jmp 0x4aab08
cmp dword [esp + 0x50], ebx
jle 0x4aaae2
mov dword [esp + 0x50], ebx
mov esi, dword [edi]
cmp ebp, esi
jg 0x4aaaea
mov esi, ebp
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x58]
cmp esi, eax
jge 0x4aaaf8
mov esi, eax
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0x5c]
cmp esi, ecx
jge 0x4aab06
mov esi, ecx
mov ebp, esi
mov esi, dword [edi]
sub eax, ebx
mov ebx, dword [esp + 0x14]
sub ecx, esi
imul eax, ecx
add ebx, eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x30], edx
inc edx
add edi, 0x10
cmp edx, eax
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x14], ebx
jl 0x4aaa90
mov edx, dword [esp + 0x58]
cmp dword [esp + 0x50], edx
jge 0x4aac96
cmp dword [esp + 0x54], ebp
jge 0x4aac96
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
cmp ebx, ecx
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x6c]
mov esi, ebx
jge 0x4aab6e
mov edx, edi
cmp eax, edx
jl 0x4aab7e
mov ebp, dword [esp + 0x5c]
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov eax, ebp
jmp 0x4aaba8
mov edx, dword [esp + 0x50]
cmp ebx, edx
jle 0x4aab88
mov esi, edx
mov edx, dword [esp + 0x54]
cmp eax, edx
jle 0x4aab92
mov eax, edx
mov edx, eax
mov eax, dword [esp + 0x58]
cmp ecx, eax
jge 0x4aab9e
mov ecx, eax
mov eax, dword [esp + 0x5c]
cmp edi, eax
jl 0x4aaba8
mov eax, edi
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
sub eax, edx
sub ecx, esi
imul eax, ecx
add edi, ebp
cdq
idiv edi
mov dword [esp + 0x48], edi
cmp eax, 1
jg 0x4aac96
mov edx, dword [esp + 0x68]
cmp ebx, edx
jge 0x4aabdd
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x6c]
cmp eax, esi
jl 0x4aabfb
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
jmp 0x4aac2d
mov ecx, dword [esp + 0x50]
cmp ebx, ecx
jle 0x4aac07
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x54]
cmp eax, ecx
jle 0x4aac11
mov eax, ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x58]
cmp edx, eax
jl 0x4aac1f
mov eax, edx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x5c]
cmp esi, eax
jl 0x4aac2d
mov eax, esi
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp ebp, ecx
mov dword [esp + 0x6c], eax
jg 0x4aac71
mov eax, ebp
shl eax, 4
add eax, dword [esp + 0x18]
sub ecx, ebp
xor edx, edx
xor esi, esi
xor edi, edi
xor ebx, ebx
inc ecx
mov ebp, eax
mov dword [ebp], edx
mov dword [ebp + 4], esi
mov dword [ebp + 8], edi
add eax, 0x10
dec ecx
mov dword [ebp + 0xc], ebx
jne 0x4aac51
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
cmp edx, ebp
mov dword [esp + 0x1c], edi
jle 0x4aac83
mov edx, ebp
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x40]
cmp eax, ecx
jle 0x4aa968
mov eax, ecx
jmp 0x4aa964
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
add edi, eax
add ebx, eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x94]
add esi, eax
add edx, eax
mov eax, dword [edi + 4]
test al, 1
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], esi
mov dword [esp + 0x6c], edx
jne 0x4aadc8
shr eax, 1
lea ecx, [eax - 1]
test eax, ecx
jne 0x4aad8e
lea esi, [eax + eax]
xor ebp, ebp
cmp esi, ebp
jne 0x4aacf3
mov esi, 1
xor ebx, ebx
cmp esi, ebp
je 0x4aad79
mov edx, esi
shl edx, 4
push edx
call fcn.00489377
add esp, 4
cmp eax, ebp
je 0x4aadc8
lea edx, [esi - 1]
cmp edx, ebp
jl 0x4aad31
lea ecx, [eax + 8]
inc edx
mov edi, edi
mov dword [ecx - 8], ebp
mov dword [ecx - 4], ebp
mov dword [ecx], ebp
mov dword [ecx + 4], ebp
add ecx, 0x10
dec edx
jne 0x4aad20
mov ecx, dword [edi + 4]
shr ecx, 1
cmp ecx, esi
mov ebx, eax
mov dword [esp + 0x48], ebx
ja 0x4aad42
mov esi, ecx
cmp esi, ebp
jbe 0x4aad79
xor ecx, ecx
mov edx, esi
lea ebx, [ebx]
mov esi, dword [edi]
add esi, ecx
mov ebp, dword [esi]
lea ebx, [eax + ecx]
mov dword [ebx], ebp
mov ebp, dword [esi + 4]
mov dword [ebx + 4], ebp
mov ebp, dword [esi + 8]
mov dword [ebx + 8], ebp
mov esi, dword [esi + 0xc]
add ecx, 0x10
dec edx
mov dword [ebx + 0xc], esi
jne 0x4aad50
mov ebx, dword [esp + 0x48]
xor ebp, ebp
mov eax, dword [edi]
cmp eax, ebp
je 0x4aad88
push eax
call fcn.00489183
add esp, 4
cmp ebx, ebp
mov dword [edi], ebx
je 0x4aadc8
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov edx, dword [esp + 0x64]
shr eax, 1
shl eax, 4
add eax, ecx
mov ecx, dword [esp + 0x60]
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [edi + 4]
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
and eax, 1
xor ecx, eax
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x98]
inc ecx
cmp ecx, eax
mov dword [esp + 0x10], ecx
jb 0x4aa7a1
mov ecx, dword [esp + 0x20]
inc ecx
cmp ecx, eax
mov dword [esp + 0x20], ecx
jb 0x4aa780
mov edx, dword [esp + 0x24]
push edx
call fcn.00489183
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret
mov ebx, dword [esp + 0x94]
mov eax, dword [ebx]
test eax, eax
je 0x4aae21
push eax
call fcn.00489183
add esp, 4
mov edx, dword [ebx + 4]
and edx, 1
mov eax, edx
test al, 1
mov dword [ebx], 0
mov dword [ebx + 4], edx
jne 0x4aaf29
shr eax, 1
lea ecx, [eax - 1]
test eax, ecx
jne 0x4aaef4
lea esi, [eax + eax]
test esi, esi
jne 0x4aae53
mov esi, 1
xor ebp, ebp
test esi, esi
je 0x4aaedb
mov edx, esi
shl edx, 4
push edx
call fcn.00489377
mov edi, eax
add esp, 4
test edi, edi
je 0x4aaf29
push fcn.005b01e0
push esi
push 0x10
push edi
call fcn.00430db0
mov ebx, dword [esp + 0x94]
mov eax, dword [ebx + 4]
shr eax, 1
cmp eax, esi
mov ebp, edi
mov dword [esp + 0x48], ebp
ja 0x4aae9b
mov esi, eax
test esi, esi
jbe 0x4aaeca
xor eax, eax
mov ecx, esi
mov edx, dword [ebx]
add edx, eax
mov ebp, dword [edx]
lea esi, [edi + eax]
mov dword [esi], ebp
mov ebp, dword [edx + 4]
mov dword [esi + 4], ebp
mov ebp, dword [edx + 8]
mov dword [esi + 8], ebp
mov edx, dword [edx + 0xc]
add eax, 0x10
dec ecx
mov dword [esi + 0xc], edx
jne 0x4aaea3
mov ebp, dword [esp + 0x48]
mov eax, dword [ebx]
test eax, eax
je 0x4aaee2
push eax
call fcn.00489183
add esp, 4
jmp 0x4aaee2
mov ebx, dword [esp + 0x94]
test ebp, ebp
mov dword [ebx], ebp
je 0x4aaf29
mov esi, dword [esp + 0x74]
mov ebp, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x94]
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
shr eax, 1
shl eax, 4
add eax, edx
mov edx, dword [esp + 0x70]
mov dword [eax], edx
mov dword [eax + 4], esi
mov dword [eax + 8], ebp
mov dword [eax + 0xc], edi
mov eax, dword [ecx + 4]
mov edx, eax
and edx, 0xfffffffe
add edx, 2
and eax, 1
xor edx, eax
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x80
ret