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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
mov esi, edx
mov dword [esp + 0x1c], ecx
xorps xmm0, xmm0
mov dword [esp + 0x20], esi
push edi
movlpd qword [esp + 0x60], xmm0
mov edx, dword [esi]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov eax, dword [edx]
mov dword [esp + 0x14], eax
mov byte [esp + 0x13], 0
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
cmp byte [ecx + 0x51], 0
jne 0x1008e98f
mov ecx, dword [ebp + 8]
mov ebx, dword [esi + 0x14]
lea ecx, [ecx + ecx*2]
shl ecx, 4
add ebx, ecx
mov dword [esp + 0x18], ecx
lea ecx, [edx + 0x1e8]
mov dword [esp + 0x28], ecx
mov edi, dword [ebx]
mov dword [esp + 0x6c], edi
mov edx, dword [edi + 0xc]
test edx, edx
je 0x1008de70
call fcn.1008eb80
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4c], edx
jmp 0x1008de86
movlpd qword [esp + 0x70], xmm0
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x48], ecx
movzx ecx, byte [edi]
mov dword [esp + 0x2c], ecx
cmp ecx, 0x31
jne 0x1008dec1
mov edx, edi
mov ecx, eax
call fcn.100525d0
test eax, eax
jne 0x1008e98f
test dword [edi + 4], 0x800
mov edx, dword [edi + 0x14]
mov ecx, dword [esp + 0x28]
je 0x1008deba
call fcn.1008dab0
jmp 0x1008def9
call fcn.1008ecc0
jmp 0x1008def9
cmp ecx, 0x32
jne 0x1008ded6
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
jmp 0x1008deff
mov edx, dword [edi + 0x10]
test edx, edx
je 0x1008dee8
mov ecx, dword [esp + 0x28]
call fcn.1008eb80
jmp 0x1008def9
xorps xmm0, xmm0
movlpd qword [esp + 0x70], xmm0
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
mov eax, dword [esp + 0x28]
mov edx, edi
mov ecx, eax
mov dword [eax], 0
call fcn.1008eb80
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
cmp dword [ecx], 0
je 0x1008df2c
mov edx, 0x1000
or word [ebx + 0xa], dx
test byte [edi + 4], 1
je 0x1008df91
movsx edx, word [edi + 0x24]
call fcn.1008efd0
or dword [esp + 0x34], edx
mov ecx, eax
mov eax, dword [esp + 0x30]
or eax, ecx
mov dword [esp + 0x40], ecx
add dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], edx
adc dword [esp + 0x44], 0xffffffff
shrd dword [esp + 0x38], eax, 1
shr eax, 1
cmp eax, edx
jb 0x1008dfa3
ja 0x1008df79
cmp dword [esp + 0x38], ecx
jb 0x1008dfa3
push str.ON_clause_references_tables_to_its_right
push dword [esp + 0x18]
call fcn.1001c650
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x40], ecx
jmp 0x1008dfa7
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x2c], eax
xor eax, eax
mov word [ebx + 0xc], ax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x14], 0xffffffff
mov dword [ebx + 0x10], 0xffffffff
cmp eax, 0x31
je 0x1008e119
cmp eax, 0x35
jl 0x1008dfe0
cmp eax, 0x39
jle 0x1008e119
cmp eax, 0x32
je 0x1008e119
cmp eax, 0x2d
je 0x1008e119
mov al, byte [edi]
cmp al, 0x30
jne 0x1008e0f4
cmp byte [esi + 8], 0x2c
jne 0x1008e0f4
mov eax, dword [edi + 0x14]
add eax, 4
mov dword [esp + 0x4c], 0
mov dword [esp + 0x58], eax
mov edx, dword [eax]
test edx, edx
je 0x1008e032
mov ecx, dword [esp + 0x1c]
push 0
push 0
call fcn.1004f8d0
add esp, 8
mov ebx, eax
jmp 0x1008e034
xor ebx, ebx
mov edx, dword [edi + 0xc]
test edx, edx
je 0x1008e04d
mov ecx, dword [esp + 0x1c]
push 0
push 0
call fcn.1004f8d0
add esp, 8
jmp 0x1008e04f
xor eax, eax
mov ecx, dword [esp + 0x14]
push ebx
push eax
mov eax, dword [esp + 0x54]
movzx edx, byte [eax + 0x100bea3c]
call fcn.1004f310
add esp, 8
test eax, eax
je 0x1008e07d
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
push 3
mov edx, eax
mov ecx, esi
call fcn.1008ca60
mov ebx, dword [esp + 0x28]
add esp, 4
mov ecx, dword [esp + 0x20]
mov esi, eax
mov edx, ebx
push esi
call fcn.1008dde0
mov ecx, dword [ebx + 0x14]
lea edx, [esi + esi*2]
mov eax, dword [esp + 0x1c]
add edx, edx
mov esi, dword [ebp + 8]
add esp, 4
mov dword [ecx + edx*8 + 0x10], esi
lea ebx, [ecx + eax]
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
mov ax, word [ecx + eax + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x18]
inc byte [eax + ecx + 0xe]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x58]
inc ecx
add eax, 0x14
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x58], eax
cmp ecx, 2
jl 0x1008e018
jmp 0x1008e31d
cmp al, 0x2b
jne 0x1008e31d
push dword [ebp + 8]
mov ecx, dword [esp + 0x24]
mov edx, esi
call fcn.1008d2b0
mov ebx, dword [esi + 0x14]
add esp, 4
add ebx, dword [esp + 0x18]
jmp 0x1008e31d
mov edx, dword [edi + 0xc]
test edx, edx
je 0x1008e130
test dword [edx + 4], 0x1000
je 0x1008e130
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x1008e120
mov eax, dword [edi + 0x10]
mov dword [esp + 0x38], eax
test eax, eax
je 0x1008e154
jmp 0x1008e140
test dword [eax + 4], 0x1000
je 0x1008e150
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x1008e140
mov dword [esp + 0x38], eax
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
and ecx, dword [esp + 0x48]
and eax, dword [esp + 0x4c]
or ecx, eax
mov dword [esp + 0x58], 0x1fff
je 0x1008e176
mov dword [esp + 0x58], 0x800
mov eax, dword [ebx + 0x18]
test eax, eax
jle 0x1008e187
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x14]
mov edx, dword [eax + ecx*4 - 0x10]
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
push edx
push dword [esp + 0x54]
lea edx, [esp + 0x7c]
push dword [esp + 0x54]
call fcn.1008dd60
add esp, 0x10
test eax, eax
je 0x1008e1c8
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x74]
mov dword [ebx + 0x1c], eax
call fcn.1008cca0
and ax, word [esp + 0x58]
mov word [ebx + 0xc], ax
mov ecx, dword [esp + 0x2c]
mov eax, 0x800
cmp ecx, 0x2d
jne 0x1008e1da
or word [ebx + 0xa], ax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1008e31d
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x74]
push eax
push dword [ebx + 0x24]
push dword [ebx + 0x20]
call fcn.1008dd60
add esp, 0x10
test eax, eax
je 0x1008e31d
cmp dword [ebx + 0x14], 0
mov dword [esp + 0x60], 0
jl 0x1008e37a
mov ebx, dword [esp + 0x1c]
mov edx, edi
push 0
push 0
mov ecx, ebx
call fcn.1004f8d0
add esp, 8
mov dword [esp + 0x38], eax
cmp byte [ebx + 0x51], 0
je 0x1008e24e
test eax, eax
je 0x1008e98f
mov edx, eax
mov ecx, ebx
call fcn.1004f6f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 3
mov edx, eax
mov ecx, esi
call fcn.1008ca60
add esp, 4
test eax, eax
je 0x1008e98f
push dword [ebp + 8]
lea ebx, [eax + eax*2]
mov edx, eax
shl ebx, 4
mov ecx, esi
add ebx, dword [esi + 0x14]
mov dword [esp + 0x60], ebx
call fcn.1008d160
add esp, 4
cmp dword [esp + 0x2c], 0x2d
jne 0x1008e290
mov eax, 0x800
or word [ebx + 0xa], ax
mov ebx, dword [esi + 0x14]
add ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
or word [ebx + 0xa], 8
call fcn.1008da30
test eax, eax
je 0x1008e2ba
mov eax, 0x800
or word [ebx + 0xc], ax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.1008cbf0
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x4c]
or ecx, dword [esp + 0x44]
or word [edx + 0xa], ax
mov eax, dword [esp + 0x70]
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0x74]
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x48]
or eax, dword [esp + 0x40]
mov dword [edx + 0x20], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [edx + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 0x24], ecx
movzx ecx, byte [eax]
call fcn.1008cca0
add ax, word [esp + 0x60]
and ax, word [esp + 0x58]
mov word [edx + 0xc], ax
cmp byte [esi + 8], 0x2c
jne 0x1008e97a
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x54]
mov edx, edi
push eax
lea eax, [esp + 0x44]
push eax
call fcn.1008ccd0
add esp, 0xc
test eax, eax
je 0x1008e5d5
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x60], eax
test ecx, ecx
je 0x1008e389
push 0
mov edx, ecx
mov ecx, dword [esp + 0x20]
push 0
call fcn.1004f8d0
mov ecx, dword [esp + 0x44]
add esp, 8
mov dword [esp + 0x4c], eax
jmp 0x1008e391
mov eax, edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x38], eax
jmp 0x1008e2be
mov dword [esp + 0x4c], 0
cmp dword [esp + 0x54], 0
je 0x1008e3f9
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cmp byte [eax + 0x51], 0
jne 0x1008e3f9
mov eax, 0x400
or word [ebx + 0xa], ax
xor ebx, ebx
mov eax, dword [ecx + 8]
mov dword [esp + 0x5c], eax
mov cl, byte [eax]
test cl, cl
je 0x1008e3f9
mov edi, dword [esp + 0x3c]
mov esi, eax
movzx edx, cl
movzx eax, byte [edx + 0x100bf5d0]
and al, 0x20
not al
and al, cl
mov byte [esi], al
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 8]
movzx eax, byte [edx + 0x100baa20]
mov byte [ebx + ecx], al
inc ebx
mov esi, dword [edi + 8]
add esi, ebx
mov cl, byte [esi]
test cl, cl
jne 0x1008e3c2
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x51], 0
jne 0x1008e456
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 8]
test edx, edx
jne 0x1008e412
xor ecx, ecx
jmp 0x1008e426
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1008e417
sub ecx, ebx
and ecx, 0x3fffffff
mov al, byte [edx + ecx - 1]
add edx, ecx
cmp dword [esp + 0x54], 0
mov ecx, dword [esp + 0x50]
je 0x1008e447
xor ebx, ebx
cmp al, 0x40
movzx eax, al
cmove ecx, ebx
mov al, byte [eax + 0x100baa20]
inc al
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x1c]
mov byte [edx - 1], al
jmp 0x1008e45e
mov eax, dword [esp + 0x50]
mov dword [esp + 0x58], eax
cmp dword [esp + 0x54], 0
mov eax, 0x100bd15c
mov ebx, 0x100cccec
cmove ebx, eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x6c], ebx
test eax, eax
je 0x1008e48c
push 0
push 0
mov edx, eax
call fcn.1004f8d0
add esp, 8
jmp 0x1008e48e
xor eax, eax
push dword [esp + 0x3c]
mov edx, eax
push ecx
push ebx
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.1004e680
add esp, 8
mov edx, 0x39
mov ecx, ebx
push eax
call fcn.1004f310
add esp, 8
test eax, eax
je 0x1008e4c9
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
push 0x103
mov edx, eax
mov ecx, esi
call fcn.1008ca60
mov ecx, dword [esp + 0x24]
add esp, 4
mov edx, esi
mov dword [esp + 0x5c], eax
push eax
call fcn.1008dde0
mov eax, dword [esp + 0x64]
add esp, 4
test eax, eax
je 0x1008e509
mov ecx, dword [esp + 0x1c]
mov edx, eax
push 0
push 0
call fcn.1004f8d0
add esp, 8
jmp 0x1008e50b
xor eax, eax
push dword [esp + 0x4c]
mov edx, eax
push ecx
push dword [esp + 0x74]
mov ecx, ebx
call fcn.1004e680
add esp, 8
mov edx, 0x38
mov ecx, ebx
push eax
call fcn.1004f310
add esp, 8
test eax, eax
je 0x1008e545
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
push 0x103
mov edx, eax
mov ecx, esi
call fcn.1008ca60
mov ecx, dword [esp + 0x24]
add esp, 4
mov edx, esi
mov dword [esp + 0x6c], eax
push eax
call fcn.1008dde0
mov ecx, dword [esi + 0x14]
add esp, 4
cmp dword [esp + 0x58], 0
mov eax, dword [esp + 0x18]
lea ebx, [ecx + eax]
je 0x1008e5d5
mov eax, dword [esp + 0x5c]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 8]
add edx, edx
mov dword [ecx + edx*8 + 0x10], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
movzx eax, word [ecx + eax + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x18]
inc byte [eax + ecx + 0xe]
mov eax, dword [esp + 0x6c]
mov ecx, dword [ebp + 8]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x14]
add edx, edx
mov dword [eax + edx*8 + 0x10], ecx
mov ecx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
movzx eax, word [ecx + eax + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x18]
inc byte [eax + ecx + 0xe]
cmp byte [esi + 8], 0x2c
jne 0x1008e97a
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x60]
mov dword [esp + 0x64], 0
push eax
lea eax, [esp + 0x1b]
mov dword [esp + 0x64], 0
push eax
mov edx, edi
call fcn.1008cfe0
add esp, 0xc
test eax, eax
jle 0x1008e7e1
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x60], esi
mov dword [esp + 0x54], ecx
dec eax
mov dword [esp + 0x6c], eax
test esi, esi
je 0x1008e642
mov ecx, dword [esp + 0x28]
mov edx, esi
call fcn.1008eb80
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x50], edx
jmp 0x1008e657
xorps xmm0, xmm0
movlpd qword [esp + 0x70], xmm0
mov eax, dword [esp + 0x74]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x58], eax
test ecx, ecx
je 0x1008e66c
mov edx, ecx
mov ecx, dword [esp + 0x28]
call fcn.1008eb80
jmp 0x1008e67d
xorps xmm0, xmm0
movlpd qword [esp + 0x70], xmm0
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
and eax, dword [esp + 0x58]
and edx, dword [esp + 0x50]
or eax, edx
jne 0x1008e7c1
test esi, esi
je 0x1008e6a5
mov ecx, dword [esp + 0x1c]
mov edx, esi
push eax
push eax
call fcn.1004f8d0
add esp, 8
mov ebx, eax
jmp 0x1008e6a7
xor ebx, ebx
mov eax, dword [esp + 0x14]
push 0
push 0x34
mov ecx, dword [eax]
call fcn.10019540
mov esi, eax
add esp, 8
test esi, esi
je 0x1008e70e
push 0x34
push 0
push esi
call sub.MSVCR120.dll_memset
or eax, 0xffffffff
mov byte [esi], 0x2e
add esp, 0xc
mov word [esi + 0x22], ax
test ebx, ebx
je 0x1008e6e8
mov dword [esi + 0x10], ebx
mov eax, dword [ebx + 4]
and eax, 0x200104
or dword [esi + 4], eax
mov ecx, esi
call fcn.1004f040
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x78]
cmp dword [esi + 0x18], eax
jle 0x1008e71f
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
push ecx
call fcn.1001c650
add esp, 0xc
jmp 0x1008e71f
test ebx, ebx
je 0x1008e71f
mov eax, dword [esp + 0x14]
mov edx, ebx
mov ecx, dword [eax]
call fcn.1004f6f0
test byte [edi + 4], 1
je 0x1008e735
test esi, esi
je 0x1008e735
or dword [esi + 4], 1
mov ax, word [edi + 0x24]
mov word [esi + 0x24], ax
mov ebx, dword [esp + 0x24]
mov edx, esi
push 3
mov ecx, ebx
call fcn.1008ca60
mov esi, dword [ebx + 0x14]
add esp, 4
mov ecx, dword [esp + 0x54]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x58]
shl edx, 4
add esi, edx
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x14], eax
movsx eax, word [ecx + 0x20]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x1c], eax
mov eax, 0x40
mov word [esi + 0xc], ax
mov al, byte [esp + 0x13]
mov byte [esi + 0xf], al
mov eax, dword [ebx + 0x14]
mov dword [eax + edx + 0x10], ecx
mov ecx, dword [ebx + 0x14]
mov eax, dword [esp + 0x18]
mov ax, word [ecx + eax + 8]
mov word [ecx + edx + 8], ax
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x18]
inc byte [eax + ecx + 0xe]
mov ebx, dword [ebx + 0x14]
add ebx, ecx
mov eax, dword [ebx + 0x28]
or word [ebx + 0xa], 8
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x2c], eax
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x54]
mov ecx, esi
mov esi, eax
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x60], esi
test eax, eax
jg 0x1008e624
mov esi, dword [esp + 0x24]
cmp byte [esi + 8], 0x2c
jne 0x1008e97a
mov al, byte [edi]
cmp al, 0x35
je 0x1008e7f9
cmp al, 0x2d
jne 0x1008e8e2
mov eax, dword [edi + 0xc]
mov cl, byte [eax]
cmp cl, 0xad
jne 0x1008e806
mov cl, byte [eax + 2]
cmp cl, 0xae
jne 0x1008e810
mov eax, dword [eax + 0x14]
jmp 0x1008e81f
cmp cl, 0x88
jne 0x1008e8e2
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
mov dword [esp + 0x60], edx
cmp edx, 1
jle 0x1008e8e2
mov ecx, dword [edi + 0x10]
call fcn.1004eb60
cmp eax, edx
jne 0x1008e8e2
mov eax, dword [edi + 0xc]
test dword [eax + 4], 0x800
je 0x1008e857
test dword [ecx + 4], 0x800
jne 0x1008e8e2
xor ebx, ebx
test edx, edx
jle 0x1008e8d0
lea ecx, [ecx]
mov edx, dword [edi + 0xc]
mov ecx, dword [esp + 0x14]
push ebx
call fcn.1004eb90
mov edx, dword [edi + 0x10]
add esp, 4
mov ecx, dword [esp + 0x14]
mov esi, eax
push ebx
call fcn.1004eb90
movzx edx, byte [edi]
add esp, 4
mov ecx, dword [esp + 0x14]
push eax
push esi
call fcn.1004f310
add esp, 8
test eax, eax
je 0x1008e8a8
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
mov esi, dword [esp + 0x24]
mov edx, eax
push 1
mov ecx, esi
call fcn.1008ca60
mov ecx, dword [esp + 0x24]
add esp, 4
mov edx, esi
push eax
call fcn.1008dde0
inc ebx
add esp, 4
cmp ebx, dword [esp + 0x60]
jl 0x1008e860
mov ebx, dword [esi + 0x14]
add ebx, dword [esp + 0x18]
or word [ebx + 0xa], 6
xor eax, eax
mov word [ebx + 0xc], ax
cmp byte [esi + 8], 0x2c
jne 0x1008e97a
cmp byte [edi], 0x31
jne 0x1008e97a
cmp dword [ebx + 0x18], 0
jne 0x1008e97a
mov ecx, dword [edi + 0xc]
cmp byte [ecx], 0xae
jne 0x1008e97a
mov eax, dword [edi + 0x14]
cmp dword [eax + 0x34], 0
jne 0x1008e97a
cmp dword [eax + 0x44], 0
jne 0x1008e97a
xor ebx, ebx
call fcn.1004eb60
test eax, eax
jle 0x1008e97a
push 2
mov edx, edi
mov ecx, esi
call fcn.1008ca60
mov esi, eax
inc ebx
mov dword [esp + 0x64], ebx
add esp, 4
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x60]
lea edx, [esi + esi*2]
add edx, edx
mov ecx, dword [ebx + 0x14]
push esi
mov dword [ecx + edx*8 + 0x18], eax
mov edx, ebx
mov ecx, dword [esp + 0x24]
call fcn.1008dde0
add esp, 4
mov edx, esi
mov esi, ebx
mov ecx, esi
push dword [ebp + 8]
call fcn.1008d160
mov ecx, dword [edi + 0xc]
add esp, 4
call fcn.1004eb60
mov ebx, dword [esp + 0x60]
cmp ebx, eax
jl 0x1008e921
mov eax, dword [esi + 0x14]
add eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
or dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x44]
or dword [eax + 0x24], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret