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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
mov ebx, edx
mov dword [esp + 0x18], ecx
push esi
xorps xmm0, xmm0
mov dword [esp + 0x70], ebx
push edi
mov edx, dword [ebx]
movlpd qword [esp + 0x60], xmm0
mov dword [esp + 0x34], 0
mov dword [esp + 0x40], 0
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], 0
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
cmp byte [eax + 0x45], 0
jne 0x520a04
mov eax, dword [ebp + 8]
mov esi, dword [ebx + 0x14]
lea ecx, [eax + eax*2]
shl ecx, 4
lea eax, [edx + 0x1e8]
add esi, ecx
mov dword [esp + 0x18], ecx
mov ecx, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], eax
mov edi, dword [esi]
mov dword [esp + 0x70], edi
mov edx, dword [edi + 0xc]
call fcn.00520bb0
mov dword [esp + 0x54], eax
mov al, byte [edi]
mov byte [esp + 0xf], al
movzx eax, al
mov dword [esp + 0x58], edx
mov dword [esp + 0x48], eax
cmp eax, 0x21
jne 0x51fe1a
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.004ed830
test eax, eax
jne 0x520a04
test dword [edi + 4], 0x800
mov edx, dword [edi + 0x14]
mov ecx, dword [esp + 0x28]
je 0x51fe13
call fcn.0051fb40
jmp 0x51fe3e
call fcn.00520c60
jmp 0x51fe3e
cmp eax, 0x22
jne 0x51fe32
xorps xmm0, xmm0
movlpd qword [esp + 0x68], xmm0
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
jmp 0x51fe3e
mov edx, dword [edi + 0x10]
mov ecx, dword [esp + 0x28]
call fcn.00520bb0
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
mov edx, edi
call fcn.00520bb0
test byte [edi + 4], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
je 0x51fec0
movsx edx, word [edi + 0x24]
mov ecx, dword [esp + 0x28]
call fcn.00520fb0
or dword [esp + 0x30], edx
mov ecx, eax
mov eax, dword [esp + 0x2c]
or eax, ecx
mov dword [esp + 0x38], ecx
add dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], edx
adc dword [esp + 0x3c], 0xffffffff
shrd dword [esp + 0x24], eax, 1
shr eax, 1
cmp eax, edx
jb 0x51fed2
ja 0x51fea8
cmp dword [esp + 0x24], ecx
jb 0x51fed2
push str.ON_clause_references_tables_to_its_right
push dword [esp + 0x14]
call fcn.004bab30
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x38], ecx
jmp 0x51fed6
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x2c], eax
xor eax, eax
mov word [esi + 0xc], ax
mov al, byte [esp + 0xf]
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x10], 0xffffffff
cmp al, 0x21
je 0x520048
cmp al, 0x25
jb 0x51ff0c
cmp al, 0x29
jbe 0x520048
cmp al, 0x22
je 0x520048
cmp al, 0x1d
je 0x520048
mov al, byte [edi]
cmp al, 0x20
jne 0x52001f
cmp byte [ebx + 8], 0x1c
jne 0x520739
mov eax, dword [edi + 0x14]
xor ecx, ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x5c], ecx
mov eax, dword [eax + 4]
mov edx, dword [ecx + eax]
test edx, edx
je 0x51ff63
mov ecx, dword [esp + 0x1c]
push 0
push 0
call fcn.004eb0b0
add esp, 8
mov esi, eax
jmp 0x51ff65
xor esi, esi
mov edx, dword [edi + 0xc]
test edx, edx
je 0x51ff7e
mov ecx, dword [esp + 0x1c]
push 0
push 0
call fcn.004eb0b0
add esp, 8
jmp 0x51ff80
xor eax, eax
mov ecx, dword [esp + 0x10]
push esi
push eax
mov eax, dword [esp + 0x38]
movzx edx, byte [eax + 0x629f8c]
call fcn.004ea9c0
add esp, 8
test eax, eax
je 0x51ffae
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, ebx
call fcn.0051ee00
mov ecx, dword [esp + 0x24]
add esp, 4
mov esi, eax
mov edx, ebx
push esi
call fcn.0051fd50
mov ecx, dword [ebx + 0x14]
lea edx, [esi + esi*2]
mov eax, dword [esp + 0x1c]
add edx, edx
mov esi, dword [esp + 0x1c]
add eax, ecx
inc dword [esp + 0x34]
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ecx + edx*8 + 0x10], eax
mov ecx, dword [ebx + 0x14]
mov ax, word [esi + ecx + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x5c]
add ecx, 0x18
mov dword [esp + 0x5c], ecx
inc byte [eax + esi + 0xe]
mov eax, dword [esp + 0x68]
cmp ecx, 0x30
jl 0x51ff45
jmp 0x5203a4
cmp al, 0x1b
jne 0x5203a8
push dword [ebp + 8]
mov ecx, dword [esp + 0x24]
mov edx, ebx
call fcn.0051f330
mov esi, dword [ebx + 0x14]
add esp, 4
add esi, dword [esp + 0x18]
mov dword [esp + 0x14], esi
jmp 0x5203a8
mov ecx, dword [edi + 0xc]
call fcn.004e9dc0
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x50], eax
call fcn.004e9dc0
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
and edx, dword [esi + 0x20]
and ecx, dword [esi + 0x24]
or edx, ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x5c], 0x1fff
je 0x520082
mov dword [esp + 0x5c], 0x800
mov ecx, dword [esi + 0x18]
mov eax, dword [esp + 0x50]
test ecx, ecx
jle 0x52009a
mov eax, dword [eax + 0x14]
lea ecx, [ecx + ecx*2]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*8 - 0x18]
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x28]
push eax
push dword [esp + 0x64]
push dword [esp + 0x64]
call fcn.0051fc30
mov edx, dword [esp + 0x5c]
add esp, 0x14
test eax, eax
je 0x5200e3
mov eax, dword [esp + 0x4c]
mov ecx, edx
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x1c], eax
call fcn.0051ef70
and ax, word [esp + 0x5c]
mov word [esi + 0xc], ax
cmp byte [esp + 0xf], 0x1d
mov eax, 0x800
jne 0x5200f3
or word [esi + 0xa], ax
mov eax, dword [esp + 0x68]
test eax, eax
je 0x5203a8
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x28]
push eax
push dword [esi + 0x24]
push dword [esi + 0x20]
call fcn.0051fc30
add esp, 0x14
test eax, eax
je 0x5203a8
cmp dword [esi + 0x14], 0
mov dword [esp + 0x68], 0
jl 0x5202d9
mov esi, dword [esp + 0x1c]
mov edx, edi
push 0
push 0
mov ecx, esi
call fcn.004eb0b0
add esp, 8
mov dword [esp + 0x24], eax
cmp byte [esi + 0x45], 0
je 0x52016c
test eax, eax
je 0x520a04
mov edx, eax
mov ecx, esi
call fcn.004eaed0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 3
mov edx, eax
mov ecx, ebx
call fcn.0051ee00
add esp, 4
test eax, eax
je 0x520a04
mov ecx, dword [ebp + 8]
lea esi, [eax + eax*2]
shl esi, 4
mov edx, eax
add esi, dword [ebx + 0x14]
push ecx
mov ecx, ebx
mov dword [esp + 0x64], esi
call fcn.0051f2f0
add esp, 4
cmp byte [esp + 0xf], 0x1d
jne 0x5201af
mov eax, 0x800
or word [esi + 0xa], ax
mov esi, dword [ebx + 0x14]
mov edx, 0x200
add esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], esi
or word [esi + 0xa], 8
mov eax, dword [ecx]
test word [eax + 0x40], dx
jne 0x5202e5
mov eax, dword [esp + 0x24]
mov dl, byte [eax]
cmp dl, 0x25
je 0x5201e8
cmp dl, 0x1d
jne 0x5202e5
test byte [eax + 4], 1
jne 0x5202e5
mov ecx, dword [eax + 0xc]
call fcn.004e9c70
mov edx, dword [esp + 0x24]
mov byte [esp + 0xf], al
mov ecx, dword [edx + 0x10]
call fcn.004e9c70
mov cl, al
mov al, byte [esp + 0xf]
cmp al, cl
je 0x520225
cmp al, 0x43
jl 0x5202e1
cmp cl, 0x43
jl 0x5202e1
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x48], ecx
test dword [edx + 4], 0x100
jne 0x52025e
test ecx, ecx
je 0x52024d
test dword [ecx + 4], 0x100
je 0x52024d
mov edx, ecx
jmp 0x52025e
mov ecx, dword [esp + 0x10]
call fcn.004e9df0
test eax, eax
jne 0x52026b
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
call fcn.004e9df0
test eax, eax
je 0x5202ca
mov ecx, dword [eax]
mov edx, str.BINARY
call fcn.004bace0
test eax, eax
je 0x5202ca
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov edx, dword [edx + 0xc]
call fcn.004e9df0
test eax, eax
je 0x520297
mov eax, dword [eax]
mov dword [esp + 0x48], eax
jmp 0x52029f
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 0x10]
call fcn.004e9df0
test eax, eax
je 0x5202b7
mov eax, dword [eax]
jmp 0x5202b9
xor eax, eax
push eax
push dword [esp + 0x4c]
call fcn.004bacb0
add esp, 8
test eax, eax
jne 0x5202e1
mov eax, 0x800
or word [esi + 0xc], ax
mov dword [esp + 0x68], eax
jmp 0x5202e1
mov dword [esp + 0x24], edi
mov dword [esp + 0x60], esi
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x48], 0x100
mov edx, dword [esi + 0x10]
movzx eax, word [edx + 4]
and ax, word [esp + 0x48]
movzx eax, ax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xc]
movzx eax, word [eax + 4]
and ax, word [esp + 0x48]
cmp word [esp + 0x24], ax
jne 0x52033e
cmp word [esp + 0x24], 0
je 0x520328
and dword [edx + 4], 0xfffffeff
jmp 0x52033e
mov edx, dword [esi + 0xc]
call fcn.004e9df0
test eax, eax
je 0x52033e
mov eax, dword [esi + 0xc]
or dword [eax + 4], 0x100
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x10], eax
mov al, byte [esi]
mov dword [esi + 0xc], ecx
cmp al, 0x26
jb 0x520358
sub al, 0x26
xor al, 2
add al, 0x26
mov byte [esi], al
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x58]
or ecx, dword [esp + 0x3c]
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0x50]
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x54]
or eax, dword [esp + 0x38]
mov dword [edx + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [edx + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 0x24], ecx
mov dword [edx + 0x2c], eax
movzx ecx, byte [esi]
call fcn.0051ef70
add ax, word [esp + 0x68]
and ax, word [esp + 0x5c]
mov word [edx + 0xc], ax
mov esi, dword [esp + 0x14]
cmp byte [ebx + 8], 0x1c
jne 0x520739
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x44]
mov edx, edi
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0051efa0
add esp, 0xc
test eax, eax
je 0x5206ed
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x68], eax
test ecx, ecx
je 0x520408
push 0
mov edx, ecx
mov ecx, dword [esp + 0x20]
push 0
call fcn.004eb0b0
mov ecx, dword [esp + 0x3c]
add esp, 8
mov dword [esp + 0x30], eax
jmp 0x520410
mov dword [esp + 0x30], 0
cmp dword [esp + 0x44], 0
je 0x520476
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp byte [eax + 0x45], 0
jne 0x520476
mov eax, 0x400
or word [esi + 0xa], ax
xor esi, esi
mov eax, dword [ecx + 8]
mov dword [esp + 0x60], eax
mov cl, byte [eax]
test cl, cl
je 0x520476
mov edi, dword [esp + 0x34]
mov ebx, eax
movzx edx, cl
mov al, byte [edx + 0x62a128]
and al, 0x20
not al
and al, cl
mov byte [ebx], al
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 8]
mov al, byte [edx + 0x62ab18]
mov byte [esi + ecx], al
inc esi
mov ebx, dword [edi + 8]
add ebx, esi
mov cl, byte [ebx]
test cl, cl
jne 0x520441
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x45], 0
jne 0x5204d3
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 8]
test edx, edx
jne 0x52048f
xor ecx, ecx
jmp 0x5204a3
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x520494
sub ecx, esi
and ecx, 0x3fffffff
mov al, byte [edx + ecx - 1]
add edx, ecx
cmp dword [esp + 0x44], 0
mov ecx, dword [esp + 0x40]
je 0x5204c4
xor esi, esi
cmp al, 0x40
movzx eax, al
cmove ecx, esi
mov al, byte [eax + 0x62ab18]
inc al
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x1c]
mov byte [edx - 1], al
jmp 0x5204db
mov eax, dword [esp + 0x40]
mov dword [esp + 0x5c], eax
cmp dword [esp + 0x44], 0
mov eax, str.BINARY
mov esi, str.NOCASE
cmove esi, eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x70], esi
test eax, eax
je 0x520509
push 0
push 0
mov edx, eax
call fcn.004eb0b0
add esp, 8
jmp 0x52050b
xor eax, eax
push esi
mov esi, dword [esp + 0x14]
mov edx, eax
mov ecx, esi
call fcn.004e9d60
mov ecx, dword [esi]
add esp, 4
mov dword [esp + 0x74], eax
push 0
push 0x30
call fcn.004b8080
mov esi, eax
add esp, 8
test esi, esi
je 0x52054b
push 0x30
push 0
push esi
call fcn.005d05b0
add esp, 0xc
mov byte [esi], 0x29
or eax, 0xffffffff
mov word [esi + 0x22], ax
mov eax, dword [esp + 0x10]
mov edx, esi
push dword [esp + 0x34]
push dword [esp + 0x78]
mov ecx, dword [eax]
call fcn.004ea950
add esp, 8
test esi, esi
je 0x520595
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
cmp dword [esi + 0x18], eax
jle 0x520584
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
push ecx
call fcn.004bab30
add esp, 0xc
mov eax, dword [edi + 4]
and eax, 1
or dword [esi + 4], eax
mov ax, word [edi + 0x24]
mov word [esi + 0x24], ax
push 0x103
mov edx, esi
mov ecx, ebx
call fcn.0051ee00
mov ecx, dword [esp + 0x24]
add esp, 4
mov edx, ebx
mov dword [esp + 0x60], eax
push eax
call fcn.0051fd50
mov eax, dword [esp + 0x6c]
add esp, 4
test eax, eax
je 0x5205d5
mov ecx, dword [esp + 0x1c]
mov edx, eax
push 0
push 0
call fcn.004eb0b0
add esp, 8
jmp 0x5205d7
xor eax, eax
push dword [esp + 0x70]
mov esi, dword [esp + 0x14]
mov edx, eax
mov ecx, esi
call fcn.004e9d60
mov ecx, dword [esi]
add esp, 4
mov dword [esp + 0x74], eax
push 0
push 0x30
call fcn.004b8080
mov esi, eax
add esp, 8
test esi, esi
je 0x52061a
push 0x30
push 0
push esi
call fcn.005d05b0
add esp, 0xc
mov byte [esi], 0x28
or eax, 0xffffffff
mov word [esi + 0x22], ax
mov eax, dword [esp + 0x10]
mov edx, esi
push dword [esp + 0x30]
push dword [esp + 0x78]
mov ecx, dword [eax]
call fcn.004ea950
add esp, 8
test esi, esi
je 0x520664
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
cmp dword [esi + 0x18], eax
jle 0x520653
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
push ecx
call fcn.004bab30
add esp, 0xc
mov eax, dword [edi + 4]
and eax, 1
or dword [esi + 4], eax
mov ax, word [edi + 0x24]
mov word [esi + 0x24], ax
push 0x103
mov edx, esi
mov ecx, ebx
call fcn.0051ee00
mov ecx, dword [esp + 0x24]
add esp, 4
mov esi, eax
mov edx, ebx
push esi
call fcn.0051fd50
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [ebx + 0x14]
add eax, ecx
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x14], eax
je 0x5206ed
mov eax, dword [esp + 0x60]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 8]
add edx, edx
mov dword [ecx + edx*8 + 0x10], eax
mov ecx, dword [ebx + 0x14]
mov eax, dword [esp + 0x18]
movzx eax, word [ecx + eax + 8]
mov word [ecx + edx*8 + 8], ax
lea edx, [esi + esi*2]
mov eax, dword [ebx + 0x14]
add edx, edx
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x18]
inc byte [eax + ecx + 0xe]
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp + 8]
mov dword [eax + edx*8 + 0x10], ecx
mov ecx, dword [ebx + 0x14]
movzx eax, word [ecx + esi + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [ebx + 0x14]
inc byte [eax + esi + 0xe]
cmp byte [ebx + 8], 0x1c
jne 0x520739
cmp byte [edi], 0x97
jne 0x520739
mov eax, dword [edi + 0x14]
test eax, eax
je 0x520739
cmp dword [eax], 2
jne 0x520739
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x18]
cmp byte [eax], 0x98
jne 0x520739
mov eax, dword [eax + 0x2c]
cmp dword [eax + 0x38], 0
je 0x520739
xor esi, esi
nop word [eax + eax]
mov edx, dword [esi*8 + 0x629648]
mov ecx, dword [edi + 8]
call fcn.004bace0
test eax, eax
je 0x520773
inc esi
cmp esi, 4
jl 0x520720
mov edx, dword [esp + 0x14]
cmp byte [ebx + 8], 0x1c
jne 0x5209ef
mov al, byte [edi]
cmp al, 0x25
je 0x520755
cmp al, 0x1d
jne 0x520929
mov eax, dword [edi + 0xc]
mov cl, byte [eax]
cmp cl, 0x9d
jne 0x520762
mov cl, byte [eax + 0x26]
cmp cl, 0x9e
jne 0x520854
add eax, 0x14
jmp 0x520860
mov al, byte [esi*8 + 0x62964c]
mov ecx, dword [esp + 0x28]
mov byte [esp + 0xf], al
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 4]
mov esi, dword [eax]
mov edx, esi
mov eax, dword [eax + 0x18]
mov dword [esp + 0x5c], eax
call fcn.00520bb0
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x68], eax
call fcn.00520bb0
and eax, dword [esp + 0x68]
and edx, dword [esp + 0x60]
or eax, edx
jne 0x520739
test esi, esi
je 0x5207cf
mov ecx, dword [esp + 0x1c]
mov edx, esi
push eax
push eax
call fcn.004eb0b0
add esp, 8
jmp 0x5207d1
xor eax, eax
mov ecx, dword [esp + 0x10]
mov edx, 0x1e
push eax
push 0
call fcn.004ea9c0
push 3
mov edx, eax
mov ecx, ebx
call fcn.0051ee00
mov ecx, dword [esp + 0x68]
mov edx, eax
mov eax, dword [esp + 0x74]
add esp, 0xc
lea esi, [edx + edx*2]
push dword [ebp + 8]
shl esi, 4
add esi, dword [ebx + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x64]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x14], eax
movsx eax, word [ecx + 0x20]
mov ecx, ebx
mov dword [esi + 0x1c], eax
mov eax, 0x40
mov word [esi + 0xc], ax
mov al, byte [esp + 0x13]
mov byte [esi + 0xf], al
call fcn.0051f2f0
mov edx, dword [ebx + 0x14]
add esp, 4
add edx, dword [esp + 0x18]
mov eax, dword [edx + 0x28]
or word [edx + 0xa], 8
mov dword [esi + 0x28], eax
mov eax, dword [edx + 0x2c]
mov dword [esi + 0x2c], eax
jmp 0x52073d
cmp cl, 0x77
jne 0x520929
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov esi, dword [eax]
mov dword [esp + 0x74], esi
cmp esi, 1
jle 0x520929
mov ecx, dword [edi + 0x10]
call fcn.004ea0a0
cmp eax, esi
jne 0x520929
mov eax, dword [edi + 0xc]
test dword [eax + 4], 0x800
je 0x52089a
test dword [ecx + 4], 0x800
jne 0x520929
xor eax, eax
mov dword [esp + 0x5c], eax
test esi, esi
jle 0x52091b
mov edx, dword [edi + 0xc]
mov ecx, dword [esp + 0x10]
push eax
call fcn.004ea0d0
mov edx, dword [edi + 0x10]
add esp, 4
mov ecx, dword [esp + 0x10]
mov esi, eax
push dword [esp + 0x5c]
call fcn.004ea0d0
movzx edx, byte [edi]
add esp, 4
mov ecx, dword [esp + 0x10]
push eax
push esi
call fcn.004ea9c0
add esp, 8
test eax, eax
je 0x5208ef
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
push 1
mov edx, eax
mov ecx, ebx
call fcn.0051ee00
mov ecx, dword [esp + 0x24]
add esp, 4
mov edx, ebx
push eax
call fcn.0051fd50
mov eax, dword [esp + 0x60]
add esp, 4
inc eax
mov dword [esp + 0x5c], eax
cmp eax, dword [esp + 0x74]
jl 0x5208a4
mov edx, dword [ebx + 0x14]
add edx, dword [esp + 0x18]
mov dword [edx + 0xa], 6
cmp byte [ebx + 8], 0x1c
jne 0x5209ef
cmp byte [edi], 0x21
jne 0x5209ef
cmp dword [edx + 0x18], 0
jne 0x5209ef
mov eax, dword [edi + 0xc]
cmp byte [eax], 0x9e
jne 0x5209ef
mov eax, dword [edi + 0x14]
cmp dword [eax + 0x30], 0
jne 0x5209ef
xor edx, edx
mov dword [esp + 0x5c], edx
mov ecx, dword [edi + 0xc]
mov al, byte [ecx]
cmp al, 0x9d
jne 0x520971
mov al, byte [ecx + 0x26]
cmp al, 0x9e
jne 0x52097c
mov eax, dword [ecx + 0x14]
mov eax, dword [eax]
jmp 0x52098e
cmp al, 0x77
jne 0x520989
mov eax, dword [ecx + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x52098e
mov eax, 1
cmp edx, eax
jge 0x5209ef
push 2
mov edx, edi
mov ecx, ebx
call fcn.0051ee00
mov ecx, dword [ebx + 0x14]
add esp, 4
mov edx, dword [esp + 0x5c]
inc edx
lea esi, [eax + eax*2]
mov dword [esp + 0x5c], edx
add esi, esi
push eax
mov dword [ecx + esi*8 + 0x18], edx
mov edx, ebx
mov ecx, dword [esp + 0x24]
call fcn.0051fd50
mov eax, dword [ebx + 0x14]
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x18]
mov dword [eax + esi*8 + 0x10], ecx
mov ecx, dword [ebx + 0x14]
mov ax, word [ecx + edx + 8]
mov word [ecx + esi*8 + 8], ax
mov eax, dword [ebx + 0x14]
inc byte [eax + edx + 0xe]
mov edx, dword [esp + 0x5c]
jmp 0x520965
mov eax, dword [ebx + 0x14]
add eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
or dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x3c]
or dword [eax + 0x24], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret