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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101be94c
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push esi
push edi
mov eax, dword [0x102832a0]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x40]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov esi, eax
cmp esi, 0xffffffff
je 0x1006626f
mov ecx, dword [ebx + 0x40]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp eax, 0xffffffff
je 0x1006626f
shl esi, 8
or esi, eax
mov eax, esi
shr esi, 2
and esi, 3
mov dword [esp + 0x38], esi
mov esi, eax
shr esi, 4
and esi, 3
mov dword [esp + 0x64], esi
mov esi, eax
shr esi, 6
and esi, 1
mov dword [esp + 0x3c], esi
mov esi, eax
shr esi, 7
mov edx, eax
shr edx, 0xc
and esi, 1
and edx, 1
mov dword [esp + 0x58], esi
mov ecx, eax
mov edi, eax
mov esi, eax
mov dword [esp + 0x50], edx
mov edx, eax
shr ecx, 0xa
shr edi, 1
shr esi, 8
shr eax, 9
and edx, 1
and ecx, 3
and edi, 1
and esi, 1
and eax, 1
mov dword [esp + 0x68], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x88], eax
test edx, edx
jne 0x100662d1
test ecx, ecx
mov ecx, dword [ebx + 0x40]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
jne 0x100662a1
call edx
cmp eax, 0xffffffff
je 0x1006626f
mov dword [esp + 0x94], eax
test al, al
jns 0x100661f1
or eax, 0xffffff00
mov dword [esp + 0x94], eax
lea esi, [esp + 0xac]
mov eax, ebx
call fcn.1006b290
test eax, eax
je 0x1006626f
lea esi, [esp + 0x98]
mov eax, ebx
call fcn.1006b290
test eax, eax
je 0x1006626f
lea esi, [esp + 0xb0]
mov eax, ebx
call fcn.1006b290
test eax, eax
je 0x1006626f
lea esi, [esp + 0x9c]
mov eax, ebx
call fcn.1006b290
test eax, eax
je 0x1006626f
lea esi, [esp + 0xb4]
mov eax, ebx
call fcn.1006b290
test eax, eax
je 0x1006626f
lea esi, [esp + 0xa0]
mov eax, ebx
call fcn.1006b290
test eax, eax
je 0x1006626f
lea esi, [esp + 0xb8]
mov eax, ebx
call fcn.1006b290
test eax, eax
jne 0x100662d1
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
push str.Unexpected_EOF_in_JBIG2_stream
mov ecx, ebx
call edx
mov edx, eax
call fcn.1001d950
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call edx
cmp eax, 0xffffffff
je 0x1006626f
mov dword [esp + 0x94], eax
test al, al
jns 0x100662bf
or eax, 0xffffff00
mov dword [esp + 0x94], eax
lea esi, [esp + 0xac]
mov eax, ebx
call fcn.1006b290
test eax, eax
je 0x1006626f
test edi, edi
je 0x10066330
cmp dword [esp + 0x50], 0
jne 0x10066330
lea esi, [esp + 0x8c]
mov eax, ebx
call fcn.1006b290
test eax, eax
je 0x1006626f
lea esi, [esp + 0xa4]
mov eax, ebx
call fcn.1006b290
test eax, eax
je 0x1006626f
lea esi, [esp + 0x90]
mov eax, ebx
call fcn.1006b290
test eax, eax
je 0x1006626f
lea esi, [esp + 0xa8]
mov eax, ebx
call fcn.1006b290
test eax, eax
je 0x1006626f
lea eax, [esp + 0x80]
push eax
mov edi, ebx
call fcn.1006b300
test eax, eax
je 0x1006626f
lea ecx, [esp + 0x44]
push ecx
call fcn.1006b300
test eax, eax
je 0x1006626f
push 0x10
call fcn.100f5c37
add esp, 4
mov dword [esp + 0x4c], eax
xor ecx, ecx
mov dword [esp + 0xc8], ecx
cmp eax, ecx
je 0x10066381
mov esi, eax
call fcn.100557b0
mov dword [esp + 0x10], eax
jmp 0x10066385
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc8], 0xffffffff
xor edi, edi
xor esi, esi
mov dword [esp + 0x34], edi
cmp dword [ebp + 0x14], edi
jbe 0x100663ee
lea ecx, [ecx]
mov edx, dword [ebp + 0x10]
mov ebx, dword [edx + esi*4]
mov edi, dword [ebp + 8]
call fcn.1006ad20
mov edi, eax
test edi, edi
je 0x10066425
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
cmp eax, 1
jne 0x100663cb
mov eax, dword [edi + 8]
add dword [esp + 0x34], eax
jmp 0x100663e3
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
cmp eax, 3
jne 0x100663e3
mov eax, dword [esp + 0x10]
push edi
call fcn.100557e0
inc esi
cmp esi, dword [ebp + 0x14]
jb 0x100663a0
mov ebx, dword [ebp + 8]
xor edi, edi
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x34]
xor ecx, ecx
add esi, edx
lea eax, [ecx + 1]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x6c], esi
cmp esi, eax
jbe 0x1006641b
lea esp, [esp]
add eax, eax
inc ecx
cmp eax, esi
jb 0x10066410
mov dword [esp + 0x40], ecx
cmp esi, edi
jne 0x1006643e
mov dword [esp + 0x18], edi
jmp 0x10066462
cmp dword [esp + 0x10], 0
je 0x10066287
mov esi, dword [esp + 0x10]
call fcn.10010f70
jmp 0x10066287
lea eax, [esi*4]
cmp esi, 0x1ffffffe
ja 0x100666e0
cmp eax, edi
ja 0x10066459
xor eax, eax
jmp 0x1006645e
call fcn.100550f0
mov dword [esp + 0x18], eax
cmp esi, edi
jbe 0x10066474
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x18]
xor eax, eax
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
cmp dword [ebp + 0x14], edi
jbe 0x10066519
lea esp, [esp]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + ecx*4]
mov ecx, dword [ebx + 0x3c]
mov esi, dword [ecx + 8]
xor eax, eax
test esi, esi
jle 0x100664b5
mov edi, dword [ecx]
mov edi, dword [edi + eax*4]
cmp dword [edi + 4], edx
je 0x100664d2
inc eax
cmp eax, esi
jl 0x100664a6
mov ecx, dword [ebx + 0x38]
mov esi, dword [ecx + 8]
xor eax, eax
test esi, esi
jle 0x10066507
mov edi, dword [ecx]
mov edi, dword [edi + eax*4]
cmp dword [edi + 4], edx
je 0x100664d2
inc eax
cmp eax, esi
jl 0x100664c1
jmp 0x10066507
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
cmp eax, 1
jne 0x10066507
xor eax, eax
mov dword [esp + 0x14], edi
cmp dword [edi + 8], eax
jbe 0x10066507
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [edi + 0xc]
mov esi, dword [esi + eax*4]
mov dword [edx + ecx*4], esi
inc eax
inc ecx
cmp eax, dword [edi + 8]
jb 0x100664f3
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [ebp + 0x14]
jb 0x10066490
mov esi, dword [esp + 0x10]
xor edi, edi
xor eax, eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x30], edi
mov edx, 0x10289768
cmp dword [esp + 0x24], edi
je 0x100665d0
mov ecx, dword [esp + 0x38]
cmp ecx, edi
jne 0x10066552
mov dword [esp + 0x5c], 0x102898d8
jmp 0x10066571
cmp ecx, 1
jne 0x10066561
mov dword [esp + 0x5c], 0x10289948
jmp 0x10066571
mov ecx, dword [esi]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 8]
mov eax, 1
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x64]
cmp ecx, edi
jne 0x10066583
mov dword [esp + 0x60], 0x102897b8
jmp 0x1006659f
cmp ecx, 1
jne 0x10066592
mov dword [esp + 0x60], 0x10289838
jmp 0x1006659f
mov ecx, dword [esi]
mov ecx, dword [ecx + eax*4]
mov ecx, dword [ecx + 8]
inc eax
mov dword [esp + 0x60], ecx
cmp dword [esp + 0x3c], edi
jne 0x100665ab
mov dword [esp + 0x30], edx
jmp 0x100665b8
mov ecx, dword [esi]
mov ecx, dword [ecx + eax*4]
mov ecx, dword [ecx + 8]
inc eax
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x58], edi
jne 0x100665c4
mov dword [esp + 0x70], edx
jmp 0x100665d0
mov edx, dword [esi]
mov eax, dword [edx + eax*4]
mov eax, dword [eax + 8]
mov dword [esp + 0x70], eax
cmp esi, edi
je 0x100665ec
mov eax, dword [esi]
cmp eax, edi
je 0x100665e3
push eax
call fcn.10109eb5
add esp, 4
push esi
call fcn.100f5c66
add esp, 4
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x24], edi
je 0x10066606
mov eax, dword [ebx + 0x90]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
jmp 0x1006663d
cmp dword [esp + 0x20], edi
je 0x1006661a
cmp esi, edi
je 0x1006661a
mov edx, dword [esp + 0x68]
mov ecx, dword [esi + 0x10]
push edx
jmp 0x10066621
mov eax, dword [esp + 0x68]
push eax
xor ecx, ecx
push ebx
call fcn.1006aec0
mov ecx, dword [esp + 0x40]
push ecx
mov edi, ebx
call fcn.1006b0a0
mov eax, dword [ebx + 0x4c]
call fcn.100636a0
xor ecx, ecx
mov edi, dword [esp + 0x44]
cmp dword [esp + 0x48], ecx
je 0x1006666a
cmp dword [esp + 0x20], ecx
je 0x1006665b
cmp esi, ecx
je 0x1006665b
mov edx, dword [esp + 0x50]
mov ecx, dword [esi + 0x14]
push edx
jmp 0x10066662
mov eax, dword [esp + 0x50]
push eax
xor ecx, ecx
push ebx
call fcn.1006afb0
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x24], ecx
je 0x10066682
cmp dword [esp + 0x48], ecx
jne 0x10066682
cmp edi, ecx
jne 0x100666b4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], ecx
cmp edi, ecx
jbe 0x10066b73
xor edi, edi
cmp dword [esp + 0x24], edi
je 0x100666fd
mov ecx, dword [esp + 0x5c]
mov eax, dword [ebx + 0x90]
push ecx
lea edx, [esp + 0x88]
push edx
call fcn.10063d30
jmp 0x10066711
cmp edi, ecx
lea eax, [edi*4]
jl 0x100666e0
cmp edi, 0x1fffffff
jge 0x100666e0
cmp eax, ecx
ja 0x100666d3
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x10066682
call fcn.100550f0
xor ecx, ecx
mov dword [esp + 0x10], eax
jmp 0x10066682
push str.Bogus_memory_allocation_size_n
call fcn.10107014
add eax, 0x40
push eax
call fcn.10106bd7
add esp, 8
push 1
call fcn.1010a517
mov eax, dword [ebx + 0x58]
push eax
mov eax, dword [ebx + 0x4c]
lea ecx, [esp + 0x88]
push ecx
call fcn.10063900
mov eax, dword [esp + 0x84]
cmp eax, edi
jge 0x1006672a
mov edx, eax
neg edx
cmp edx, dword [esp + 0x28]
jae 0x10066ba7
add dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x7c], eax
add eax, ecx
mov dword [esp + 0x4c], eax
lea eax, [edx + eax*4]
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x54], eax
cmp dword [esp + 0x24], 0
je 0x100667ec
mov ecx, dword [esp + 0x60]
mov eax, dword [ebx + 0x90]
push ecx
lea edx, [esp + 0x78]
push edx
call fcn.10063d30
test eax, eax
jne 0x10066809
cmp dword [esp + 0x48], 0
jne 0x10066b65
mov edx, dword [esp + 0x30]
push edx
lea eax, [esp + 0x30]
push eax
mov eax, dword [ebx + 0x90]
call fcn.10063d30
mov eax, dword [ebx + 0x90]
xor esi, esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov eax, dword [esp + 0x2c]
cmp eax, esi
jne 0x10066ae8
push 0x18
call fcn.100f5c37
add esp, 4
mov dword [esp + 0x78], eax
mov dword [esp + 0xc8], 1
cmp eax, esi
je 0x10066aa7
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
push ecx
push eax
xor ecx, ecx
call fcn.100643f0
jmp 0x10066aa9
mov eax, dword [ebx + 0x5c]
push eax
mov eax, dword [ebx + 0x4c]
lea ecx, [esp + 0x78]
push ecx
call fcn.10063900
test eax, eax
je 0x10066b65
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x74]
test eax, eax
jge 0x1006681d
mov edx, eax
neg edx
cmp edx, edi
jae 0x10066ba7
add edi, eax
cmp dword [esp + 0x24], 0
mov dword [esp + 0x20], edi
je 0x10066852
cmp dword [esp + 0x48], 0
jne 0x10066901
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
add dword [esp + 0x14], edi
inc dword [esp + 0x1c]
add dword [esp + 0x54], 4
mov dword [eax + ecx*4], edi
jmp 0x10066753
cmp dword [esp + 0x48], 0
je 0x10066a68
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x4c]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.10063900
test eax, eax
je 0x10066b65
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x58]
cmp eax, 1
jne 0x100669dd
cmp dword [esp + 0x24], 0
je 0x10066923
mov eax, dword [esp + 0x40]
mov edi, dword [ebx + 0x90]
call fcn.10063e20
mov esi, eax
push 0x1028a2f8
lea eax, [esp + 0x3c]
push eax
mov eax, dword [ebx + 0x90]
call fcn.10063d30
mov eax, dword [ebx + 0x90]
push 0x1028a2f8
lea ecx, [esp + 0x68]
push ecx
call fcn.10063d30
mov eax, dword [ebx + 0x90]
push 0x10289768
lea edx, [esp + 0x30]
push edx
call fcn.10063d30
mov ecx, dword [ebx + 0x90]
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0x4c]
call fcn.100636a0
mov edi, dword [esp + 0x20]
jmp 0x10066995
mov edx, dword [esp + 0x70]
push edx
lea eax, [esp + 0x5c]
push eax
mov eax, dword [ebx + 0x90]
call fcn.10063d30
test eax, eax
je 0x1006677b
jmp 0x1006687a
mov eax, dword [ebx + 0x8c]
mov esi, dword [ebx + 0x4c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x14], 1
test eax, eax
jbe 0x10066963
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x78]
mov eax, dword [esi + 0x14]
push ecx
mov ecx, esi
call fcn.100637e0
mov edx, dword [esi + 0x14]
add edx, edx
or edx, eax
sub dword [esp + 0x3c], 1
mov dword [esi + 0x14], edx
jne 0x10066943
mov ecx, dword [esp + 0x40]
mov esi, dword [esi + 0x14]
mov eax, 1
shl eax, cl
mov ecx, dword [ebx + 0x78]
push ecx
lea edx, [esp + 0x3c]
sub esi, eax
mov eax, dword [ebx + 0x4c]
push edx
call fcn.10063900
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [ebx + 0x4c]
lea ecx, [esp + 0x68]
push ecx
call fcn.10063900
mov edx, dword [esp + 0x18]
mov esi, dword [edx + esi*4]
mov edx, dword [esp + 0x64]
lea eax, [esp + 0xa4]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x34]
push eax
push 0
push ecx
push edx
push edi
push ebx
call fcn.10069b10
mov ecx, dword [esp + 0x54]
inc dword [esp + 0x1c]
add dword [esp + 0x54], 4
mov dword [ecx], eax
jmp 0x10066753
lea edx, [esp + 0xa4]
push edx
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x90]
push ecx
push edx
push 0x10289768
push 0x1028a2f8
push 0x1028a2f8
push 0x1028a2f8
push 0x1028a2f8
mov ecx, dword [esp + 0x38]
push 0x10289ff8
mov edx, dword [esp + 0x64]
push 0x10289bc8
push 0x102899d8
push 0
push 1
push 0
push 0
push 0
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x64]
push 0
add edx, ecx
mov ecx, dword [esp + 0x70]
push edx
push 0
push eax
mov eax, dword [esp + 0x80]
push eax
push edi
push 1
push ecx
push ebx
call fcn.10067770
mov edx, dword [esp + 0x54]
inc dword [esp + 0x1c]
add dword [esp + 0x54], 4
mov dword [edx], eax
jmp 0x10066753
mov edx, dword [esp + 0x68]
push 0
lea eax, [esp + 0xb0]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x9c]
push ecx
push 0
push 0
push 0
push edx
push eax
push edi
push 0
push ebx
call fcn.100687f0
mov ecx, dword [esp + 0x54]
inc dword [esp + 0x1c]
add dword [esp + 0x54], 4
mov dword [ecx], eax
jmp 0x10066753
xor eax, eax
mov dword [esp + 0xc8], 0xffffffff
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + 0x14]
add ecx, 7
shr ecx, 3
imul ecx, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ecx
test ecx, ecx
jbe 0x10066b05
mov edi, ecx
mov ecx, dword [ebx + 0x40]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov byte [esi], al
inc esi
sub edi, 1
jne 0x10066ad4
jmp 0x10066b05
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ecx
push edx
push 1
push ebx
call fcn.100687f0
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x7c]
xor esi, esi
cmp edi, dword [esp + 0x1c]
jae 0x10066b55
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
lea edx, [eax + ecx*4]
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + edi*4]
push eax
mov eax, dword [esp + 0x24]
push edx
push 0
push esi
push eax
call fcn.10064640
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
mov dword [ecx], eax
add esi, dword [edx + edi*4]
inc edi
add ecx, 4
mov dword [esp + 0x3c], ecx
cmp edi, dword [esp + 0x1c]
jb 0x10066b20
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x10066b65
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x1c], eax
jb 0x10066692
push 0x18
call fcn.100f5c37
add esp, 4
mov dword [esp + 0x4c], eax
mov dword [esp + 0xc8], 2
test eax, eax
je 0x10066c0d
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x80]
push edx
push eax
call fcn.10064d10
mov dword [esp + 0x14], eax
jmp 0x10066c15
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
push str.Bad_delta_height_value_in_JBIG2_symbol_dictionary
mov ecx, ebx
call eax
mov edx, eax
call fcn.1001d950
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x48]
add esp, 4
lea esi, [ebx + ecx*4]
mov edi, edi
mov ecx, dword [esi]
test ecx, ecx
je 0x10066bde
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
add esi, 4
sub edi, 1
jne 0x10066bd0
test ebx, ebx
je 0x10066bf3
push ebx
call fcn.10109eb5
add esp, 4
cmp dword [esp + 0x10], 0
je 0x10066287
mov ecx, dword [esp + 0x10]
push ecx
call fcn.10109eb5
jmp 0x10066284
mov dword [esp + 0x14], 0
mov dword [esp + 0xc8], 0xffffffff
xor edi, edi
xor esi, esi
mov dword [esp + 0x30], edi
cmp dword [esp + 0x6c], edi
jbe 0x10066ce6
cmp dword [esp + 0x24], 0
je 0x10066c50
push 0x10289768
lea eax, [esp + 0x30]
push eax
mov eax, dword [ebx + 0x90]
call fcn.10063d30
jmp 0x10066c61
mov ecx, dword [ebx + 0x60]
mov eax, dword [ebx + 0x4c]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.10063900
cmp dword [esp + 0x30], 0
je 0x10066ccb
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x10066ccf
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + edi*4]
push 0x18
mov dword [esp + 0x50], ecx
inc edi
call fcn.100f5c37
add esp, 4
mov dword [esp + 0x7c], eax
mov dword [esp + 0xc8], 3
test eax, eax
je 0x10066caa
mov edx, dword [esp + 0x4c]
push edx
push eax
call fcn.100644e0
jmp 0x10066cac
xor eax, eax
mov dword [esp + 0xc8], 0xffffffff
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0xc]
mov dword [edx + esi*4], eax
inc esi
sub dword [esp + 0x38], 1
jne 0x10066c74
jmp 0x10066ccf
add edi, dword [esp + 0x2c]
xor eax, eax
cmp dword [esp + 0x30], eax
sete al
mov dword [esp + 0x30], eax
cmp edi, dword [esp + 0x6c]
jb 0x10066c32
mov eax, dword [esp + 0x80]
cmp esi, eax
jae 0x10066d04
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0xc]
mov dword [edx + esi*4], 0
inc esi
cmp esi, eax
jb 0x10066cf5
mov edi, dword [esp + 0x44]
test edi, edi
jbe 0x10066d2d
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
lea esi, [ecx + eax*4]
mov ecx, dword [esi]
test ecx, ecx
je 0x10066d25
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
add esi, 4
sub edi, 1
jne 0x10066d17
cmp dword [esp + 0x18], 0
je 0x10066d41
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10109eb5
add esp, 4
cmp dword [esp + 0x10], 0
je 0x10066d55
mov edx, dword [esp + 0x10]
push edx
call fcn.10109eb5
add esp, 4
cmp dword [esp + 0x24], 0
jne 0x10066d87
cmp dword [esp + 0x88], 0
je 0x10066d87
mov edi, dword [ebx + 0x50]
call fcn.10063620
cmp dword [esp + 0x48], 0
mov esi, dword [esp + 0x14]
mov dword [esi + 0x10], eax
je 0x10066d87
mov edi, dword [ebx + 0x54]
call fcn.10063620
mov dword [esi + 0x14], eax
mov ebx, dword [ebx + 0x38]
mov ecx, dword [ebx + 4]
cmp dword [ebx + 8], ecx
jl 0x10066dcc
mov eax, dword [ebx + 0xc]
test eax, eax
jg 0x10066d9b
mov eax, ecx
add dword [ebx + 4], eax
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
je 0x10066dbb
lea edx, [eax*4]
cmp eax, 0x1ffffffe
ja 0x100666e0
test edx, edx
ja 0x10066df8
test ecx, ecx
je 0x10066dc8
push ecx
call fcn.10109eb5
add esp, 4
xor eax, eax
mov dword [ebx], eax
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x14]
mov dword [ecx + eax*4], edx
mov eax, 1
add dword [ebx + 8], eax
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edx
test ecx, ecx
je 0x10066e08
push ecx
call fcn.1010a05c
add esp, 8
jmp 0x10066e10
call fcn.10109f92
add esp, 4
test eax, eax
jne 0x10066dca
push str.Out_of_memory_n
jmp 0x100666e5