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

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0x14], 0
mov eax, dword [ebx + 0x50]
sub eax, dword [ebx + 0x4c]
and eax, 0xfffffffc
mov dword [esp + 0x2c], ebp
cmp eax, 4
mov dword [esp + 0x1c], 1
mov eax, dword [ebx + 0x50]
sete byte [esp + 0x44]
mov dword [esp + 0x18], 0
sub eax, dword [ebx + 0x4c]
xor esi, esi
sar eax, 2
push edi
test eax, eax
je 0x101ea839
lea ecx, [ecx]
mov eax, dword [ebx + 0x4c]
lea ecx, [ebp + 0xfc]
mov eax, dword [eax + esi*4]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
call fcn.101ddaa0
push eax
mov ecx, ebp
call fcn.101ea770
lea eax, [esp + 0x14]
push eax
lea ecx, [ebp + 0xfc]
call fcn.101ddaa0
mov eax, dword [eax + 0x7c]
inc eax
cmp eax, dword [esp + 0x20]
jle 0x101ea814
lea eax, [esp + 0x14]
push eax
lea ecx, [ebp + 0xfc]
call fcn.101ddaa0
mov eax, dword [eax + 0x7c]
inc eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [ebp + 0xfc]
call fcn.101ddaa0
inc esi
mov ecx, dword [eax + 0x70]
mov eax, dword [ebx + 0x50]
sub eax, dword [ebx + 0x4c]
sar eax, 2
mov dword [esp + 0x1c], ecx
cmp esi, eax
jb 0x101ea7c0
cmp dword [ebp + 0x168], 0
je 0x101ea983
mov eax, dword [ebx + 0x50]
sub eax, dword [ebx + 0x4c]
and eax, 0xfffffffc
cmp eax, 8
jne 0x101ea983
push dword [ebx + 0x4c]
lea ecx, [ebp + 0xfc]
call fcn.101ddaa0
mov edx, dword [ebx + 0x4c]
lea ecx, [ebp + 0xfc]
add edx, 4
mov dword [esp + 0x14], eax
push edx
call fcn.101ddaa0
mov esi, dword [esp + 0x14]
mov edi, eax
mov ecx, dword [esi + 0x50]
sub ecx, dword [esi + 0x4c]
test ecx, 0xfffffffc
jne 0x101ea8c9
mov esi, dword [edi + 0x70]
mov eax, dword [esp + 0x14]
sub esi, 2
mov dword [eax + 0x70], esi
jns 0x101ea8a3
neg esi
jmp 0x101ea8a5
xor esi, esi
push 1
push esi
push edi
mov ecx, ebp
call fcn.101e7e40
push 1
push esi
push dword [esp + 0x1c]
mov ecx, ebp
call fcn.101e7e40
mov ecx, dword [edi + 0x74]
add ecx, esi
mov esi, dword [esp + 0x14]
jmp 0x101ea925
mov eax, dword [edi + 0x50]
mov ecx, ebp
sub eax, dword [edi + 0x4c]
push 1
push 0
push esi
test eax, 0xfffffffc
jne 0x101ea90d
call fcn.101e7e40
mov eax, dword [esi + 0x70]
mov ecx, ebp
push 1
add eax, 2
push eax
push edi
call fcn.101e7e40
mov edx, dword [edi + 0x70]
lea eax, [esi + 0x74]
add edx, 2
lea ecx, [esp + 0x28]
cmp dword [eax], edx
mov dword [esp + 0x28], edx
cmovge ecx, eax
mov ecx, dword [ecx]
jmp 0x101ea925
call fcn.101e7e40
push 1
push dword [esi + 0x74]
mov ecx, ebp
push edi
call fcn.101e7e40
mov ecx, dword [edi + 0x74]
add ecx, dword [esi + 0x74]
cmp ecx, 2
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 2
lea edx, [esp + 0x28]
cmovle eax, edx
mov eax, dword [eax]
mov dword [ebx + 0x74], eax
cmp dword [ebp + 0x168], 1
jne 0x101ea960
mov eax, dword [edi + 0x70]
add eax, dword [esi + 0x70]
cdq
sub eax, edx
sar eax, 1
mov dword [ebx + 0x70], eax
jmp 0x101eab18
cmp byte [esp + 0x48], 0
je 0x101ea973
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x70], eax
jmp 0x101eab18
lea eax, [ecx - 2]
cdq
sub eax, edx
sar eax, 1
mov dword [ebx + 0x70], eax
jmp 0x101eab18
mov esi, dword [ebx + 0x4c]
mov edi, dword [ebx + 0x50]
cmp esi, edi
je 0x101eab0a
add ebp, 0xfc
mov eax, dword [esi]
mov ecx, ebp
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.101eee30
mov ecx, dword [ebp]
mov eax, dword [esp + 0x24]
cmp eax, ecx
jne 0x101eaa26
lea eax, [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
lea ecx, [esp + 0x13]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], eax
push ecx
push 0x1041d78b
push dword [eax + 4]
mov ecx, ebp
push eax
call fcn.101cc910
mov edx, eax
mov ecx, 0x1c71c70
mov eax, dword [ebp + 4]
sub ecx, eax
cmp ecx, 1
jb 0x101eaaef
lea ecx, [eax + 1]
mov eax, dword [esp + 0x2c]
mov dword [ebp + 4], ecx
mov ecx, ebp
mov dword [eax + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov eax, dword [ebp]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.101ce450
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x30]
add eax, 0x10
push 1
push dword [esp + 0x1c]
push eax
call fcn.101e7e40
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.101eee30
mov ecx, dword [ebp]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jne 0x101eaabe
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
lea ecx, [esp + 0x13]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], eax
push ecx
push 0x1041d78b
push dword [eax + 4]
mov ecx, ebp
push eax
call fcn.101cc910
mov edx, eax
mov ecx, 0x1c71c70
mov eax, dword [ebp + 4]
sub ecx, eax
cmp ecx, 1
jb 0x101eaaef
lea ecx, [eax + 1]
mov eax, dword [esp + 0x28]
mov dword [ebp + 4], ecx
mov ecx, ebp
mov dword [eax + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov eax, dword [ebp]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [esp + 0x44]
push eax
call fcn.101ce450
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x18]
add esi, 4
add ecx, dword [eax + 0x84]
mov dword [esp + 0x18], ecx
cmp esi, edi
jne 0x101ea997
cmp ecx, 2
jl 0x101eab0a
cmp byte [esp + 0x48], 0
je 0x101eaafa
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x74], ecx
jmp 0x101eab18
push str.list_T__too_long
call dword [0x102ab0c0]
lea eax, [ecx - 2]
mov dword [ebx + 0x74], ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebx + 0x70], eax
jmp 0x101eab18
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x74], 2
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], eax
pop ebx
add esp, 0x34
ret 4