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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x7cdffc]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, ecx
mov dword [esp], edx
mov ecx, dword [ebp + 8]
push ebx
push esi
mov ebx, dword [eax + 8]
mov dword [esp + 0x54], ecx
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov esi, dword [ebx + 0x18]
mov dword [esp + 0xc], eax
push edi
mov dword [esp + 0x54], 0
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], ecx
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x5085df
mov edx, dword [esi + 0x70]
lea eax, [ecx*8 + 4]
mov ecx, dword [esi]
push 0
push eax
call fcn.004b4b50
mov ecx, dword [esp + 0x34]
add esp, 8
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x70]
test eax, eax
je 0x5085ed
mov dword [eax + ecx*4], 0xffffffff
mov esi, dword [ebx + 0x18]
not ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x40], ecx
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x508628
mov edx, dword [esi + 0x70]
lea eax, [ecx*8 + 4]
mov ecx, dword [esi]
push 0
push eax
call fcn.004b4b50
mov ecx, dword [esp + 0x48]
add esp, 8
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x70]
test eax, eax
je 0x508636
mov dword [eax + ecx*4], 0xffffffff
mov esi, dword [esp + 0xc]
not ecx
mov dword [esp + 0x40], ecx
mov edi, dword [esi + 0x30]
movzx eax, byte [esi + 4]
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x34], eax
mov edx, dword [edi]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], edx
cmp eax, 0x74
je 0x50873f
mov eax, dword [esp + 0x14]
mov esi, 1
cmp byte [eax + 0x41], 0
jne 0x50873b
lea eax, [edx + edx*2]
shl eax, 3
mov dword [esp + 0x44], eax
nop
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
cmp esi, dword [eax]
jg 0x50873b
mov eax, dword [esp + 0x28]
xor edx, edx
mov ecx, dword [edi + 4]
test eax, eax
jle 0x5086b7
add ecx, 0x14
mov ebx, eax
movzx eax, word [ecx]
cmp eax, esi
je 0x5086af
inc edx
add ecx, 0x18
cmp edx, ebx
jl 0x5086a0
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
cmp edx, eax
jne 0x508728
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x60]
push 0
push eax
mov edx, 0x84
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
call fcn.004e46f0
add esp, 8
test eax, eax
je 0x50879d
mov ecx, dword [esp + 0x10]
mov edx, edi
or dword [eax + 4], 0x400
push eax
mov dword [eax + 8], esi
call fcn.004e5970
mov edx, dword [esp + 0x2c]
mov edi, eax
add esp, 4
test edi, edi
je 0x50872c
mov ecx, dword [esp + 0x44]
inc edx
mov eax, dword [edi + 4]
mov dword [esp + 0x28], edx
mov word [eax + ecx + 0x14], si
add ecx, 0x18
mov dword [esp + 0x44], ecx
jmp 0x50872c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
inc esi
cmp byte [eax + 0x41], 0
je 0x508680
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
lea eax, [edx*4]
push 0
push eax
call fcn.004b49d0
add esp, 8
mov dword [esp + 0x4c], eax
test eax, eax
je 0x5087b7
mov edx, dword [edi + 4]
xor ecx, ecx
cmp dword [esp + 0x28], ecx
jle 0x508788
mov ebx, dword [esp + 0x28]
add edx, 0x14
mov esi, eax
movzx eax, word [edx]
lea edx, [edx + 0x18]
dec eax
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, ebx
jl 0x508771
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.00506ec0
add esp, 4
mov dword [esp + 0x5c], eax
jmp 0x5087bf
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x5c], 0
mov dword [esi + 0x30], edi
mov edx, edi
mov edi, dword [esp + 0x10]
push 0
mov ecx, dword [edi]
call fcn.004e5300
mov ecx, dword [esp + 0x40]
add esp, 4
cmp dword [esp + 0x34], 0x74
mov dword [ecx + 0x30], eax
jne 0x5087ef
mov dword [esp + 0x24], 0
jmp 0x508933
mov eax, dword [esi]
mov edx, dword [esp + 0x10]
mov edi, dword [eax]
mov eax, dword [edx + 0x48]
mov dword [esp + 0x48], edi
lea ecx, [eax + 1]
inc eax
add eax, edi
mov dword [esp + 0x24], ecx
mov dword [edx + 0x48], eax
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
cmp dword [eax + 0x54], esi
jg 0x508821
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x508855
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x24]
mov word [eax + ecx*4], 0x19
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
lea esi, [edi*4 + 0x1d]
xor ecx, ecx
add esi, edi
push 0
push esi
call fcn.004b49d0
mov ecx, eax
add esp, 8
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x5088b0
push esi
push 0
push ecx
call fcn.006e6ec0
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [esp + 0x14]
lea eax, [ecx + 0x18]
mov word [ecx + 6], di
lea eax, [eax + edi*4]
mov dword [ecx + 0x10], eax
mov eax, 1
mov word [ecx + 8], ax
mov al, byte [edx + 0x3e]
mov byte [ecx + 4], al
mov dword [ecx + 0xc], edx
mov dword [ecx], 1
jmp 0x5088b8
mov eax, dword [esp + 0x14]
mov byte [eax + 0x41], 1
test ecx, ecx
je 0x50892b
xor esi, esi
test edi, edi
jle 0x50892b
mov ebx, dword [esp + 0xc]
xor edi, edi
add ecx, 0x14
mov dword [esp + 0x20], ecx
nop
mov edx, dword [ebx + 0x34]
test edx, edx
je 0x5088ee
mov ecx, dword [esp + 0x10]
push esi
call fcn.00506e70
mov ecx, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x508909
jmp 0x5088f0
xor eax, eax
mov edx, dword [ebx]
cmp esi, dword [edx]
jge 0x508909
mov edx, dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [edx + edi]
call fcn.004e41d0
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
add edi, 0x18
mov eax, dword [esp + 0x1c]
add ecx, 4
mov dword [esp + 0x20], ecx
mov eax, dword [eax + 0x10]
mov byte [esi + eax], 0
inc esi
cmp esi, dword [esp + 0x48]
jl 0x5088d0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
mov edx, esi
mov dword [esi + 0x34], 0
mov ecx, edi
push str.ORDER
mov dword [eax + 0x38], 0
push dword [esi + 0x30]
call fcn.004e3830
mov eax, dword [esp + 0x44]
add esp, 8
cmp dword [eax + 0x34], 0
jne 0x508977
push str.ORDER
push dword [eax + 0x30]
mov edx, eax
mov ecx, edi
call fcn.004e3830
add esp, 8
push dword [esp + 0x2c]
mov edx, esi
mov ecx, edi
call fcn.00506cc0
add esp, 4
cmp dword [esi + 8], 0
je 0x508aa4
cmp dword [esp + 0x34], 0x74
jne 0x508aa4
mov eax, dword [edi + 0x48]
inc eax
mov dword [esp + 0x30], eax
inc eax
mov dword [edi + 0x48], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
lea edi, [eax + 1]
test eax, eax
jne 0x5089b9
mov edi, dword [esi + 8]
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
cmp dword [eax + 0x54], esi
jg 0x5089cf
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x508a01
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x30]
mov word [eax + ecx*4], 0x21
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x508a05
mov edi, dword [esp + 0x30]
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
cmp dword [eax + 0x54], esi
jg 0x508a1b
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x508a4b
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x18]
mov word [eax + ecx*4], 0x21
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [esp + 0xc]
mov esi, dword [esi + 0x3c]
test esi, esi
je 0x508acd
test dword [esi + 4], 0x4000
mov edi, dword [esp + 0x14]
jne 0x508abb
mov edx, dword [esi + 0xc]
mov ecx, edi
call fcn.004e4e10
mov edx, dword [esi + 0x10]
mov ecx, edi
call fcn.004e4e10
test dword [esi + 4], 0x10000
je 0x508a8a
mov edx, dword [esi + 8]
mov ecx, edi
call fcn.004b4750
test dword [esi + 4], 0x800
mov ecx, edi
mov edx, dword [esi + 0x14]
je 0x508ab6
push 1
call fcn.00503c20
add esp, 4
jmp 0x508abb
mov dword [esp + 0x18], 0
mov dword [esp + 0x30], 0
jmp 0x508a4f
call fcn.004e5ba0
test dword [esi + 4], 0x8000
jne 0x508acd
mov edx, esi
mov ecx, edi
call fcn.004b4750
mov edi, dword [esp + 0xc]
mov esi, dword [edi + 0x40]
mov dword [edi + 0x3c], 0
test esi, esi
je 0x508b4a
test dword [esi + 4], 0x4000
jne 0x508b36
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
call fcn.004e4e10
mov edx, dword [esi + 0x10]
mov ecx, dword [esp + 0x14]
call fcn.004e4e10
test dword [esi + 4], 0x10000
je 0x508b15
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x14]
call fcn.004b4750
test dword [esi + 4], 0x800
mov edx, dword [esi + 0x14]
mov ecx, dword [esp + 0x14]
je 0x508b31
push 1
call fcn.00503c20
add esp, 4
jmp 0x508b36
call fcn.004e5ba0
test dword [esi + 4], 0x8000
jne 0x508b4a
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.004b4750
mov esi, dword [esp + 0x10]
mov dword [edi + 0x40], 0
mov word [esp + 0x80], 0xd
mov dword [esp + 0x88], 0
inc dword [esi + 0x48]
mov ecx, dword [esi + 0x48]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x8c], 0
mov word [esp + 0x6c], 0xd
lea edx, [ecx + 1]
mov dword [esp + 0x74], 0
lea eax, [edx + 2]
mov dword [esp + 0x70], edx
mov dword [esi + 0x48], eax
mov dword [esp + 0x78], 0
mov esi, dword [ebx + 0x20]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], edx
lea edi, [esi + 1]
cmp dword [eax + 0x54], esi
jg 0x508bd2
mov ecx, ebx
call fcn.004d1b20
test eax, eax
je 0x508bd2
mov esi, 1
jmp 0x508c02
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x20]
mov word [eax + ecx*4], 0x14
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0x1d4]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x80]
push eax
call fcn.0050b5d0
mov eax, dword [ebx + 0x18]
add esp, 4
mov edi, dword [ebx + 0x20]
cmp dword [eax + 0x54], edi
jg 0x508c41
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x508c75
mov eax, dword [ebx + 4]
lea ecx, [edi + edi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x20]
mov word [eax + ecx*4], 0x15
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 0x20]
cmp edx, esi
jbe 0x508c86
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
mov dword [eax + ecx*4 + 8], edx
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x20]
dec ecx
mov dword [eax + 0x58], ecx
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x48], edi
lea esi, [edi + 1]
cmp dword [eax + 0x54], edi
jg 0x508cb7
mov ecx, ebx
call fcn.004d1b20
test eax, eax
je 0x508cb7
mov dword [esp + 0x48], 1
jmp 0x508ce7
mov eax, dword [ebx + 4]
lea ecx, [edi + edi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x38]
mov word [eax + ecx*4], 0x14
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0xc]
mov edx, ecx
mov eax, dword [esp + 0x18]
mov edi, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0xc], 0
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x1d4]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x6c]
push eax
call fcn.0050b5d0
mov eax, dword [esp + 0x10]
add esp, 4
mov dword [eax + 8], edi
mov edi, eax
mov dword [edi + 0xc], esi
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
cmp dword [eax + 0x54], esi
jg 0x508d42
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x508d76
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x38]
mov word [eax + ecx*4], 0x15
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
mov edx, edi
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
inc eax
push dword [esp + 0x2c]
push eax
push dword [esp + 0x68]
lea eax, [esp + 0x94]
push eax
call fcn.00508040
mov esi, eax
add esp, 0x18
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], esi
cmp eax, 0x74
je 0x508db6
cmp eax, 0x73
jne 0x508de1
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x70]
push dword [esp + 0x20]
mov edx, edi
push dword [esp + 0x2c]
push dword [esp + 0x5c]
push dword [esp + 0x68]
push eax
call fcn.00508040
add esp, 0x18
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x508df7
add dword [eax], 0xffffffff
jne 0x508df7
push eax
call fcn.004b4670
add esp, 4
mov eax, dword [esp + 0x34]
cmp eax, 0x75
je 0x508f22
cmp eax, 0x76
je 0x508f22
mov eax, dword [ebx + 0x18]
mov edi, dword [ebx + 0x20]
mov dword [esp + 0x24], edi
cmp dword [eax + 0x54], edi
jg 0x508e32
mov ecx, ebx
call fcn.004d1b20
test eax, eax
je 0x508e32
mov edi, 1
mov dword [esp + 0x24], edi
jmp 0x508e66
mov eax, dword [ebx + 4]
lea ecx, [edi + edi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x50]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x54]
mov word [eax + ecx*4], 0x11
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x30], edx
cmp dword [eax + 0x54], edx
jg 0x508e8e
mov ecx, ebx
call fcn.004d1b20
test eax, eax
je 0x508e8a
mov dword [esp + 0x30], 1
jmp 0x508ec2
mov edx, dword [esp + 0x30]
mov eax, dword [ebx + 4]
lea ecx, [edx + edx*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x38]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov word [eax + ecx*4], 0x16
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
cmp dword [eax + 0x54], esi
jg 0x508ed8
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x508f08
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov word [eax + ecx*4], 0x10
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
mov eax, dword [ecx + 0x18]
add dword [edx + 0x18], eax
mov eax, dword [ecx + 0x1c]
adc dword [edx + 0x1c], eax
jmp 0x508f38
mov eax, dword [esp + 0x2c]
mov edi, eax
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], eax
cmp dword [esp + 0x34], 0x76
jne 0x508f68
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
mov dword [esp + 0x1c], edi
cmp dword [edx + 0x1c], ecx
jb 0x509052
ja 0x508f5d
cmp dword [edx + 0x18], eax
jbe 0x509052
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], ecx
jmp 0x509052
mov eax, dword [ebx + 0x18]
mov edi, dword [ebx + 0x20]
mov dword [esp + 0x1c], edi
cmp dword [eax + 0x54], edi
jg 0x508f8d
mov ecx, ebx
call fcn.004d1b20
test eax, eax
je 0x508f8d
mov edi, 1
mov dword [esp + 0x1c], edi
jmp 0x508fc2
mov eax, dword [ebx + 4]
lea ecx, [edi + edi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
inc edx
mov word [eax + ecx*4], 0x11
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
cmp dword [eax + 0x54], esi
jg 0x508fd8
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x50900c
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov word [eax + ecx*4], 0x16
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
cmp dword [eax + 0x54], esi
jg 0x509022
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x509052
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov word [eax + ecx*4], 0x10
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x18]
mov edi, dword [ebx + 0x20]
mov dword [esp + 0x44], edi
cmp dword [eax + 0x54], edi
jg 0x509077
mov ecx, ebx
call fcn.004d1b20
test eax, eax
je 0x509077
mov edi, 1
mov dword [esp + 0x44], edi
jmp 0x5090ac
mov eax, dword [ebx + 4]
lea ecx, [edi + edi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x38]
inc edx
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov word [eax + ecx*4], 0x11
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
cmp dword [eax + 0x54], esi
jg 0x5090c2
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x5090f6
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov word [eax + ecx*4], 0x16
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
cmp dword [eax + 0x54], esi
jg 0x50910c
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x509140
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x40]
mov word [eax + ecx*4], 0x10
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x34]
cmp eax, 0x74
jne 0x509152
mov dword [esp + 0x18], edi
jmp 0x50920b
cmp eax, 0x76
jne 0x509165
mov dword [esp + 0x18], edi
inc edi
mov dword [esp + 0x44], edi
jmp 0x50920b
mov eax, dword [ebx + 0x18]
mov edi, dword [ebx + 0x20]
mov dword [esp + 0x18], edi
cmp dword [eax + 0x54], edi
jg 0x509189
mov ecx, ebx
call fcn.004d1b20
test eax, eax
je 0x509189
mov dword [esp + 0x18], 1
jmp 0x5091bd
mov eax, dword [ebx + 4]
lea ecx, [edi + edi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov word [eax + ecx*4], 0x16
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
cmp dword [eax + 0x54], esi
jg 0x5091d3
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x509207
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x40]
mov word [eax + ecx*4], 0x10
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x34]
mov esi, dword [ebx + 0x20]
mov dword [esp + 0x24], esi
cmp eax, 0x74
je 0x50921c
cmp eax, 0x73
jne 0x509263
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x54], esi
jg 0x50922f
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x509263
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x50]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x54]
mov word [eax + ecx*4], 0x11
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
cmp dword [eax + 0x54], esi
jg 0x509279
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x5092af
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
mov word [eax + ecx*4], 0x16
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x5092b3
mov edi, dword [esp + 0x1c]
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
cmp dword [eax + 0x54], esi
jg 0x5092c9
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x5092fd
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x40]
mov word [eax + ecx*4], 0x10
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 0x20]
mov eax, dword [esp + 0x48]
cmp edx, eax
jbe 0x509312
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 4]
mov dword [eax + ecx*4 + 8], edx
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x20]
dec ecx
mov dword [eax + 0x58], ecx
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
cmp dword [eax + 0x54], esi
jg 0x509332
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x509366
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov word [eax + ecx*4], 0x16
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
cmp dword [eax + 0x54], esi
jg 0x50937c
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x5093ac
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x38]
mov word [eax + ecx*4], 0x16
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [esp + 0x40]
mov edx, dword [ebx + 0x18]
not esi
test esi, esi
js 0x5093c6
mov ecx, dword [edx + 0x70]
test ecx, ecx
je 0x5093c6
mov eax, dword [ebx + 0x20]
mov dword [ecx + esi*4], eax
mov eax, dword [ebx + 0x20]
dec eax
mov dword [edx + 0x58], eax
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
cmp dword [eax + 0x54], esi
jg 0x5093ea
mov ecx, ebx
call fcn.004d1b20
test eax, eax
je 0x5093ea
mov esi, 1
jmp 0x50941e
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov word [eax + ecx*4], 0x29
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffff1
push dword [esp + 0x50]
mov edx, esi
mov ecx, ebx
call fcn.004d23c0
mov eax, dword [esp + 0x90]
add esp, 8
mov esi, dword [ebx + 0x20]
mov edi, dword [esp + 0x74]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x54], esi
jg 0x50945c
mov ecx, ebx
call fcn.004d1b20
test eax, eax
je 0x50945c
mov esi, 1
jmp 0x50948c
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x4c]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov word [eax + ecx*4], 0x2a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffffa
push dword [esp + 0x60]
mov edx, esi
mov ecx, ebx
call fcn.004d23c0
mov ecx, dword [ebx + 4]
add esp, 8
test ecx, ecx
je 0x5094b0
mov eax, dword [ebx + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 1
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x20]
cmp dword [eax + 0x54], esi
jg 0x5094c6
mov ecx, ebx
call fcn.004d1b20
test eax, eax
jne 0x5094fa
mov eax, dword [ebx + 4]
lea ecx, [esi + esi*4]
inc dword [ebx + 0x20]
mov edx, dword [esp + 0x44]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x24]
mov word [eax + ecx*4], 0x2b
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [esp + 0x2c]
mov edx, dword [ebx + 0x18]
not esi
test esi, esi
js 0x509514
mov ecx, dword [edx + 0x70]
test ecx, ecx
je 0x509514
mov eax, dword [ebx + 0x20]
mov dword [ecx + esi*4], eax
mov eax, dword [ebx + 0x20]
mov esi, dword [esp + 0x3c]
dec eax
mov dword [edx + 0x58], eax
mov eax, dword [esp + 0x58]
cmp byte [eax], 9
jne 0x50954e
mov eax, dword [esi + 0x34]
mov ecx, esi
test eax, eax
je 0x50953a
mov ecx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
jne 0x509531
push dword [ecx]
mov edi, dword [esp + 0x14]
xor edx, edx
mov ecx, edi
call fcn.00506470
add esp, 4
jmp 0x509552
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
mov edx, dword [ebx + 0x34]
test edx, edx
je 0x50956b
mov ecx, dword [esp + 0x14]
push 1
call fcn.00503c20
add esp, 4
mov dword [ebx + 0x34], esi
mov dword [esi + 0x38], ebx
cmp byte [edi + 0x1c2], 2
jne 0x5095e0
movzx eax, byte [ebx + 4]
mov esi, dword [edi + 8]
sub eax, 0x74
je 0x5095a5
sub eax, 1
je 0x50959e
sub eax, 1
je 0x509597
mov eax, str.UNION
jmp 0x5095aa
mov eax, str.INTERSECT
jmp 0x5095aa
mov eax, str.EXCEPT
jmp 0x5095aa
mov eax, str.UNION_ALL
push eax
push 0x7838d8
push dword [esp + 0x70]
push dword [esp + 0x6c]
push str.COMPOUND_SUBQUERIES__d_AND__d__s__s_
push dword [edi]
call fcn.004b64b0
push 0xffffffffffffffff
push eax
push 0
push 0
push dword [edi + 0x1d0]
mov edx, 0x9b
mov ecx, esi
call fcn.004d1d40
add esp, 0x2c
mov ecx, dword [esp + 0x94]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret