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

Disassembly:
sub esp, 0xb0
mov eax, dword [esp + 0xb8]
push ebx
push ebp
lea eax, [eax + eax*4]
shl eax, 4
push esi
mov esi, dword [esp + 0xc0]
mov ebx, dword [esi]
mov ebp, dword [ebx + 8]
lea edx, [esi + 0x50]
mov dword [esp + 0x78], edx
mov edx, dword [ebx]
push edi
lea edi, [eax + esi + 0x2f0]
movzx eax, byte [edi + 0x2c]
mov dword [esp + 0x64], edx
mov edx, dword [edi + 0x40]
lea eax, [eax + eax*8]
mov dword [esp + 0x44], edx
mov edx, dword [esi + 4]
lea eax, [edx + eax*8 + 8]
mov dword [esp + 0x78], eax
mov eax, dword [eax + 0x2c]
xor ecx, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x1ec]
cmp eax, ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], ecx
jle 0x508269
lea ecx, [esi + 0x1f0]
lea esp, [esp]
mov edx, dword [esp + 0x34]
cmp dword [ecx], edx
je 0x508420
inc dword [esp + 0x28]
add ecx, 4
cmp dword [esp + 0x28], eax
jl 0x508250
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0xc8]
not eax
and eax, dword [esp + 0xcc]
not edx
and edx, dword [esp + 0xd0]
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], edx
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
call fcn.0058e500
and eax, 1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
test byte [eax + 0x24], 0x40
je 0x5082b6
test byte [esi + 0x2c], 0x20
mov dword [esp + 0x30], 1
je 0x5082be
mov dword [esp + 0x30], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x3c]
lea edx, [ecx + 1]
mov dword [eax + 0x3c], edx
lea edx, [ecx - 1]
mov dword [esp + 0x60], eax
mov dword [esp + 0x14], ecx
test ecx, edx
jne 0x50830e
mov eax, ecx
lea ecx, [eax*8 + 4]
mov eax, dword [esp + 0x60]
mov edi, dword [eax + 0x40]
mov esi, dword [eax]
push 0
push ecx
call fcn.004c3800
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0xcc]
mov dword [edx + 0x40], eax
add esp, 8
mov eax, edx
mov eax, dword [eax + 0x40]
test eax, eax
je 0x50831c
mov dword [eax + ecx*4], 0xffffffff
or eax, 0xffffffff
sub eax, ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0x3c]
lea edx, [eax + 1]
mov dword [ecx + 0x3c], edx
lea edx, [eax - 1]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x14], eax
test eax, edx
jne 0x508379
lea ecx, [eax*8 + 4]
mov eax, dword [esp + 0x60]
mov edi, dword [eax + 0x40]
mov esi, dword [eax]
push 0
push ecx
call fcn.004c3800
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0xcc]
mov dword [edx + 0x40], eax
mov eax, dword [esp + 0x1c]
add esp, 8
mov ecx, edx
mov ecx, dword [ecx + 0x40]
test ecx, ecx
je 0x508387
mov dword [ecx + eax*4], 0xffffffff
mov edx, dword [esp + 0x78]
or ecx, 0xffffffff
sub ecx, eax
cmp byte [edi + 0x2c], 0
mov dword [esp + 0x60], ecx
mov dword [edi + 0x18], ecx
jbe 0x5083c2
test byte [edx + 0x24], 8
je 0x5083c2
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
push 0
push eax
push 0
push 0x46
push ebp
mov dword [edi], eax
call fcn.004c5570
mov edx, dword [esp + 0x8c]
add esp, 0x14
mov eax, dword [esp + 0xc8]
test eax, eax
jle 0x5083dd
mov ecx, edi
nop
cmp dword [ecx], 0
jne 0x5083dd
dec eax
sub ecx, 0x50
test eax, eax
jg 0x5083d0
lea eax, [eax + eax*4]
shl eax, 4
mov ecx, dword [eax + esi + 0x2fc]
mov dword [esp + 0x48], ecx
mov ecx, dword [edx + 0x28]
test cl, 0x10
je 0x5084c5
mov ebx, dword [edx + 0x1c]
mov ecx, dword [edx + 0x18]
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
jg 0x508435
push ecx
push 0
push ebx
push 0xd
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50845f
mov ecx, dword [esp + 0x28]
mov eax, 1
xor edx, edx
call fcn.0058e3c0
jmp 0x50826d
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 0xd
mov word [eax + 2], dx
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov ecx, dword [ebp + 0x88]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x50848a
mov ecx, dword [esp + 0x40]
push 0
push ecx
push ebx
push 0xe
mov esi, ebp
call fcn.004c5530
add esp, 0x10
mov byte [edi + 0x2d], 0xb
jmp 0x509bf7
lea edx, [ecx + 1]
mov dword [ebp + 0x88], edx
mov edx, dword [ebp + 0x58]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], edx
xor edx, edx
mov byte [eax], 0xe
mov dword [eax + 4], ebx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov eax, ecx
mov byte [edi + 0x2d], 0xb
jmp 0x509bf7
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 0x24]
mov dword [esp + 0x28], edx
test edx, 0x400
je 0x508923
movzx ecx, word [eax + 0x28]
mov dword [esp + 0x10], ecx
add ecx, 2
cmp ecx, 1
jne 0x508518
mov cl, byte [ebx + 0x13]
test cl, cl
jne 0x508501
inc dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x2c]
mov edx, ecx
mov dword [esp + 0x2c], edx
jmp 0x508547
dec cl
mov byte [ebx + 0x13], cl
movzx ecx, cl
mov ecx, dword [ebx + ecx*4 + 0x90]
mov edx, ecx
mov dword [esp + 0x2c], edx
jmp 0x508547
mov edx, dword [ebx + 0x1c]
cmp ecx, edx
mov esi, dword [ebx + 0x20]
mov dword [esp + 0x30], esi
jg 0x508536
add esi, ecx
sub edx, ecx
mov dword [ebx + 0x20], esi
mov esi, dword [esp + 0x30]
mov dword [ebx + 0x1c], edx
jmp 0x508541
mov edx, dword [ebx + 0x2c]
add ecx, edx
lea esi, [edx + 1]
mov dword [ebx + 0x2c], ecx
mov edx, esi
mov dword [esp + 0x2c], esi
mov ecx, dword [edi + 0xc]
xor esi, esi
cmp dword [esp + 0x10], esi
mov dword [esp + 0x20], ecx
jle 0x5085b7
add edx, 2
mov dword [esp + 0x28], edx
lea ecx, [ecx]
mov edx, dword [eax + 0x30]
mov ecx, dword [edx + esi*4]
test ecx, ecx
je 0x5085a8
test byte [ecx + 0xc], 1
je 0x50858f
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
push edx
push esi
push edi
push ecx
push ebx
call fcn.005079d0
mov eax, dword [edi + 0x10]
add esp, 0x18
mov dword [esp + 0x20], eax
jmp 0x5085a4
mov edx, dword [esp + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
push 1
push edx
push ebx
call fcn.004c9da0
add esp, 0xc
mov eax, dword [esp + 0x44]
inc dword [esp + 0x28]
inc esi
cmp esi, dword [esp + 0x10]
jl 0x508560
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax + 0x18]
mov eax, dword [ebp + 0x88]
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x30], eax
jg 0x5085e0
mov edx, dword [esp + 0x2c]
push 0
push edx
push ecx
push 0x46
mov esi, ebp
call fcn.004c5530
add esp, 0x10
xor edx, edx
jmp 0x50860c
lea esi, [eax + 1]
mov dword [ebp + 0x88], esi
mov esi, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
xor esi, esi
mov dword [eax + 8], edx
xor edx, edx
mov byte [eax], 0x46
mov word [eax + 2], si
mov dword [eax + 4], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x88]
mov esi, dword [ebp + 0xc]
inc ecx
cmp dword [esi + 0x30], eax
jg 0x508635
push 0
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push 0x46
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x508664
lea esi, [eax + 1]
mov dword [ebp + 0x88], esi
mov esi, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
xor esi, esi
mov word [eax + 2], si
mov esi, dword [esp + 0x10]
mov byte [eax], 0x46
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0
mov eax, dword [esp + 0x44]
movzx ecx, byte [eax + 0x1c]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 0xc]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffa
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x88]
dec ecx
cmp dword [eax + 0x30], edx
mov dword [esp + 0x30], ecx
jg 0x5086ae
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
push 9
mov esi, ebp
call fcn.004c5530
mov ecx, dword [esp + 0x40]
add esp, 0x10
jmp 0x5086eb
mov esi, dword [ebp + 0x58]
lea eax, [edx + 1]
mov dword [ebp + 0x88], eax
lea eax, [edx + edx*4]
lea eax, [esi + eax*4]
xor esi, esi
mov word [eax + 2], si
mov esi, dword [esp + 0x34]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x20]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x2c]
mov byte [eax], 9
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, edx
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push eax
push ebp
call fcn.004bffe0
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xd4]
mov esi, dword [esp + 0x20]
mov byte [edx + 0x1c], 0
mov dword [edi + 0x30], eax
mov dl, byte [ecx + 0x31]
add esp, 0x10
neg dl
sbb dl, dl
and dl, 0x6f
add dl, 0x3c
mov byte [edi + 0x2d], dl
mov eax, dword [ebp + 0x88]
add esi, 0xffffffff
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esp + 0x1c], esi
js 0x509bfa
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
mov dword [esp + 0x30], edx
jmp 0x508758
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
cmp esi, 0x10
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x30]
mov ecx, dword [ecx + esi*4]
mov dword [esp + 0x24], ecx
jge 0x508789
mov ax, word [eax + 0x1e]
mov cx, si
shr ax, cl
test al, 1
je 0x508789
mov eax, dword [esp + 0x24]
mov esi, edi
call fcn.004b9150
jmp 0x50890d
mov ecx, dword [esp + 0x24]
test byte [ecx + 0xc], 1
je 0x50890d
mov eax, dword [esp + 0x64]
cmp byte [eax + 0x49], 0
jne 0x508836
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx + edx - 0x10]
sub edx, 0x14
mov dword [esp + 0x30], edx
test eax, eax
jge 0x5087be
mov eax, dword [ebp + 0x88]
dec eax
mov edx, dword [ebp]
cmp byte [edx + 0x49], 0
je 0x5087ce
mov eax, 0x6413f8
jmp 0x5087d7
mov ecx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
movzx edx, byte [eax]
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 8]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0x88]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
jg 0x508809
mov eax, dword [esp + 0x14]
push esi
push edi
push ecx
push eax
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x508836
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dl, byte [esp + 0x14]
mov byte [eax], dl
xor edx, edx
mov word [eax + 2], dx
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov eax, dword [ebx]
push 0
push 0x34
call fcn.004bbd30
mov edi, eax
add esp, 8
test edi, edi
je 0x50890d
push 0x34
push 0
push edi
call fcn.00585e50
or eax, 0xffffffff
push edi
mov byte [edi], 0x35
mov word [edi + 0x22], ax
call fcn.004c1470
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x70]
add esp, 0x10
cmp dword [edi + 0x18], eax
jle 0x508885
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
mov esi, ebx
call fcn.004d3340
add esp, 8
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x64]
push 0
push 0x35
mov dword [edi + 0xc], ecx
call fcn.004bbd30
mov esi, eax
add esp, 8
test esi, esi
je 0x5088ce
push 0x34
push 0
push esi
call fcn.00585e50
add esp, 0xc
lea eax, [esi + 0x34]
or edx, 0xffffffff
mov byte [esi], 0xa4
mov word [esi + 0x22], dx
mov dword [esi + 8], eax
mov byte [eax], 0
mov dword [esi + 0x18], 1
mov dword [edi + 0x10], esi
test esi, esi
je 0x5088f8
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + ecx + 2]
mov eax, dword [esp + 0x38]
mov dword [esi + 0x1c], edx
mov ecx, dword [eax + 0x18]
push 0
push ecx
push edi
push ebx
call fcn.005140e0
add esp, 0x10
mov edx, dword [esp + 0x64]
push edi
push edx
mov dword [edi + 0xc], 0
call fcn.004c6ab0
add esp, 8
mov esi, dword [esp + 0x1c]
sub esi, 1
mov dword [esp + 0x1c], esi
jns 0x508750
jmp 0x509bfa
mov edx, dword [esp + 0x28]
and edx, 0x100
je 0x50898f
test byte [esp + 0x28], 5
je 0x50898f
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx]
inc dword [ebx + 0x2c]
mov esi, dword [ebx + 0x2c]
mov edx, dword [esp + 0x24]
push esi
push edx
push 0
push edi
push eax
push ebx
call fcn.005079d0
add esp, 0x18
cmp eax, esi
je 0x508971
test esi, esi
je 0x508971
mov cl, byte [ebx + 0x13]
cmp cl, 8
jae 0x508971
movzx ecx, cl
mov dword [ebx + ecx*4 + 0x90], esi
inc byte [ebx + 0x13]
mov edx, dword [edi + 0x10]
push eax
mov eax, dword [esp + 0x38]
push edx
push eax
push 0x1e
push ebp
call fcn.004c5570
add esp, 0x14
mov byte [edi + 0x2d], 0xab
jmp 0x509bfa
test edx, edx
mov edx, dword [esp + 0x28]
je 0x508bea
test dl, 2
je 0x508bea
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x58], 0xab
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], esi
test dl, 0x20
je 0x5089cf
mov ecx, dword [eax + 0x30]
mov esi, dword [ecx]
mov dword [esp + 0x20], esi
mov ecx, 1
test dl, 0x10
je 0x5089de
mov edx, dword [eax + 0x30]
mov eax, dword [edx + ecx*4]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x24], 0
je 0x5089f3
mov eax, esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], eax
test esi, esi
je 0x508ad2
mov esi, dword [esi]
mov dword [esp + 0x48], esi
mov esi, dword [esi + 0x10]
mov ecx, esi
mov byte [esp + 0x2c], 0x19
mov byte [esp + 0x2d], 0x17
mov byte [esp + 0x2e], 0x16
mov byte [esp + 0x2f], 0x18
call fcn.004c13d0
test eax, eax
je 0x508a6f
mov al, byte [ebx + 0x13]
test al, al
jne 0x508a32
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
jmp 0x508a41
dec al
movzx ecx, al
mov byte [ebx + 0x13], al
mov eax, dword [ebx + ecx*4 + 0x90]
mov edx, dword [esp + 0x48]
push 1
push eax
mov esi, eax
mov dword [esp + 0x38], eax
mov eax, dword [edx + 0x10]
push ebx
call fcn.004c9da0
mov eax, dword [esp + 0x54]
movzx ecx, byte [eax]
inc ecx
and ecx, 2
add esp, 0xc
or ecx, 1
movzx eax, byte [esp + ecx + 0x2c]
jmp 0x508a9f
lea edx, [esp + 0x54]
mov eax, esi
push edx
mov esi, ebx
call fcn.004ee770
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
add esp, 4
mov esi, edi
call fcn.004b9150
mov eax, dword [esp + 0x48]
movzx ecx, byte [eax]
movzx eax, byte [esp + ecx - 0xa]
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x38]
push ecx
push edx
push eax
push ebp
call fcn.004c5570
add esp, 0x14
test esi, esi
je 0x508af8
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x508af8
movzx eax, al
mov dword [ebx + eax*4 + 0x90], esi
inc byte [ebx + 0x13]
jmp 0x508af8
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
xor eax, eax
cmp dword [esp + 0x24], eax
push 0
sete al
push ecx
push edx
lea eax, [eax*4 + 0x20]
push eax
push ebp
call fcn.004c5570
add esp, 0x14
cmp dword [esp + 0x10], 0
je 0x508b6f
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx]
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
push 1
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x10]
push ebx
call fcn.004c9da0
mov ecx, dword [esi + 0x10]
add esp, 0xc
call fcn.004c13d0
test eax, eax
jne 0x508b47
mov al, byte [esi]
cmp al, 0x38
je 0x508b34
cmp al, 0x36
jne 0x508b47
xor edx, edx
cmp dword [esp + 0x24], edx
sete dl
lea edx, [edx + edx + 0x37]
mov dword [esp + 0x58], edx
jmp 0x508b58
xor eax, eax
cmp dword [esp + 0x24], eax
setne al
lea eax, [eax + eax + 0x36]
mov dword [esp + 0x58], eax
mov ecx, dword [esi + 0x10]
call fcn.004c13d0
test eax, eax
jne 0x508b6f
mov eax, dword [esp + 0x10]
mov esi, edi
call fcn.004b9150
cmp dword [esp + 0x24], 0
mov eax, dword [ebp + 0x88]
mov esi, dword [esp + 0x58]
sete cl
add cl, 4
mov byte [edi + 0x2d], cl
mov ecx, dword [esp + 0x34]
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], eax
cmp esi, 0xab
je 0x509bfa
inc dword [ebx + 0x2c]
mov ebx, dword [ebx + 0x2c]
push 0
push ebx
push ecx
push 0x81
push ebp
call fcn.004c5570
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x28]
push ebx
push edx
push eax
push esi
push ebp
call fcn.004c5570
mov eax, dword [ebp + 0x88]
add esp, 0x28
test eax, eax
jle 0x509bfa
mov edx, dword [ebp + 0x58]
lea ecx, [eax + eax*4]
mov eax, 0x53
mov word [edx + ecx*4 - 0x12], ax
jmp 0x509bfa
test edx, 0x200
je 0x5093b2
test byte [esi + 0x2c], 1
movzx ecx, word [eax + 0x18]
mov dword [esp + 0x3c], ecx
movzx ecx, word [eax + 0x1a]
movzx edx, cx
mov dword [esp + 0x40], edx
movzx edx, word [eax + 0x1c]
mov dword [esp + 0x14], edx
movzx edx, dx
mov dword [esp + 0x54], edx
mov edx, dword [eax + 0x20]
mov dword [esp + 0x5c], edx
mov edx, dword [edi + 8]
mov dword [esp + 0x70], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x28], 0
mov byte [esp + 0x1b], 0
mov byte [esp + 0x6f], 0
mov dword [esp + 0x1c], edx
je 0x508c78
cmp byte [esi + 0x2f], 0
jle 0x508c78
mov edx, dword [esp + 0x5c]
mov dx, word [edx + 0x32]
cmp dx, word [esp + 0x3c]
jbe 0x508c78
mov byte [esp + 0x1b], 1
mov dword [esp + 0x10], 1
test byte [eax + 0x24], 0x20
movzx esi, word [esp + 0x3c]
mov dword [esp + 0x50], esi
je 0x508c9f
mov edx, dword [eax + 0x30]
mov edx, dword [edx + esi*4]
movzx ecx, cx
inc esi
cmp dword [esp + 0x10], ecx
mov dword [esp + 0x70], edx
jg 0x508c9f
mov dword [esp + 0x10], ecx
test byte [eax + 0x24], 0x10
je 0x508d4a
mov eax, dword [eax + 0x30]
mov esi, dword [eax + esi*4]
movzx eax, word [esp + 0x14]
cmp dword [esp + 0x10], eax
mov dword [esp + 0x68], esi
jg 0x508cc2
mov dword [esp + 0x10], eax
mov ecx, 0x100
test word [esi + 0xa], cx
je 0x508d12
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
push 0
push eax
push 1
push 0x46
push ebp
mov dword [edi + 0x24], eax
call fcn.004c5570
mov edx, dword [ebp + 0x88]
shl dword [edi + 0x24], 1
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x64]
mov eax, dword [edi + 0x24]
mov dword [edi + 0x28], edx
mov edx, dword [ecx + 0x1c]
xor ecx, ecx
add esp, 0x14
cmp byte [esi + edx], 1
sete cl
xor ecx, dword [esp + 0x24]
or ecx, eax
mov dword [edi + 0x24], ecx
cmp dword [esp + 0x70], 0
mov ecx, dword [esp + 0x5c]
jne 0x508d4e
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x50]
movsx eax, word [edx + eax*2]
test eax, eax
jl 0x508d3e
mov edx, dword [ecx + 0xc]
mov edx, dword [edx + 4]
mov esi, eax
shl esi, 4
cmp byte [edx + esi + 0xc], 0
je 0x508d43
cmp eax, 0xfffffffe
jne 0x508d4e
mov byte [esp + 0x1b], 1
jmp 0x508d4e
mov ecx, dword [esp + 0x5c]
movzx eax, word [ecx + 0x32]
cmp word [esp + 0x3c], ax
jae 0x508d6e
mov ecx, dword [ecx + 0x1c]
mov esi, dword [esp + 0x50]
xor edx, edx
cmp byte [esi + ecx], dl
sete dl
cmp dword [esp + 0x24], edx
je 0x508d7c
cmp dword [esp + 0x24], 0
je 0x508db1
cmp ax, word [esp + 0x3c]
jne 0x508db1
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
movzx edx, word [esp + 0x54]
mov dword [esp + 0x70], eax
mov al, byte [esp + 0x1b]
mov byte [esp + 0x6f], al
mov al, byte [esp + 0x40]
movzx ax, al
mov dword [esp + 0x68], ecx
movzx ecx, ax
mov byte [esp + 0x1b], 0
mov dword [esp + 0x40], edx
mov dword [esp + 0x54], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
push edi
push ebx
call fcn.00507ea0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
add esp, 0x14
test eax, eax
je 0x508df5
cmp word [esp + 0x54], 0
je 0x508df5
mov edx, dword [esp + 0x50]
add edx, eax
mov eax, dword [esp + 0x64]
push edx
call fcn.004c3870
add esp, 4
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x70]
mov dl, 0x28
test eax, eax
je 0x508e1a
test byte [eax + 0xc], dl
jne 0x508e1a
mov dword [esp + 0x74], 0
mov esi, 1
jmp 0x508e23
mov esi, 1
mov dword [esp + 0x74], esi
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x508e38
mov dword [esp + 0x48], 0
test byte [ecx + 0xc], dl
je 0x508e3c
mov dword [esp + 0x48], esi
test eax, eax
jne 0x508e4b
mov dword [esp + 0x14], eax
cmp word [esp + 0x3c], ax
jbe 0x508e4f
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x3c], esi
test eax, eax
je 0x508f16
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
mov esi, dword [edx + 0x10]
movzx eax, word [esp + 0x40]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
push eax
add ecx, edx
push ecx
push ebx
mov eax, esi
mov dword [esp + 0x64], ecx
call fcn.004c9da0
mov eax, dword [esp + 0x7c]
push eax
mov edx, edi
mov ecx, ebp
call fcn.004b91c0
add esp, 0x10
mov eax, esi
call fcn.004b63e0
test eax, eax
je 0x508eb8
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x58]
push 0
push ecx
push edx
push 0x32
push ebp
call fcn.004c5570
add esp, 0x14
cmp dword [esp + 0x2c], 0
je 0x508ed9
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x50]
add eax, ecx
push eax
movzx eax, word [esp + 0x44]
push eax
push esi
call fcn.004c9cd0
add esp, 0xc
movzx eax, word [esp + 0x40]
add dword [esp + 0x3c], eax
mov ecx, esi
call fcn.004c13d0
test eax, eax
jne 0x508f03
mov eax, dword [esp + 0x70]
mov esi, edi
call fcn.004b9150
mov esi, dword [esp + 0x3c]
mov byte [esp + 0x1b], 0
jmp 0x508f46
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x74], 1
mov byte [esp + 0x1b], 0
jmp 0x508f46
cmp byte [esp + 0x1b], 0
je 0x508f46
mov eax, dword [esp + 0x10]
push 0
mov edx, esi
add edx, eax
push edx
push 0
push 0x49
push ebp
call fcn.004c5570
add esp, 0x14
inc esi
mov dword [esp + 0x74], 0
mov dword [esp + 0x14], 1
movzx edx, byte [esp + 0x1b]
mov ecx, dword [esp + 0x2c]
push ecx
mov eax, esi
sub eax, edx
push eax
mov eax, dword [esp + 0x18]
mov ecx, ebx
call fcn.004c9c70
mov ecx, dword [esp + 0x4c]
movzx eax, word [ecx + 0x2a]
add esp, 8
test ax, ax
jbe 0x508f77
movzx edx, ax
cmp esi, edx
je 0x508fdf
mov eax, ecx
test dword [eax + 0x24], 0x40000
je 0x508f96
mov ecx, dword [esp + 0x1c]
push 0
push 0
push ecx
push 0x77
push ebp
call fcn.004c5570
add esp, 0x14
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax*2]
mov edx, dword [esp + 0x24]
movzx eax, byte [edx + ecx*2 + 0x5ec8f0]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ecx
push eax
push ebp
call fcn.004c5570
mov edx, dword [ebp]
add esp, 0x14
cmp byte [edx + 0x49], 0
jne 0x508fdf
mov ecx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], esi
cmp dword [esp + 0x68], 0
mov esi, dword [esp + 0x50]
mov dword [esp + 0x3c], esi
je 0x5090b0
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
mov esi, dword [eax + 0x10]
movzx eax, word [esp + 0x54]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
push eax
add ecx, edx
push ecx
mov dword [esp + 0x1c], eax
push ebx
mov eax, esi
mov dword [esp + 0x64], ecx
call fcn.004c9da0
mov eax, dword [esp + 0x74]
push eax
mov edx, edi
mov ecx, ebp
call fcn.004b91c0
add esp, 0x10
mov eax, esi
call fcn.004b63e0
test eax, eax
je 0x50904f
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x58]
push 0
push ecx
push edx
push 0x32
push ebp
call fcn.004c5570
add esp, 0x14
cmp dword [esp + 0x28], 0
je 0x50907e
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push esi
call fcn.004c9cd0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x6c]
mov ecx, ebx
call fcn.004c9c70
add esp, 0x14
mov ecx, dword [esp + 0x14]
add dword [esp + 0x3c], ecx
mov ecx, esi
call fcn.004c13d0
test eax, eax
jne 0x5090a2
mov eax, dword [esp + 0x68]
mov esi, edi
call fcn.004b9150
mov esi, dword [esp + 0x3c]
jmp 0x5090d8
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x48], 1
jmp 0x5090d8
cmp byte [esp + 0x6f], 0
je 0x5090d8
mov eax, dword [esp + 0x10]
push 0
mov edx, esi
add edx, eax
push edx
push 0
push 0x49
push ebp
call fcn.004c5570
add esp, 0x14
mov dword [esp + 0x48], 0
inc esi
cmp dword [esp + 0x2c], 0
je 0x509130
mov eax, dword [esp + 0x64]
test eax, eax
je 0x509123
cmp dword [eax + 0x1d8], 0
je 0x5090ff
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x64]
call fcn.004aca10
jmp 0x509130
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [eax + 0x128]
jb 0x509123
cmp ecx, dword [eax + 0x12c]
jae 0x509123
mov edx, dword [eax + 0x124]
mov dword [ecx], edx
mov dword [eax + 0x124], ecx
jmp 0x509130
mov eax, dword [esp + 0x2c]
push eax
call fcn.004ac9a0
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x509179
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x509170
cmp dword [ecx + 0x1d8], 0
je 0x509150
call fcn.004aca10
jmp 0x509179
cmp eax, dword [ecx + 0x128]
jb 0x509170
cmp eax, dword [ecx + 0x12c]
jae 0x509170
mov edx, dword [ecx + 0x124]
mov dword [eax], edx
mov dword [ecx + 0x124], eax
jmp 0x509179
push eax
call fcn.004ac9a0
add esp, 4
mov eax, dword [ebp + 0x88]
mov dword [edi + 0x34], eax
test esi, esi
je 0x5091c8
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x24]
movzx eax, byte [ecx + edx*2 + 0x5ec8f8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ecx
push eax
push ebp
call fcn.004c5570
mov edx, dword [ebp]
add esp, 0x14
cmp byte [edx + 0x49], 0
jne 0x5091c8
mov ecx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], esi
mov edx, dword [esp + 0x44]
test dword [edx + 0x24], 0x40000
je 0x5091e9
mov eax, dword [esp + 0x1c]
push 0
push 1
push eax
push 0x77
push ebp
call fcn.004c5570
add esp, 0x14
cmp dword [esp + 0x30], 0
jne 0x509334
mov edx, dword [esp + 0x5c]
mov eax, dword [edx + 0xc]
test byte [eax + 0x24], 0x20
jne 0x50926d
mov ecx, dword [esp + 0xc4]
movzx eax, word [ecx + 0x2c]
test eax, 0x400
jne 0x50923c
test eax, 0x1000
je 0x509220
cmp byte [ecx + 0x31], 1
je 0x50923c
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x20]
mov edi, edx
call fcn.004cda20
mov edi, dword [esp + 0x3c]
add esp, 4
jmp 0x509334
inc dword [ebx + 0x2c]
mov ebx, dword [ebx + 0x2c]
mov edx, dword [esp + 0x1c]
push 0
push ebx
push edx
push 0x88
push ebp
call fcn.004c5570
mov eax, dword [esp + 0x48]
push ebx
push 0
push eax
push 0x1f
push ebp
call fcn.004c5570
add esp, 0x28
jmp 0x509334
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x34], ecx
je 0x509334
call fcn.004b6f90
movzx esi, word [eax + 0x32]
mov ecx, ebx
mov dword [esp + 0x20], eax
call fcn.004b68d0
mov ebx, eax
mov eax, dword [esp + 0x20]
xor edx, edx
xor esi, esi
mov dword [esp + 0x14], ebx
cmp dx, word [eax + 0x32]
jae 0x5092fd
mov ecx, dword [esp + 0x5c]
movzx edx, word [ecx + 0x34]
xor eax, eax
test edx, edx
jle 0x5092d1
mov ebx, dword [esp + 0x20]
mov ebx, dword [ebx + 4]
movzx ebx, word [ebx + esi*2]
mov ecx, dword [ecx + 4]
nop
cmp bx, word [ecx]
je 0x50936a
inc eax
add ecx, 2
cmp eax, edx
jl 0x5092c0
or eax, 0xffffffff
mov ebx, dword [esp + 0x14]
movsx edx, ax
mov eax, dword [esp + 0x1c]
lea ecx, [esi + ebx]
push ecx
push edx
push eax
push 0x5a
push ebp
call fcn.004c5570
mov ecx, dword [esp + 0x34]
movzx edx, word [ecx + 0x32]
inc esi
add esp, 0x14
cmp esi, edx
jl 0x5092a3
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x20]
movzx esi, word [eax + 0x32]
push ebx
push ecx
push edx
push 0x1c
push ebp
call fcn.004c5570
mov ecx, dword [ebp]
add esp, 0x14
cmp byte [ecx + 0x49], 0
jne 0x509334
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
lea eax, [eax + edx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], esi
cmp dword [edi], 0
jne 0x509357
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
push ecx
push edx
mov edx, dword [esp + 0x3c]
push eax
call fcn.004df080
add esp, 0xc
mov eax, dword [esp + 0x44]
test dword [eax + 0x24], 0x1000
je 0x509372
mov byte [edi + 0x2d], 0xab
jmp 0x509380
movzx eax, ax
jmp 0x5092d4
cmp dword [esp + 0x24], 0
sete cl
add cl, 4
mov byte [edi + 0x2d], cl
mov edx, dword [esp + 0x1c]
mov dword [edi + 0x30], edx
mov cl, byte [eax + 0x26]
and cl, 1
mov byte [edi + 0x2e], cl
test byte [eax + 0x24], 0xf
jne 0x50939a
mov byte [edi + 0x2f], 1
cmp dword [esp + 0x30], 0
je 0x509bfa
mov dword [esp + 0x5c], 0
jmp 0x509bfa
test dword [esp + 0x28], 0x2000
je 0x509bba
mov eax, dword [ebx + 0x28]
inc dword [ebx + 0x2c]
mov dword [esp + 0x68], eax
inc eax
xor ecx, ecx
mov dword [ebx + 0x28], eax
mov ebx, dword [ebx + 0x2c]
mov eax, ebp
mov dword [esp + 0x48], ecx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
call fcn.004c5810
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x10]
mov edx, dword [ecx + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [edx]
mov dword [esp + 0x24], eax
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x74], eax
mov byte [edi + 0x2d], 0x42
mov dword [edi + 0x30], ebx
mov al, byte [esi + 0x2e]
cmp al, 1
jbe 0x5094e9
movzx ebx, al
sub ebx, dword [esp + 0xc8]
mov eax, dword [esp + 0x64]
dec ebx
xor edx, edx
lea ecx, [ebx + ebx*8]
lea ecx, [ecx*8 + 0x50]
push edx
push ecx
test eax, eax
je 0x509451
call fcn.004bbd30
jmp 0x509456
call fcn.004bba90
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x50947a
mov eax, dword [esp + 0xcc]
mov edx, dword [esp + 0xd0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x78]
mov cl, bl
inc cl
movzx eax, cl
mov dword [edx + 4], eax
mov dword [edx], eax
mov eax, dword [esp + 0xc4]
lea edi, [edx + 8]
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 4]
add eax, 8
cmp ebx, 1
mov dword [esp + 0x54], eax
jl 0x5094f0
add edx, 0x50
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x20]
add edx, 0x7c
movzx eax, byte [edx]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x54]
lea esi, [eax + ecx*8]
mov edi, ebx
mov ecx, 0x12
add edx, 0x50
add ebx, 0x48
sub dword [esp + 0x14], 1
rep movsd dword es:[edi], dword [esi]
jne 0x5094c4
jmp 0x5094f0
mov ecx, dword [esi + 4]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0xc4]
test byte [edx + 0x2c], 0x10
jne 0x509567
mov eax, dword [esp + 0x40]
test byte [eax + 0x24], 0x20
jne 0x509527
mov esi, dword [esp + 0x4c]
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
push 0
push eax
push 0
push 0x49
push ebp
mov dword [esp + 0x3c], eax
call fcn.004c5570
add esp, 0x14
jmp 0x50955d
call fcn.004b6f90
mov edi, dword [esp + 0x4c]
mov esi, eax
mov eax, dword [edi + 0x28]
lea ecx, [eax + 1]
mov dword [edi + 0x28], ecx
movzx edx, word [esi + 0x32]
push 0
push edx
push eax
push 0x71
push ebp
mov dword [esp + 0x3c], eax
call fcn.004c5570
add esp, 0x14
mov ecx, esi
mov eax, edi
call fcn.004f96c0
mov esi, edi
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x58]
push 0
push ecx
push 0
push 0x46
push ebp
call fcn.004c5570
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x94], eax
mov eax, dword [ebx + 0xc]
add esp, 0x14
cmp eax, 1
jle 0x509687
xor edi, edi
test eax, eax
jle 0x509687
xor esi, esi
mov edx, dword [ebx + 0x14]
mov ecx, dword [edx + esi]
lea eax, [edx + esi]
cmp eax, dword [esp + 0x24]
je 0x5095f4
mov eax, edx
add eax, esi
test byte [eax + 0xa], 6
jne 0x5095f4
mov edx, 0x1fff
test word [eax + 0xc], dx
je 0x5095f4
test ecx, ecx
je 0x5095dd
mov eax, dword [esp + 0x64]
push 0
push 0
push ecx
push eax
call fcn.004d6430
add esp, 0x10
jmp 0x5095df
xor eax, eax
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x68]
call fcn.004cc1d0
add esp, 4
mov dword [esp + 0x1c], eax
inc edi
add esi, 0x30
cmp edi, dword [ebx + 0xc]
jl 0x5095a1
cmp dword [esp + 0x1c], 0
mov esi, dword [esp + 0x4c]
je 0x50968b
mov eax, dword [esi]
push 0
push 0x34
call fcn.004bbd30
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x509671
push 0x34
push 0
push ebx
call fcn.00585e50
mov eax, dword [esp + 0x28]
or edx, 0xffffffff
mov word [ebx + 0x22], dx
mov byte [ebx], 0x2c
mov dword [ebx + 0x10], eax
mov edx, dword [eax + 4]
add esp, 0xc
and edx, 0x200104
or dword [ebx + 4], edx
push ebx
call fcn.004c1470
mov eax, dword [esi]
mov eax, dword [eax + 0x70]
add esp, 4
cmp dword [ebx + 0x18], eax
jle 0x50966b
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
call fcn.004d3340
add esp, 8
mov dword [esp + 0x1c], ebx
jmp 0x50968b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi]
push eax
push ecx
call fcn.004c6ab0
add esp, 8
mov dword [esp + 0x1c], ebx
jmp 0x50968b
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0xc4]
mov dx, word [ecx + 0x2c]
mov edi, dword [esp + 0x1c]
mov eax, 0x400
and dx, ax
or dx, 0x20
push str.MULTI_INDEX_OR
movzx ecx, dx
push 1
push esi
mov dword [esp + 0x5c], ecx
call fcn.004d4e20
mov ebx, dword [esp + 0x80]
add esp, 0xc
cmp dword [ebx + 0xc], 0
mov dword [esp + 0x20], 0
jle 0x509a47
mov dword [esp + 0x2c], 0
mov edi, edi
mov eax, dword [ebx + 0x14]
add eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x14]
cmp edx, dword [esp + 0x34]
je 0x5096ff
mov ecx, 0x400
test word [eax + 0xc], cx
je 0x509a30
mov eax, dword [eax]
mov dword [esp + 0x54], 0
test edi, edi
je 0x509712
mov dword [edi + 0xc], eax
mov eax, edi
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x14]
push ecx
push 0
push 0
push eax
push edx
push esi
call fcn.0050a010
add esp, 0x1c
mov dword [esp + 0x88], eax
test eax, eax
je 0x509a30
mov edx, dword [esp + 0x10]
push 0
lea ecx, [eax + 0x2f0]
mov edi, esi
call fcn.004deb40
mov eax, dword [esp + 0xc8]
add esp, 4
test byte [eax + 0x2c], 0x10
jne 0x509933
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0xc]
mov edi, dword [esp + 0x20]
dec edx
cmp edi, edx
jne 0x509778
or edi, 0xffffffff
mov eax, dword [esp + 0x40]
test byte [eax + 0x24], 0x20
mov dword [esp + 0x14], edi
jne 0x5097d2
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push 0
push esi
push eax
push 0x81
push ebp
call fcn.004c5570
mov ecx, dword [esp + 0x3c]
push esi
push 0
push ecx
push 0x2a
push ebp
call fcn.004c5570
mov edx, dword [ebp]
add esp, 0x28
cmp byte [edx + 0x49], 0
jne 0x5097c9
mov edx, dword [ebp + 0x58]
lea ecx, [eax + eax*4]
lea ecx, [edx + ecx*4]
mov byte [ecx + 1], 0xfd
mov dword [ecx + 0x10], edi
mov dword [esp + 0x54], eax
jmp 0x509933
call fcn.004b6f90
movzx edi, word [eax + 0x32]
mov dword [esp + 0x44], eax
cmp edi, 1
jne 0x50980c
mov ecx, dword [esp + 0x4c]
mov al, byte [ecx + 0x13]
test al, al
jne 0x5097f9
inc dword [ecx + 0x2c]
mov ecx, dword [ecx + 0x2c]
mov ebx, ecx
jmp 0x509832
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov ecx, dword [ecx + eax*4 + 0x90]
mov ebx, ecx
jmp 0x509832
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x1c]
cmp edi, ecx
mov ebx, dword [eax + 0x20]
jg 0x509827
lea edx, [edi + ebx]
sub ecx, edi
mov dword [eax + 0x20], edx
mov dword [eax + 0x1c], ecx
jmp 0x509832
mov ecx, dword [eax + 0x2c]
lea ebx, [ecx + 1]
add ecx, edi
mov dword [eax + 0x2c], ecx
xor esi, esi
test edi, edi
jle 0x509866
jmp 0x509840
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 4]
movsx eax, word [ecx + esi*2]
mov ecx, dword [esp + 0x40]
lea edx, [esi + ebx]
push edx
mov edx, dword [esp + 0x38]
push edx
push ebp
call fcn.004ee5c0
inc esi
add esp, 0xc
cmp esi, edi
jl 0x509840
mov esi, dword [esp + 0x14]
test esi, esi
je 0x5098a2
mov eax, dword [esp + 0x28]
push ebx
push 0
push eax
push 0x1d
push ebp
call fcn.004c5570
mov ecx, dword [ebp]
add esp, 0x14
cmp byte [ecx + 0x49], 0
jne 0x50989a
mov ecx, dword [ebp + 0x58]
lea edx, [eax + eax*4]
lea ecx, [ecx + edx*4]
mov byte [ecx + 1], 0xfd
mov dword [ecx + 0x10], edi
mov dword [esp + 0x54], eax
test esi, esi
jl 0x509900
mov esi, dword [esp + 0x30]
push esi
push edi
push ebx
push 0x66
push ebp
call fcn.004c5570
mov edx, dword [esp + 0x3c]
push ebx
push esi
push edx
push 0x85
push ebp
call fcn.004c5570
mov ecx, dword [ebp]
add esp, 0x28
cmp byte [ecx + 0x49], 0
jne 0x5098df
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x58]
lea eax, [eax + edx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], edi
cmp dword [esp + 0x14], 0
je 0x509900
mov eax, dword [ebp + 0x88]
test eax, eax
jle 0x509900
mov edx, dword [ebp + 0x58]
lea ecx, [eax + eax*4]
mov eax, 0x10
mov word [edx + ecx*4 - 0x12], ax
cmp edi, 1
jne 0x509924
test ebx, ebx
je 0x509933
mov eax, dword [esp + 0x4c]
mov cl, byte [eax + 0x13]
cmp cl, 8
jae 0x509933
movzx ecx, cl
mov dword [eax + ecx*4 + 0x90], ebx
inc byte [eax + 0x13]
jmp 0x509933
mov eax, dword [esp + 0x4c]
cmp edi, dword [eax + 0x1c]
jle 0x509933
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ebx
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
jg 0x50995b
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x58]
push 0
push eax
push ecx
push 0xc
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x50998f
mov ecx, dword [ebp + 0x58]
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x58]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0xc
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x54]
test eax, eax
je 0x5099be
mov ecx, dword [ebp + 0x88]
jge 0x5099a2
lea eax, [ecx - 1]
mov edx, dword [ebp]
cmp byte [edx + 0x49], 0
je 0x5099b2
mov eax, 0x6413f8
jmp 0x5099bb
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x88]
cmp byte [eax + 0x32], 0
je 0x5099d3
mov dword [esp + 0x70], 1
mov ecx, dword [eax + 0x330]
test dword [ecx + 0x24], 0x200
je 0x509a13
cmp dword [esp + 0x20], 0
je 0x5099f2
mov edx, dword [esp + 0x48]
cmp dword [ecx + 0x20], edx
jne 0x509a13
mov edx, dword [esp + 0x40]
test byte [edx + 0x24], 0x20
je 0x509a0a
mov edx, dword [ecx + 0x20]
mov edx, dword [edx + 0x38]
and dl, 3
cmp dl, 2
je 0x509a13
mov ecx, dword [ecx + 0x20]
mov dword [esp + 0x48], ecx
jmp 0x509a1b
mov dword [esp + 0x48], 0
push eax
call fcn.004ca5a0
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x78]
mov edi, dword [esp + 0x20]
add esp, 4
mov eax, dword [esp + 0x20]
add dword [esp + 0x2c], 0x30
inc eax
cmp eax, dword [ebx + 0xc]
mov dword [esp + 0x20], eax
jl 0x5096e0
mov eax, dword [esi + 0xd0]
xor ebx, ebx
cmp eax, ebx
jne 0x509a57
xor eax, eax
jmp 0x509a80
cmp eax, ebx
mov ecx, dword [esi + 8]
jge 0x509a65
mov eax, dword [ecx + 0x88]
dec eax
mov edx, dword [ecx]
cmp byte [edx + 0x49], 0
je 0x509a74
mov eax, 0x6413f8
jmp 0x509a7d
mov ecx, dword [ecx + 0x58]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov eax, dword [eax + 8]
mov dword [esi + 0xd0], eax
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x38]
mov dword [esi + 0x38], eax
cmp eax, ebx
je 0x509a9c
mov edx, dword [esp + 0x68]
mov dword [esi + 8], edx
cmp edi, ebx
je 0x509ab3
mov dword [edi + 0xc], ebx
push edi
mov edi, dword [esp + 0x68]
push edi
call fcn.004c6ab0
add esp, 8
jmp 0x509ab7
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x80]
cmp eax, ebx
mov ecx, dword [ebp + 0x88]
jge 0x509acb
lea eax, [ecx - 1]
mov edx, dword [ebp]
cmp byte [edx + 0x49], 0
je 0x509adb
mov eax, 0x6413f8
jmp 0x509ae4
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
mov ecx, dword [esi + 0xc]
jg 0x509b09
push ebx
push ecx
push ebx
push 0xb
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x509b33
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 0xb
mov word [eax + 2], dx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], dl
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
cmp eax, ebx
je 0x509b52
mov ecx, dword [esp + 0x3c]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebp + 0x88]
sub eax, edx
mov dword [eax], ecx
mov edx, dword [esp + 0xc4]
cmp byte [edx + 0x2e], 1
jbe 0x509ba5
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x509ba5
cmp edi, ebx
je 0x509b9c
cmp dword [edi + 0x1d8], ebx
je 0x509b7c
mov ecx, edi
call fcn.004aca10
jmp 0x509ba5
cmp eax, dword [edi + 0x128]
jb 0x509b9c
cmp eax, dword [edi + 0x12c]
jae 0x509b9c
mov ecx, dword [edi + 0x124]
mov dword [eax], ecx
mov dword [edi + 0x124], eax
jmp 0x509ba5
push eax
call fcn.004ac9a0
add esp, 4
cmp dword [esp + 0x70], ebx
jne 0x509bfa
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
call fcn.004b9150
jmp 0x509bfa
test cl, 0x20
je 0x509bc5
mov byte [edi + 0x2d], 0xab
jmp 0x509bfa
mov eax, dword [esp + 0x24]
mov dl, byte [eax + 0x5ec8fc]
mov ecx, dword [esp + 0x34]
mov byte [edi + 0x2d], dl
mov edx, dword [esp + 0x48]
push 0
push edx
mov dword [edi + 0x30], ecx
movzx eax, byte [eax + 0x5ec900]
push ecx
push eax
push ebp
call fcn.004c5570
add esp, 0x14
inc eax
mov byte [edi + 0x2f], 1
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x5c]
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x7c]
neg eax
sbb eax, eax
add eax, 2
mov dword [esp + 0x30], eax
xor edi, edi
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
xor eax, eax
cmp edx, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
jle 0x509e28
nop
movzx edx, word [ecx + 0xa]
xor esi, esi
test dl, 6
jne 0x509e00
mov eax, dword [ecx + 0x28]
mov ecx, dword [ecx + 0x2c]
and eax, dword [ebx + 0x48]
and ecx, dword [ebx + 0x4c]
or eax, ecx
je 0x509c5f
mov eax, dword [esp + 0xc4]
mov byte [eax + 0x32], 1
jmp 0x509e00
mov eax, dword [esp + 0x78]
test byte [eax + 0x24], 8
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx]
je 0x509c79
test byte [ebx + 4], 1
je 0x509e00
mov eax, dword [esp + 0x30]
cmp eax, 1
jne 0x509d17
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 4]
xor eax, eax
mov dword [esp + 0x90], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x80]
mov dword [esp + 0x84], edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x90], 0x4c1910
mov dword [esp + 0xa4], ecx
cmp ebx, edi
je 0x509d00
lea edx, [esp + 0x8c]
push ebx
push edx
call fcn.004c1270
add esp, 8
cmp byte [esp + 0xa0], 0
je 0x509d1c
mov dword [esp + 0x20], 2
jmp 0x509e00
cmp eax, 3
jge 0x509d43
mov eax, dword [esp + 0x24]
movzx edx, word [eax + 0xa]
test edx, 0x1000
je 0x509d43
cmp dword [esp + 0x20], edi
jne 0x509e00
mov dword [esp + 0x20], 3
jmp 0x509e00
test edx, 0x200
je 0x509db5
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0x24]
cmp eax, edi
jbe 0x509db5
mov ecx, dword [ebp + 0x88]
mov esi, eax
shr esi, 1
test al, 1
mov eax, dword [ebp + 0xc]
mov edx, 0
setne dl
cmp dword [eax + 0x30], ecx
lea edx, [edx + edx + 0x12]
jg 0x509d86
push edi
push edi
push esi
push edx
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x509db3
mov edi, dword [ebp + 0x58]
lea eax, [ecx + 1]
mov dword [ebp + 0x88], eax
lea eax, [ecx + ecx*4]
lea eax, [edi + eax*4]
mov byte [eax], dl
xor edx, edx
xor edi, edi
mov word [eax + 2], dx
mov dword [eax + 4], esi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], dl
mov eax, ecx
mov esi, eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x4c]
push 0x10
push eax
push ebx
push ecx
call fcn.005140e0
add esp, 0x10
cmp esi, edi
je 0x509df7
mov ecx, dword [ebp + 0x88]
mov eax, esi
jge 0x509ddb
lea eax, [ecx - 1]
mov edx, dword [ebp]
cmp byte [edx + 0x49], 0
je 0x509deb
mov eax, 0x6413f8
jmp 0x509df4
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x24]
or word [eax + 0xa], 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x38]
dec eax
add ecx, 0x30
cmp eax, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
jg 0x509c30
mov esi, dword [esp + 0x7c]
mov eax, dword [esp + 0x20]
cmp eax, edi
mov dword [esp + 0x30], eax
jg 0x509c13
mov eax, dword [esp + 0x7c]
mov esi, dword [eax + 0xc]
cmp esi, edi
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x1c], esi
jle 0x509f3a
lea ebx, [ebx]
test byte [ebx + 0xa], 6
jne 0x509f2a
movzx eax, word [ebx + 0xc]
test al, 0x82
je 0x509f2a
test eax, 0x800
je 0x509f2a
mov eax, dword [ebx + 0x14]
cmp eax, dword [esp + 0x34]
jne 0x509f2a
mov ecx, dword [esp + 0x38]
cmp dword [ecx], edi
jne 0x509f2a
mov edx, dword [ebx]
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xcc]
push 0x83
push eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x88], edx
mov edx, dword [ebx + 0x1c]
push ecx
push edx
mov edx, dword [esp + 0x8c]
push eax
xor ecx, ecx
call fcn.004f2a50
add esp, 0x14
cmp eax, edi
je 0x509f2a
test byte [eax + 0xa], 4
jne 0x509f2a
test byte [eax + 0xc], 1
je 0x509ee7
mov ecx, dword [eax]
test dword [ecx + 4], 0x800
je 0x509ee7
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx]
cmp dword [edx], 1
jg 0x509f2a
mov esi, dword [eax]
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x60]
mov ecx, 0xd
lea edi, [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0xc]
push 0x10
push edx
lea eax, [esp + 0x94]
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x54]
push eax
push ecx
call fcn.005140e0
mov esi, dword [esp + 0x2c]
add esp, 0x10
xor edi, edi
dec esi
add ebx, 0x30
cmp esi, edi
mov dword [esp + 0x1c], esi
jg 0x509e50
mov edx, dword [esp + 0x38]
cmp dword [edx], edi
je 0x509fec
mov ecx, dword [ebp + 0x88]
mov eax, edx
mov dword [eax + 0x1c], ecx
mov ecx, dword [eax]
mov eax, dword [ebp + 0x88]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x30], eax
jg 0x509f73
push edi
push ecx
push 1
push 0x46
mov esi, ebp
call fcn.004c5530
add esp, 0x10
jmp 0x509fa1
lea edx, [eax + 1]
mov dword [ebp + 0x88], edx
mov edx, dword [ebp + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 0x46
mov word [eax + 2], dx
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], dl
mov ebx, dword [esp + 0x7c]
cmp dword [ebx + 0xc], edi
mov esi, dword [ebx + 0x14]
jle 0x509fec
mov ebp, dword [esp + 0x38]
test byte [esi + 0xa], 6
jne 0x509fe3
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
and eax, dword [ebp + 0x48]
and ecx, dword [ebp + 0x4c]
or eax, ecx
jne 0x509fe3
mov eax, dword [esp + 0x60]
mov ecx, dword [esi]
mov edx, dword [esp + 0x4c]
push 0x10
push eax
push ecx
push edx
call fcn.005140e0
add esp, 0x10
or word [esi + 0xa], 4
inc edi
add esi, 0x30
cmp edi, dword [ebx + 0xc]
jl 0x509fb1
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0x48]
mov edx, dword [ecx + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret