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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x19c]
mov ebx, dword [edi]
mov dword [esp + 0xd4], eax
mov eax, dword [edi + 0x1a0]
mov dword [edi + 0x19c], eax
inc eax
mov dword [esp + 0x48], 1
mov dword [edi + 0x1a0], eax
mov dword [esp + 0x44], ebx
test esi, esi
je 0x508f79
cmp byte [ebx + 0x45], 0
jne 0x508f79
cmp dword [edi + 0x24], 0
jne 0x508f79
push 0
push 0
push 0
push 0x15
mov eax, edi
call fcn.004e9b50
add esp, 0x10
test eax, eax
jne 0x508f79
push 0x30
push eax
lea ecx, [esp + 0xac]
push ecx
call fcn.0052e300
mov edx, dword [ebp + 0x10]
add esp, 0xc
cmp byte [edx], 8
ja 0x506fcb
mov eax, dword [esi + 0x2c]
push ebx
call fcn.004e1890
add esp, 4
and dword [esi + 8], 0xfffffffe
mov dword [esi + 0x2c], 0
push 0
push esi
push edi
call fcn.00506600
mov ecx, dword [esi + 0x1c]
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov eax, dword [esi + 0x2c]
add esp, 0xc
cmp dword [edi + 0x24], 0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x10], ecx
jne 0x508dfa
cmp byte [ebx + 0x45], 0
jne 0x508dfa
mov eax, dword [esi + 8]
shr eax, 3
and eax, 1
mov dword [esp + 0x2c], eax
mov eax, edi
call fcn.00502520
mov ebx, eax
test ebx, ebx
je 0x508dfa
mov edx, dword [ebp + 0x10]
cmp byte [edx], 9
jne 0x50705e
push edi
mov eax, esi
call fcn.00501c20
add esp, 4
xor eax, eax
mov dword [esp + 0x38], eax
cmp dword [esi + 0x30], eax
jne 0x50711b
lea ecx, [ecx]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx]
jge 0x50711f
lea eax, [eax + eax*4]
shl eax, 4
lea ecx, [eax + ecx + 8]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0xc], ecx
test eax, eax
je 0x507108
movsx ecx, word [ecx + 0x2a]
mov edx, dword [eax]
cmp ecx, dword [edx]
jne 0x507147
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x38]
shr eax, 3
and eax, 1
push eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
push eax
push ecx
push edi
mov eax, esi
call fcn.00504c20
add esp, 0x10
test eax, eax
je 0x5070e4
cmp dword [esp + 0xc], 0
je 0x5070dc
or dword [esi + 8], 8
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x44]
cmp byte [eax + 0x45], 0
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x10], edx
jne 0x508dfa
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 8
jbe 0x507108
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x38]
inc eax
cmp dword [esi + 0x30], 0
mov dword [esp + 0x38], eax
je 0x507070
mov ecx, dword [esp + 0x10]
cmp dword [esi + 0x30], 0
je 0x50716c
mov ecx, dword [ebp + 0x10]
push ecx
push esi
push edi
call fcn.00502c50
mov edx, dword [esp + 0xe0]
add esp, 0xc
mov dword [edi + 0x19c], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edx
mov ecx, dword [eax]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
movsx eax, word [eax + 0x2a]
push ecx
push edx
push eax
push str.expected__d_columns_for__s_but_got__d
mov esi, edi
call fcn.004b2660
add esp, 0x10
jmp 0x508dfa
cmp dword [ecx], 0
mov dword [esp + 0x38], 0
jle 0x507459
lea ecx, [ecx]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
lea eax, [eax + eax*4]
shl eax, 4
mov edx, dword [eax + ecx + 0x48]
or edx, dword [eax + ecx + 0x4c]
lea esi, [eax + ecx + 8]
jne 0x5071b5
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push eax
push 0x59b313
push ecx
push 0x14
mov eax, edi
call fcn.004e9b50
add esp, 0x10
mov eax, dword [esi + 0x14]
mov dword [esp + 0x18], eax
test eax, eax
je 0x507444
mov eax, dword [esi + 0x18]
test eax, eax
je 0x5071ec
test byte [esi + 0x28], 0x10
jne 0x507444
mov edx, dword [esi + 0x1c]
push 0
push eax
push edx
push 0xe
push ebx
call fcn.004cd400
add esp, 0x14
jmp 0x507444
mov eax, dword [ebp + 0xc]
call fcn.004e0510
add dword [edi + 0x198], eax
test byte [esi + 0x24], 0x20
jne 0x507219
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push edi
call fcn.00505230
add esp, 0x10
cmp dword [esp + 0x38], 0
jne 0x50730c
mov eax, dword [esp + 0x10]
cmp dword [eax], 1
je 0x507237
test byte [eax + 0x7c], 0xa
je 0x50730c
mov ecx, dword [ebp + 0xc]
test byte [ecx + 8], 2
jne 0x50730c
mov eax, dword [esp + 0x44]
mov edx, 0x100
test word [eax + 0x40], dx
jne 0x50730c
mov ecx, dword [ebx + 0x88]
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
inc ecx
push ecx
push 0
push eax
push 0xf
push ebx
mov dword [esp + 0x20], ecx
mov dword [esi + 0x1c], eax
call fcn.004cd400
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x1c]
mov dword [esi + 0x18], ecx
add esp, 0x14
xor eax, eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x18]
push ecx
mov dword [esp + 0xa0], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov al, byte [edi + 0x1a0]
push edx
push edi
mov byte [esp + 0x98], 0xd
mov byte [esi + 0x2c], al
call fcn.00506f20
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x24]
mov dx, word [ecx + 6]
mov word [eax + 0x2c], dx
mov eax, dword [esp + 0xa0]
or dword [esi + 0x28], 0x10
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
add esp, 0xc
mov esi, ebx
call fcn.004cd790
mov eax, dword [esp + 0xc]
dec eax
mov edx, ebx
call fcn.004cdb30
mov byte [edi + 0x13], 0
mov dword [edi + 0x1c], 0
jmp 0x507428
inc dword [edi + 0x2c]
mov edi, dword [edi + 0x2c]
push 0
push edi
push 0
push 0x38
push ebx
mov dword [esp + 0x20], 0
mov dword [esi + 0x1c], edi
call fcn.004cd400
mov dword [esp + 0x3c], eax
inc eax
add esp, 0x14
test byte [esi + 0x28], 8
mov dword [esi + 0x18], eax
jne 0x507350
push 0
push 0
push 0
push 0x14
push ebx
call fcn.004cd400
add esp, 0x14
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
mov edi, esi
call fcn.00506e90
mov edi, eax
xor eax, eax
cmp edi, eax
je 0x507391
mov ecx, dword [edi + 0x30]
mov edx, dword [esi + 0x30]
push eax
push ecx
push edx
push 0x6a
push ebx
call fcn.004cd400
mov al, byte [edi + 0x2c]
mov byte [esi + 0x2c], al
mov ecx, dword [edi + 0x14]
mov dx, word [ecx + 6]
mov eax, dword [esp + 0x2c]
mov edi, dword [ebp + 8]
add esp, 0x14
mov word [eax + 6], dx
jmp 0x5073da
mov ecx, dword [esi + 0x30]
mov edi, dword [ebp + 8]
mov dl, byte [edi + 0x1a0]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x18]
push eax
push ecx
push edi
mov byte [esp + 0x98], 0xc
mov byte [esi + 0x2c], dl
call fcn.00506f20
add esp, 0xc
mov eax, dword [esp + 0x18]
mov cx, word [eax + 6]
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 0x10]
mov word [edx + 0x2c], cx
test eax, eax
je 0x5073f8
mov edx, ebx
call fcn.004cdb30
mov esi, dword [esi + 0x1c]
push 0
push 0
push esi
push 0x34
push ebx
call fcn.004cd400
add esp, 0x14
mov edx, eax
mov eax, dword [esp + 0x28]
push ebx
call fcn.004cdab0
mov byte [edi + 0x13], 0
mov dword [edi + 0x1c], 0
mov edi, dword [ebp + 8]
add esp, 4
mov edx, dword [esp + 0x44]
cmp byte [edx + 0x45], 0
jne 0x508dfa
mov eax, dword [ebp + 0xc]
call fcn.004e0510
sub dword [edi + 0x198], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, dword [ecx]
mov dword [esp + 0x38], eax
jl 0x507180
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x20]
mov edx, dword [esi]
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x3c], eax
mov al, byte [esi + 8]
and al, 1
mov byte [esp + 0x8c], al
mov eax, dword [esi + 8]
mov dword [esp + 0x58], edx
mov edx, dword [esi + 0x28]
and al, 9
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x68], edx
cmp al, 1
jne 0x5074c1
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x58]
push 0xffffffffffffffff
push ecx
call fcn.004e6130
add esp, 8
test eax, eax
jne 0x5074c1
mov edx, dword [esp + 0x58]
and dword [esi + 8], 0xfffffffe
push eax
mov eax, dword [esp + 0x48]
push edx
push eax
call fcn.004e1000
add esp, 0xc
mov dword [esi + 0x24], eax
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x6c], 0
je 0x507596
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x58]
push 0
push ecx
mov ecx, dword [edx]
push edi
call fcn.005012c0
mov edx, dword [esp + 0x64]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x28]
lea ecx, [eax + 1]
mov dword [edi + 0x28], ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x78]
mov edx, dword [edx]
add esp, 0xc
push 0
lea ecx, [ecx + edx + 1]
push ecx
push eax
push 0x6c
push ebx
mov dword [esp + 0x88], eax
call fcn.004cd400
mov ecx, dword [ebx]
add esp, 0x14
cmp byte [ecx + 0x45], 0
mov dword [esp + 0xc], eax
je 0x50753c
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff7
call fcn.004cdcf0
mov eax, dword [esp + 0x10]
add esp, 4
mov dword [esp + 0x80], eax
jmp 0x5075a1
cmp dword [esp + 0xc], 0
jge 0x50754a
mov eax, dword [ebx + 0x88]
dec eax
mov ecx, dword [ebx + 0x58]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
lea ecx, [ecx + eax*4]
je 0x50757a
mov edx, dword [esp + 0x14]
push edx
push ebx
mov eax, 0xfffffff7
call fcn.004cde50
mov eax, dword [esp + 0x14]
add esp, 8
mov dword [esp + 0x80], eax
jmp 0x5075a1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x507589
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xf7
mov eax, dword [esp + 0xc]
mov dword [esp + 0x80], eax
jmp 0x5075a1
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0xc
jne 0x5075c1
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx]
mov eax, dword [eax + 4]
push 0
push edx
push eax
push 0x6c
push ebx
call fcn.004cd400
add esp, 0x14
mov eax, ebx
call fcn.004cd7c0
test dword [esi + 8], 0x4000
mov dword [esp + 0xf8], eax
jne 0x5075e1
mov ecx, 0x140
mov word [esi + 6], cx
push eax
push esi
mov eax, edi
call fcn.00502540
add esp, 8
cmp dword [esi + 0xc], 0
jne 0x507617
cmp dword [esp + 0x80], 0
jl 0x507617
mov eax, dword [esp + 0x80]
push ebx
mov dl, 0x6d
call fcn.004cda80
add esp, 4
or byte [esp + 0x88], 1
test byte [esi + 8], 1
je 0x5076e3
mov eax, dword [edi + 0x28]
mov dword [esp + 0x90], eax
inc eax
mov dword [edi + 0x28], eax
mov edx, dword [esi]
push 0
push edx
push edi
xor ecx, ecx
call fcn.005012c0
add esp, 0xc
push 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x94]
push 0
push eax
push 0x6c
push ebx
call fcn.004cd400
mov ecx, dword [ebx]
add esp, 0x14
cmp byte [ecx + 0x45], 0
mov dword [esp + 0xc], eax
je 0x507676
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff7
call fcn.004cdcf0
add esp, 4
jmp 0x5076b4
cmp dword [esp + 0xc], 0
jge 0x507684
mov eax, dword [ebx + 0x88]
dec eax
mov edx, dword [ebx + 0x58]
lea ecx, [eax + eax*4]
cmp byte [edx + ecx*4 + 1], 0
mov eax, dword [esp + 0x14]
lea ecx, [edx + ecx*4]
je 0x5076a9
push eax
push ebx
mov eax, 0xfffffff7
call fcn.004cde50
add esp, 8
jmp 0x5076b4
test eax, eax
je 0x5076b4
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xf7
mov eax, dword [ebx + 0x88]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x94], ecx
test eax, eax
jle 0x5076d9
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
mov ecx, 8
mov word [eax + edx*4 - 0x12], cx
mov byte [esp + 0x8d], 3
jmp 0x5076eb
mov byte [esp + 0x8d], 0
mov edx, dword [esp + 0x1c]
xor eax, eax
cmp dword [esp + 0x2c], eax
jne 0x5077f8
cmp edx, eax
jne 0x5077f8
movzx edx, byte [esp + 0x8c]
neg edx
mov ecx, esi
mov ax, word [ecx + 8]
sbb edx, edx
and edx, 0x100
mov esi, 0x4000
and ax, si
or dx, ax
movzx eax, dx
movsx edx, word [ecx + 6]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [ecx]
mov ecx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
push edi
call fcn.00518750
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x508dfa
movzx eax, word [esi + 0x48]
mov ecx, dword [ebp + 0xc]
cmp ax, word [ecx + 6]
jge 0x507765
mov word [ecx + 6], ax
cmp byte [esp + 0x8c], 0
je 0x50777d
mov al, byte [esi + 0x33]
test al, al
je 0x50777d
mov byte [esp + 0x8d], al
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x5077a1
movsx ecx, byte [esi + 0x2f]
mov dl, byte [esi + 0x34]
mov dword [esp + 0x70], ecx
mov byte [esp + 0x89], dl
cmp ecx, dword [eax]
jne 0x5077a1
xor eax, eax
mov dword [esp + 0x6c], eax
cmp dword [esp + 0x80], 0
jl 0x5077bd
test eax, eax
jne 0x5077bd
mov eax, dword [esp + 0x80]
mov edx, ebx
call fcn.004cde10
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov edx, dword [ebp + 0x10]
push eax
push ecx
push edx
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x98]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x7c]
push ecx
push 0xffffffffffffffff
push edx
push eax
push edi
call fcn.00500840
add esp, 0x24
push esi
call fcn.00519100
add esp, 4
jmp 0x508d76
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
cmp edx, eax
je 0x50784f
mov ecx, dword [esi]
mov eax, dword [ecx]
test eax, eax
jle 0x507824
add ecx, 0x1e
xor edx, edx
mov word [ecx], dx
dec eax
add ecx, 0x18
test eax, eax
jg 0x507813
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
test eax, eax
jle 0x50783d
lea ecx, [edx + 0x1e]
lea ecx, [ecx]
xor edx, edx
mov word [ecx], dx
dec eax
add ecx, 0x18
test eax, eax
jg 0x507830
cmp word [esi + 6], 0x42
jle 0x507855
mov eax, 0x42
mov word [esi + 6], ax
jmp 0x507855
xor ecx, ecx
mov word [esi + 6], cx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x6c]
push 0xffffffffffffffff
push edx
call fcn.004e6130
add esp, 8
test eax, eax
jne 0x507874
mov dword [esp + 0x28], 1
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x44]
lea edx, [ecx + 1]
mov dword [eax + 0x44], edx
lea edx, [ecx - 1]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ecx
test ecx, edx
jne 0x5078bf
mov eax, ecx
lea ecx, [eax*8 + 4]
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0x48]
mov esi, dword [eax]
push 0
push ecx
call fcn.004affd0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [edx + 0x48], eax
add esp, 8
mov eax, edx
mov eax, dword [eax + 0x48]
test eax, eax
je 0x5078cd
mov dword [eax + ecx*4], 0xffffffff
mov edx, dword [edi + 0x2c]
or eax, 0xffffffff
sub eax, ecx
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x1c]
inc edx
lea ecx, [esp + 0xa4]
mov dword [esp + 0xd8], edi
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xb4], edx
test eax, eax
je 0x50794e
mov eax, dword [eax]
mov dword [esp + 0xb0], eax
jmp 0x507959
mov dword [esp + 0xb0], 0
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0xdc]
push eax
mov dword [esp + 0xc4], ecx
call fcn.004e6660
mov ecx, dword [esp + 0x74]
push ecx
lea edx, [esp + 0xe4]
push edx
call fcn.004e6660
add esp, 0x10
cmp dword [esp + 0x68], 0
je 0x507a05
cmp dword [esp + 0x1c], 0
je 0x5079b6
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x68]
push eax
add esi, 0x20
push edi
mov eax, esi
call fcn.00506e30
mov ecx, dword [esi]
add esp, 8
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x68]
push eax
lea ecx, [esp + 0x100]
lea edx, [esp + 0xdc]
push ecx
mov dword [esp + 0x108], 0x4e63d0
mov dword [esp + 0x10c], 0x4e6640
mov dword [esp + 0x110], 0x4e6650
mov dword [esp + 0x114], 0
mov dword [esp + 0x11c], edx
call fcn.004dda50
add esp, 8
mov edx, dword [esp + 0xc4]
xor esi, esi
cmp dword [esp + 0xd0], esi
mov dword [esp + 0xc8], edx
jle 0x507a77
mov dword [esp + 0x14], esi
jmp 0x507a30
mov eax, dword [esp + 0xcc]
or word [esp + 0xf4], 8
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + eax]
mov eax, dword [edx + 0x14]
push eax
lea ecx, [esp + 0xdc]
push ecx
call fcn.004e6660
add dword [esp + 0x1c], 0x10
mov edx, 0xfff7
and word [esp + 0xfc], dx
inc esi
add esp, 8
cmp esi, dword [esp + 0xd0]
jl 0x507a30
mov eax, dword [edi + 0x2c]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xb8], eax
cmp byte [ecx + 0x45], 0
jne 0x508dfa
cmp dword [esp + 0x1c], 0
je 0x5089ac
mov eax, dword [edi + 0x28]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc4]
push 0
mov dword [esp + 0xac], eax
push edx
inc eax
push edi
mov dword [edi + 0x28], eax
call fcn.005012c0
mov ecx, dword [esp + 0xb4]
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0xb0]
push 0
push eax
push ecx
push 0x6d
push ebx
mov dword [esp + 0x28], esi
call fcn.004cd400
mov ecx, dword [ebx]
add esp, 0x14
cmp byte [ecx + 0x45], 0
mov dword [esp + 0x4c], eax
je 0x507afc
push 0xfffffffffffffff7
mov eax, esi
call fcn.004cdcf0
add esp, 4
jmp 0x507b33
test eax, eax
jge 0x507b07
mov eax, dword [ebx + 0x88]
dec eax
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
cmp byte [eax + edx*4 + 1], 0
lea ecx, [eax + edx*4]
je 0x507b28
push esi
push ebx
mov eax, 0xfffffff7
call fcn.004cde50
add esp, 8
jmp 0x507b33
test esi, esi
je 0x507b33
mov dword [ecx + 0x10], esi
mov byte [ecx + 1], 0xf7
mov eax, dword [edi + 0x2c]
inc eax
mov dword [esp + 0x40], eax
inc eax
mov dword [esp + 0x60], eax
inc eax
mov dword [edi + 0x2c], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 0x44]
lea edx, [eax + 1]
mov dword [ecx + 0x44], edx
lea edx, [eax - 1]
mov dword [esp + 0x30], ecx
mov dword [esp + 0xc], eax
test eax, edx
jne 0x507b8a
lea ecx, [eax*8 + 4]
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 0x48]
mov esi, dword [eax]
push 0
push ecx
call fcn.004affd0
mov edx, dword [esp + 0x38]
mov edi, dword [ebp + 8]
mov dword [edx + 0x48], eax
mov eax, dword [esp + 0x14]
add esp, 8
mov ecx, edx
mov ecx, dword [ecx + 0x48]
test ecx, ecx
je 0x507b98
mov dword [ecx + eax*4], 0xffffffff
inc dword [edi + 0x2c]
or ecx, 0xffffffff
sub ecx, eax
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0x44]
lea edx, [eax + 1]
mov dword [ecx + 0x44], edx
lea edx, [eax - 1]
mov dword [esp + 0x54], ecx
mov dword [esp + 0xc], eax
test eax, edx
jne 0x507bf1
lea ecx, [eax*8 + 4]
mov eax, dword [esp + 0x54]
mov edi, dword [eax + 0x48]
mov esi, dword [eax]
push 0
push ecx
call fcn.004affd0
mov edx, dword [esp + 0x5c]
mov edi, dword [ebp + 8]
mov dword [edx + 0x48], eax
mov eax, dword [esp + 0x14]
add esp, 8
mov ecx, edx
mov ecx, dword [ecx + 0x48]
test ecx, ecx
je 0x507bff
mov dword [ecx + eax*4], 0xffffffff
or esi, 0xffffffff
sub esi, eax
mov eax, dword [edi + 0x2c]
lea ecx, [eax + 1]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
add eax, edx
lea edx, [eax + 1]
push 0
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x64]
push edx
mov dword [edi + 0x2c], eax
mov ecx, dword [ecx]
push 0
add ecx, eax
push 0x38
push ebx
mov dword [esp + 0x20], esi
mov dword [edi + 0x2c], ecx
call fcn.004cd400
mov eax, dword [esp + 0x54]
add esp, 0x14
push 0
push eax
push 0
push 0x38
push ebx
call fcn.004cd400
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x78]
mov edx, dword [ecx]
add esp, 0x14
lea ecx, [edx + eax - 1]
push ecx
push eax
push 0
push 0x3b
push ebx
call fcn.004cd400
mov edx, dword [esp + 0x44]
add esp, 0x14
push 0
push esi
push edx
push 0xe
push ebx
call fcn.004cd400
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
add esp, 0x14
neg eax
sbb eax, eax
and eax, 0x200
or ax, 0x40
push 0
movzx ecx, ax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x18]
push 0
push edx
push eax
push ecx
push edi
call fcn.00518750
add esp, 0x1c
mov dword [esp + 0x3c], eax
test eax, eax
je 0x508dfa
mov ecx, dword [esp + 0x1c]
mov edx, eax
movsx eax, byte [edx + 0x2f]
cmp eax, dword [ecx]
jne 0x507cdb
mov dword [esp + 0x54], 0
jmp 0x5080f2
cmp byte [esp + 0x8c], 0
je 0x507cf3
mov edx, dword [ebp + 0xc]
test byte [edx + 8], 1
mov eax, str.DISTINCT
je 0x507cf8
mov eax, str.GROUP_BY
push edi
call fcn.00501350
mov eax, dword [esp + 0x20]
mov esi, dword [eax]
mov ecx, dword [esp + 0xc8]
add esp, 4
mov dword [esp + 0x54], 1
mov dword [esp + 0x20], esi
mov eax, esi
test ecx, ecx
jle 0x507d41
mov edx, dword [esp + 0xc0]
add edx, 0xc
mov dword [esp + 0x2c], ecx
cmp dword [edx], eax
jl 0x507d37
inc dword [esp + 0x20]
inc eax
add edx, 0x18
sub dword [esp + 0x2c], 1
jne 0x507d2e
mov edx, dword [esp + 0x20]
cmp edx, 1
jne 0x507d72
mov al, byte [edi + 0x13]
test al, al
jne 0x507d5d
inc dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x10], eax
jmp 0x507d99
dec al
movzx ecx, al
mov byte [edi + 0x13], al
mov eax, dword [edi + ecx*4 + 0x15c]
mov dword [esp + 0x10], eax
jmp 0x507d99
mov eax, dword [edi + 0x1c]
cmp edx, eax
mov ecx, dword [edi + 0x20]
jg 0x507d8a
add edx, ecx
sub eax, dword [esp + 0x20]
mov dword [edi + 0x20], edx
mov dword [edi + 0x1c], eax
jmp 0x507d95
mov eax, dword [edi + 0x2c]
lea ecx, [eax + 1]
add eax, edx
mov dword [edi + 0x2c], eax
mov dword [esp + 0x10], ecx
mov eax, edi
call fcn.004e43b0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
push 0
push 0
push edx
push edi
call fcn.004e5570
add esp, 0x10
cmp dword [esp + 0xc4], 0
mov dword [esp + 0x48], esi
mov dword [esp + 0x38], 0
jle 0x507e5f
mov eax, dword [esp + 0x10]
add eax, esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
cmp dword [edx + eax + 0xc], ecx
jl 0x507e48
mov ecx, edx
mov esi, dword [ecx + eax + 8]
mov edx, dword [ecx + eax + 4]
mov eax, dword [ecx + eax]
mov ecx, dword [esp + 0x24]
push 0
push ecx
push edx
push esi
push eax
mov esi, edi
call fcn.004e42e0
add esp, 0x14
cmp eax, dword [esp + 0x24]
je 0x507e34
mov edx, dword [esp + 0x24]
push 0
push edx
push eax
mov eax, dword [edi + 8]
push 0x41
push eax
call fcn.004cd400
add esp, 0x14
mov eax, 1
add dword [esp + 0x48], eax
add dword [esp + 0x24], eax
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x38]
add dword [esp + 0x2c], 0x18
inc ecx
cmp ecx, dword [esp + 0xc4]
mov dword [esp + 0x38], ecx
jl 0x507de9
mov al, byte [edi + 0x13]
test al, al
jne 0x507e6e
inc dword [edi + 0x2c]
mov edx, dword [edi + 0x2c]
jmp 0x507e7d
dec al
movzx ecx, al
mov byte [edi + 0x13], al
mov edx, dword [edi + ecx*4 + 0x15c]
mov eax, dword [ebx + 0x88]
mov ecx, dword [ebx + 0xc]
cmp dword [ecx + 0x30], eax
mov dword [esp + 0x24], edx
jg 0x507eac
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
push 0x63
mov esi, ebx
call fcn.004cd3c0
mov edx, dword [esp + 0x34]
add esp, 0x10
jmp 0x507ee3
lea ecx, [eax + 1]
mov dword [ebx + 0x88], ecx
mov ecx, dword [ebx + 0x58]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov byte [eax], 0x63
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, dword [ebx + 0x88]
mov esi, dword [ebx + 0xc]
cmp dword [esi + 0x30], eax
mov ecx, dword [esp + 0xa8]
jg 0x507f14
mov edx, dword [esp + 0x24]
push 0
push edx
mov eax, ecx
push eax
push 0x7d
mov esi, ebx
call fcn.004cd3c0
mov edx, dword [esp + 0x34]
add esp, 0x10
jmp 0x507f40
lea esi, [eax + 1]
mov dword [ebx + 0x88], esi
mov esi, dword [ebx + 0x58]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
xor esi, esi
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x7d
mov word [eax + 2], si
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
test edx, edx
je 0x507f76
cmp byte [edi + 0x13], 8
jae 0x507f76
xor eax, eax
lea ecx, [edi + 0x94]
cmp byte [edi + 0x19], al
jbe 0x507f68
cmp dword [ecx + 0xc], edx
je 0x507fc1
movzx esi, byte [edi + 0x19]
inc eax
add ecx, 0x14
cmp eax, esi
jl 0x507f57
movzx ecx, byte [edi + 0x13]
mov dword [edi + ecx*4 + 0x15c], edx
inc byte [edi + 0x13]
cmp dword [esp + 0x20], 1
jne 0x507fcd
cmp dword [esp + 0x10], 0
je 0x507fef
cmp byte [edi + 0x13], 8
jae 0x507fef
mov esi, dword [esp + 0x10]
xor eax, eax
lea ecx, [edi + 0x94]
cmp byte [edi + 0x19], al
jbe 0x507fb1
jmp 0x507fa0
cmp dword [ecx + 0xc], esi
je 0x507fc7
movzx edx, byte [edi + 0x19]
inc eax
add ecx, 0x14
cmp eax, edx
jl 0x507fa0
movzx eax, byte [edi + 0x13]
mov dword [edi + eax*4 + 0x15c], esi
inc byte [edi + 0x13]
jmp 0x507fef
mov byte [ecx + 6], 1
jmp 0x507f76
mov byte [ecx + 6], 1
jmp 0x507fef
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
push esi
push ecx
push edi
call fcn.004e41a0
add esp, 0xc
cmp esi, dword [edi + 0x1c]
jle 0x507fef
mov edx, dword [esp + 0x10]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], edx
mov eax, dword [esp + 0x3c]
push eax
call fcn.00519100
mov ecx, dword [edi + 0x28]
mov al, byte [edi + 0x13]
add esp, 4
lea edx, [ecx + 1]
mov dword [esp + 0x24], ecx
mov dword [esp + 0xac], ecx
mov dword [edi + 0x28], edx
test al, al
jne 0x50801f
inc dword [edi + 0x2c]
mov edx, dword [edi + 0x2c]
jmp 0x50802e
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov edx, dword [edi + eax*4 + 0x15c]
mov eax, dword [ebx + 0x88]
mov esi, dword [ebx + 0xc]
cmp dword [esi + 0x30], eax
mov dword [esp + 0x2c], edx
jg 0x508059
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push 0x6f
mov esi, ebx
call fcn.004cd3c0
add esp, 0x10
jmp 0x508088
lea esi, [eax + 1]
mov dword [ebx + 0x88], esi
mov esi, dword [ebx + 0x58]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
xor esi, esi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov byte [eax], 0x6f
mov word [eax + 2], si
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov eax, dword [ebx + 0x88]
mov edx, dword [ebx + 0xc]
cmp dword [edx + 0x30], eax
mov ecx, dword [esp + 0xa8]
jg 0x5080b3
mov eax, dword [esp + 0x50]
push 0
push eax
push ecx
push 0x23
mov esi, ebx
call fcn.004cd3c0
add esp, 0x10
jmp 0x5080e3
lea edx, [eax + 1]
mov dword [ebx + 0x88], edx
mov edx, dword [ebx + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x50]
xor edx, edx
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x23
mov word [eax + 2], dx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, edi
mov byte [esp + 0xa5], 1
call fcn.004e43b0
cmp dword [esp + 0x28], 0
je 0x508152
mov edx, dword [esp + 0x44]
test byte [edx + 0x40], 4
jne 0x508152
cmp dword [esp + 0x54], 0
jne 0x508114
mov eax, dword [esp + 0x3c]
cmp byte [eax + 0x30], 0
je 0x508152
mov ecx, dword [ebx]
cmp byte [ecx + 0x45], 0
mov dword [esp + 0x6c], 0
jne 0x508152
mov eax, dword [esp + 0x80]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea esi, [eax + edx*4]
movsx edx, byte [esi + 1]
mov eax, dword [esi + 0x10]
push edx
call fcn.004cdcf0
add esp, 4
mov byte [esi + 1], 0
mov dword [esi + 0x10], 0
mov byte [esi], 0xa6
mov eax, dword [ebx + 0x88]
mov dword [esp + 0x10], eax
mov eax, edi
call fcn.004e43b0
cmp dword [esp + 0x54], 0
je 0x508187
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0xa8]
push ecx
push edx
push eax
push 0x79
push ebx
call fcn.004cd400
add esp, 0x14
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp dword [eax], esi
mov dword [esp + 0x48], esi
jle 0x50824b
add eax, 8
mov dword [esp + 0x28], eax
cmp dword [esp + 0x54], 0
je 0x508215
mov eax, dword [ebx + 0x88]
mov ecx, dword [ebx + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x5081d9
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x5c]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
push 0x60
mov esi, ebx
call fcn.004cd3c0
mov esi, dword [esp + 0x58]
add esp, 0x10
jmp 0x508235
lea ecx, [eax + 1]
mov dword [ebx + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], edx
lea edx, [esi + ecx]
mov byte [eax], 0x60
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
jmp 0x508235
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x28]
lea ecx, [esi + eax]
mov byte [esp + 0xa4], 1
mov eax, dword [edx]
push ecx
push eax
push edi
call fcn.004e54a0
add esp, 0xc
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x28], 0x18
inc esi
cmp esi, dword [ecx]
mov dword [esp + 0x48], esi
jl 0x5081a0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x508255
inc dword [eax]
mov ecx, dword [ebx + 0x88]
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0x30], ecx
mov edx, dword [esp + 0x1c]
mov edx, dword [edx]
jg 0x508282
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x68]
push ecx
push edx
push 0x5e
mov esi, ebx
call fcn.004cd3c0
add esp, 0x10
jmp 0x5082bb
mov esi, dword [ebx + 0x58]
lea eax, [ecx + 1]
mov dword [ebx + 0x88], eax
lea eax, [ecx + ecx*4]
lea eax, [esi + eax*4]
xor esi, esi
mov word [eax + 2], si
mov esi, dword [esp + 0x64]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x5c]
mov byte [eax], 0x5e
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, ecx
mov ecx, dword [ebx]
cmp byte [ecx + 0x45], 0
je 0x5082d3
mov eax, dword [esp + 0x14]
push 0xfffffffffffffff7
call fcn.004cdcf0
add esp, 4
jmp 0x50830e
test eax, eax
jge 0x5082de
mov eax, dword [ebx + 0x88]
dec eax
mov edx, dword [ebx + 0x58]
lea ecx, [eax + eax*4]
cmp byte [edx + ecx*4 + 1], 0
mov eax, dword [esp + 0x14]
lea ecx, [edx + ecx*4]
je 0x508303
push eax
push ebx
mov eax, 0xfffffff7
call fcn.004cde50
add esp, 8
jmp 0x50830e
test eax, eax
je 0x50830e
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xf7
mov eax, dword [ebx + 0x88]
mov edx, dword [ebx + 0xc]
cmp dword [edx + 0x30], eax
mov dword [esp + 0x14], eax
lea ecx, [eax + 1]
jg 0x508335
push ecx
push 0
push ecx
push 0x12
mov esi, ebx
call fcn.004cd3c0
add esp, 0x10
jmp 0x50835f
lea edx, [eax + 1]
mov dword [ebx + 0x88], edx
mov edx, dword [ebx + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 0x12
mov word [eax + 2], dx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov eax, dword [esp + 0x1c]
mov esi, dword [edi + 8]
mov ecx, dword [eax]
mov eax, dword [esi + 0x88]
mov edx, dword [esi + 0xc]
cmp dword [edx + 0x30], eax
mov dword [esp + 0x28], ecx
jg 0x508397
mov edx, dword [esp + 0x5c]
mov eax, ecx
mov ecx, dword [esp + 0x64]
push eax
push ecx
push edx
push 0x3f
call fcn.004cd3c0
mov ecx, dword [esp + 0x38]
add esp, 0x10
jmp 0x5083ce
lea edx, [eax + 1]
mov dword [esi + 0x88], edx
mov edx, dword [esi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x64]
mov byte [eax], 0x3f
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, dword [esp + 0x5c]
push ecx
push eax
push edi
call fcn.004e41a0
mov eax, dword [ebx + 0x88]
mov ecx, dword [ebx + 0xc]
add esp, 0xc
cmp dword [ecx + 0x30], eax
jg 0x50840c
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x60]
push 0
push edx
inc eax
push eax
push 0xe
mov esi, ebx
mov dword [esp + 0x30], eax
call fcn.004cd3c0
add esp, 0x10
xor esi, esi
jmp 0x508446
lea ecx, [eax + 1]
mov dword [ebx + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x60]
inc ecx
xor esi, esi
mov byte [eax], 0xe
mov dword [esp + 0x20], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov eax, dword [ebx + 0x88]
mov ecx, dword [ebx + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x508470
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x60]
push 0
push edx
push eax
push 0x2e
mov esi, ebx
call fcn.004cd3c0
add esp, 0x10
xor esi, esi
jmp 0x5084a3
lea ecx, [eax + 1]
mov dword [ebx + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x60]
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x50]
mov byte [eax], 0x2e
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov eax, dword [ebx + 0x88]
mov edx, dword [ebx + 0xc]
cmp dword [edx + 0x30], eax
jg 0x5084cd
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
push 0
push eax
push ecx
push 0xe
mov esi, ebx
call fcn.004cd3c0
add esp, 0x10
xor esi, esi
jmp 0x508500
mov ecx, dword [ebx + 0x58]
lea edx, [eax + 1]
mov dword [ebx + 0x88], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x30]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0xc]
mov byte [eax], 0xe
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov eax, dword [esp + 0x14]
cmp eax, esi
mov ecx, dword [ebx + 0x88]
jge 0x508511
lea eax, [ecx - 1]
mov edx, dword [ebx]
cmp byte [edx + 0x45], 0
je 0x508520
mov eax, 0x5ef850
jmp 0x508529
mov edx, dword [ebx + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
lea eax, [esp + 0xa4]
push eax
push edi
call fcn.00506810
mov eax, dword [ebx + 0x88]
mov ecx, dword [ebx + 0xc]
add esp, 8
cmp dword [ecx + 0x30], eax
jg 0x508564
mov edx, dword [esp + 0x40]
push 0
push edx
push 1
push 0x38
mov esi, ebx
call fcn.004cd3c0
add esp, 0x10
xor esi, esi
jmp 0x508596
lea ecx, [eax + 1]
mov dword [ebx + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x40]
xor ecx, ecx
mov byte [eax], 0x38
mov word [eax + 2], cx
mov dword [eax + 4], 1
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], cl
cmp dword [esp + 0x54], esi
je 0x5085f3
mov eax, dword [ebx + 0x88]
mov edx, dword [ebx + 0xc]
cmp dword [edx + 0x30], eax
mov ecx, dword [esp + 0xa8]
jg 0x5085c9
mov eax, dword [esp + 0x10]
push 0
push eax
push ecx
push 3
mov esi, ebx
call fcn.004cd3c0
add esp, 0x10
xor esi, esi
jmp 0x508637
lea edx, [eax + 1]
mov dword [ebx + 0x88], edx
mov edx, dword [ebx + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
xor edx, edx
mov byte [eax], 3
mov word [eax + 2], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
jmp 0x508630
mov edx, dword [esp + 0x3c]
push edx
call fcn.00519100
mov ecx, dword [ebx]
add esp, 4
cmp byte [ecx + 0x45], 0
jne 0x508637
mov eax, dword [esp + 0x4c]
mov edx, dword [ebx + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
movsx edx, byte [eax + 1]
mov dword [esp + 0x4c], eax
mov eax, dword [eax + 0x10]
push edx
call fcn.004cdcf0
mov eax, dword [esp + 0x50]
add esp, 4
mov byte [eax], 0xa6
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov eax, dword [ebx + 0x88]
mov ecx, dword [ebx + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x508661
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push 0
push edx
push eax
push 0xe
mov esi, ebx
call fcn.004cd3c0
add esp, 0x10
xor esi, esi
jmp 0x508694
lea ecx, [eax + 1]
mov dword [ebx + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, dword [esp + 0x18]
mov byte [eax], 0xe
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov eax, dword [ebx + 0x88]
mov edx, dword [ebx + 0xc]
cmp dword [edx + 0x30], eax
jg 0x5086bb
mov eax, dword [esp + 0x50]
push 0
push eax
push 0
push 0xd
mov esi, ebx
call fcn.004cd3c0
add esp, 0x10
xor esi, esi
jmp 0x5086e9
lea ecx, [eax + 1]
mov dword [ebx + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x50]
xor ecx, ecx
mov byte [eax], 0xd
mov word [eax + 2], cx
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], cl
mov eax, dword [ebx + 0x88]
mov ecx, dword [ebx + 0xc]
cmp dword [ecx + 0x30], eax
mov dword [esp + 0x4c], eax
jg 0x508714
mov edx, dword [esp + 0x60]
push 0
push edx
push 1
push 0x38
mov esi, ebx
call fcn.004cd3c0
add esp, 0x10
xor esi, esi
jmp 0x508746
lea ecx, [eax + 1]
mov dword [ebx + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x60]
xor ecx, ecx
mov byte [eax], 0x38
mov word [eax + 2], cx
mov dword [eax + 4], 1
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], cl
mov eax, dword [ebx + 0x88]
mov ecx, dword [ebx + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x50876d
mov edx, dword [esp + 0x20]
push 0
push 0
push edx
push 0x34
mov esi, ebx
call fcn.004cd3c0
add esp, 0x10
xor esi, esi
jmp 0x50879b
lea ecx, [eax + 1]
mov dword [ebx + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov byte [eax], 0x34
mov word [eax + 2], cx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], cl
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x48]
cmp eax, esi
je 0x5087ba
mov ecx, dword [esp + 0x18]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebx + 0x88]
sub eax, edx
mov dword [eax], ecx
mov eax, dword [ebx + 0x88]
mov edx, dword [ebx + 0xc]
cmp dword [edx + 0x30], eax
mov dword [esp + 0x18], eax
lea ecx, [eax + 2]
jg 0x5087e7
mov eax, dword [esp + 0x40]
push 0
push ecx
push eax
push 0x2e
mov esi, ebx
call fcn.004cd3c0
add esp, 0x10
xor esi, esi
jmp 0x508816
lea edx, [eax + 1]
mov dword [ebx + 0x88], edx
mov edx, dword [ebx + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov word [eax + 2], dx
mov edx, dword [esp + 0x40]
mov byte [eax], 0x2e
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov eax, dword [ebx + 0x88]
mov ecx, dword [ebx + 0xc]
cmp dword [ecx + 0x30], eax
jg 0x50883d
mov edx, dword [esp + 0x20]
push 0
push 0
push edx
push 0x34
mov esi, ebx
call fcn.004cd3c0
add esp, 0x10
xor esi, esi
jmp 0x50886b
lea ecx, [eax + 1]
mov dword [ebx + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov byte [eax], 0x34
mov word [eax + 2], cx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], cl
lea eax, [esp + 0xa4]
push eax
mov eax, edi
call fcn.00506790
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x6c]
add esp, 4
inc eax
push 0x10
push eax
push ecx
push edi
mov dword [esp + 0x38], eax
call fcn.004e5b10
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x8c]
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push 0xffffffffffffffff
push ecx
push eax
push edi
call fcn.00500840
mov eax, dword [ebx + 0x88]
mov edx, dword [ebx + 0xc]
add esp, 0x34
cmp dword [edx + 0x30], eax
jg 0x5088eb
mov eax, dword [esp + 0x20]
push 0
push 0
push eax
push 0x34
mov esi, ebx
call fcn.004cd3c0
add esp, 0x10
xor esi, esi
jmp 0x508919
lea ecx, [eax + 1]
mov dword [ebx + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov byte [eax], 0x34
mov word [eax + 2], cx
mov dword [eax + 4], edx
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], cl
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x48]
cmp eax, esi
je 0x508938
mov ecx, dword [esp + 0xc]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebx + 0x88]
sub eax, edx
mov dword [eax], ecx
lea edx, [esp + 0xa4]
push edx
push edi
call fcn.00506680
mov eax, dword [ebx + 0x88]
mov ecx, dword [ebx + 0xc]
add esp, 8
cmp dword [ecx + 0x30], eax
jg 0x508975
mov edx, dword [esp + 0x30]
push 0
push 0
push edx
push 0x34
mov esi, ebx
call fcn.004cd3c0
mov esi, dword [esp + 0x60]
add esp, 0x10
jmp 0x508d5b
lea ecx, [eax + 1]
mov dword [ebx + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x30]
xor ecx, ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov esi, dword [esp + 0x50]
mov byte [eax], 0x34
mov word [eax + 2], cx
mov dword [eax + 4], edx
mov byte [eax + 1], cl
jmp 0x508d5b
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0xa4]
mov dword [esp + 0x40], 0
call fcn.005053b0
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
je 0x508c0c
mov ecx, dword [esi + 0x48]
mov eax, dword [edi]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x18], 0xfff0bdc0
test ecx, ecx
je 0x508a18
mov edx, dword [eax + 0x14]
xor ecx, ecx
mov dword [esp + 0x18], ecx
test edx, edx
jle 0x508a18
mov eax, dword [eax + 0x10]
add eax, 0xc
lea esp, [esp]
mov esi, dword [esp + 0x4c]
cmp dword [eax], esi
je 0x508a10
inc ecx
add eax, 0x10
cmp ecx, edx
jl 0x508a00
mov esi, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
mov eax, dword [edi + 0x28]
mov dword [esp + 0x3c], eax
inc eax
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0x1c]
xor ecx, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x78]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
mov esi, eax
cmp eax, ecx
jne 0x508a3f
mov esi, edi
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x5c]
mov edx, 1
shl edx, cl
test eax, edx
jne 0x508a62
or edx, eax
mov dword [esi + 0x5c], edx
cmp ecx, 1
jne 0x508a62
mov eax, esi
call fcn.004ef7a0
mov esi, dword [esp + 0xc]
mov ecx, dword [esi]
mov edx, dword [esi + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
mov eax, edi
call fcn.004e9be0
add esp, 0x10
test byte [esi + 0x24], 0x20
je 0x508aaa
mov eax, dword [esi + 8]
test eax, eax
je 0x508aa2
jmp 0x508a90
mov ecx, dword [eax + 0x38]
and cl, 3
cmp cl, 2
je 0x508aa2
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x508a90
mov edx, eax
mov dword [esp + 0x30], edx
jmp 0x508aae
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 8]
test eax, eax
je 0x508ae2
test byte [eax + 0x38], 4
jne 0x508ad7
movzx ecx, word [eax + 0x30]
cmp cx, word [esi + 0x2e]
jge 0x508ad7
cmp dword [eax + 0x24], 0
jne 0x508ad7
test edx, edx
je 0x508ad5
cmp cx, word [edx + 0x30]
jge 0x508ad7
mov edx, eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x508ab5
mov dword [esp + 0x30], edx
test edx, edx
je 0x508afd
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x2c]
push eax
push edi
call fcn.004eff80
add esp, 8
mov dword [esp + 0x28], eax
jmp 0x508b01
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
push edx
push esi
mov esi, dword [esp + 0x44]
push esi
push 0x68
push ebx
call fcn.004cd400
mov ecx, dword [ebx]
add esp, 0x14
cmp byte [ecx + 0x45], 0
jne 0x508b33
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea eax, [eax + edx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], 1
mov edx, dword [esp + 0x28]
test edx, edx
je 0x508b80
mov ecx, dword [ebx]
cmp byte [ecx + 0x45], 0
je 0x508b51
push 0xfffffffffffffff7
mov eax, edx
call fcn.004cdcf0
add esp, 4
jmp 0x508b80
mov eax, dword [ebx + 0x88]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
cmp byte [eax + ecx*4 + 1], 0
lea ecx, [eax + ecx*4]
je 0x508b79
push edx
push ebx
mov eax, 0xfffffff7
call fcn.004cde50
add esp, 8
jmp 0x508b80
mov dword [ecx + 0x10], edx
mov byte [ecx + 1], 0xf7
mov ecx, dword [esp + 0xcc]
mov edx, dword [ecx + 8]
push 0
push edx
push esi
push 0x64
push ebx
call fcn.004cd400
mov eax, dword [ebx + 0x88]
mov ecx, dword [ebx + 0xc]
add esp, 0x14
cmp dword [ecx + 0x30], eax
jg 0x508bcf
mov edx, dword [esp + 0x3c]
push 0
push 0
push edx
push 0x70
mov esi, ebx
call fcn.004cd3c0
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
add esp, 0x10
push edi
call fcn.00506cb0
jmp 0x508d09
lea ecx, [eax + 1]
mov dword [ebx + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0xc]
xor ecx, ecx
mov byte [eax], 0x70
mov word [eax + 2], cx
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x30]
push edi
call fcn.00506cb0
jmp 0x508d09
mov edx, dword [ebp + 0xc]
xor esi, esi
mov dword [esp + 0xc], esi
mov byte [esp + 0x37], 0
cmp dword [edx + 0x28], esi
jne 0x508c6d
lea edi, [esp + 0xc]
lea eax, [esp + 0xa4]
call fcn.00505340
mov byte [esp + 0x37], al
test al, al
je 0x508c69
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x44]
push esi
push eax
push edi
call fcn.004e1000
add esp, 0xc
cmp byte [edi + 0x45], 0
mov esi, eax
mov dword [esp + 0x40], esi
jne 0x508c6d
cmp byte [esp + 0x37], 1
setne cl
mov byte [esi + 0x14], cl
mov edx, dword [esi + 8]
mov byte [edx], 0x98
jmp 0x508c6d
mov esi, dword [esp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [esp + 0xa4]
push eax
push edi
call fcn.00506680
movzx cx, byte [esp + 0x3f]
mov eax, dword [esp + 0x44]
push 0
movzx edx, cx
mov ecx, dword [esp + 0x1c]
push edx
push 0
push esi
push eax
push ecx
push edi
call fcn.00518750
mov esi, eax
add esp, 0x24
test esi, esi
jne 0x508cc7
cmp dword [esp + 0x40], eax
je 0x508dfa
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
push edx
push eax
call fcn.004e1770
add esp, 8
jmp 0x508dfa
lea ecx, [esp + 0xa4]
push ecx
push edi
call fcn.00506810
add esp, 8
cmp byte [esi + 0x2f], 0
jle 0x508cf1
mov edx, dword [esi + 0x24]
push 0
push edx
push 0
push 0xd
push ebx
call fcn.004cd400
add esp, 0x14
push esi
call fcn.00519100
add esp, 4
lea eax, [esp + 0xa4]
push eax
mov eax, edi
call fcn.00506790
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0x6c]
add esp, 4
push 0x10
push esi
push ecx
push edi
mov dword [esp + 0x7c], 0
call fcn.004e5b10
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push esi
push esi
push edx
push 0
push 0
push 0xffffffffffffffff
push ecx
push eax
push edi
call fcn.00500840
add esp, 0x34
cmp dword [esp + 0x40], 0
je 0x508d5b
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
push edx
push eax
call fcn.004e1770
add esp, 8
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x508d76
mov edx, dword [ebx + 0x88]
lea ecx, [esi*4 + 4]
sub eax, ecx
mov dword [eax], edx
cmp byte [esp + 0x8d], 3
jne 0x508d8e
push edi
mov eax, str.DISTINCT
call fcn.00501350
add esp, 4
cmp dword [esp + 0x6c], 0
je 0x508dcc
cmp dword [esp + 0x70], 0
mov eax, str.RIGHT_PART_OF_ORDER_BY
jg 0x508da6
mov eax, str.ORDER_BY
push edi
call fcn.00501350
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
add esp, 4
push eax
push edx
lea eax, [esp + 0x74]
push eax
push ecx
push edi
call fcn.005014f0
add esp, 0x14
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x508dee
mov edx, dword [esp + 0xf8]
lea ecx, [edx*4 + 4]
mov edx, dword [ebx + 0x88]
sub eax, ecx
mov dword [eax], edx
xor eax, eax
cmp dword [edi + 0x24], eax
setg al
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xd4]
mov edx, dword [ebp + 8]
mov esi, dword [esp + 0x44]
mov dword [edx + 0x19c], ecx
mov edi, eax
test eax, eax
je 0x508eaf
cmp dword [esi + 0x1c8], 0
je 0x508e31
mov ecx, esi
call fcn.004afa70
jmp 0x508eaf
cmp eax, dword [esi + 0x120]
jb 0x508e57
cmp eax, dword [esi + 0x124]
jae 0x508e57
mov ecx, dword [esi + 0x11c]
mov dword [eax], ecx
dec dword [esi + 0x108]
mov dword [esi + 0x11c], eax
jmp 0x508eaf
cmp dword [0x5eb9e0], 0
je 0x508ea5
mov eax, dword [0x5f0898]
test eax, eax
je 0x508e73
push eax
call dword [0x5eba38]
add esp, 4
push edi
call dword [0x5eba14]
sub dword [0x5f06e8], eax
dec dword [0x5f070c]
add esp, 4
push edi
call dword [0x5eba0c]
mov eax, dword [0x5f0898]
add esp, 4
test eax, eax
je 0x508eaf
push eax
call dword [0x5eba40]
jmp 0x508eac
push eax
call dword [0x5eba0c]
add esp, 4
mov eax, dword [esp + 0xcc]
mov edi, eax
test eax, eax
je 0x508f6e
cmp dword [esi + 0x1c8], 0
je 0x508edb
mov ecx, esi
call fcn.004afa70
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, dword [esi + 0x120]
jb 0x508f0a
cmp eax, dword [esi + 0x124]
jae 0x508f0a
mov edx, dword [esi + 0x11c]
mov dword [eax], edx
dec dword [esi + 0x108]
mov dword [esi + 0x11c], eax
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x5eb9e0], 0
je 0x508f64
mov eax, dword [0x5f0898]
test eax, eax
je 0x508f26
push eax
call dword [0x5eba38]
add esp, 4
push edi
call dword [0x5eba14]
sub dword [0x5f06e8], eax
dec dword [0x5f070c]
add esp, 4
push edi
call dword [0x5eba0c]
mov eax, dword [0x5f0898]
add esp, 4
test eax, eax
je 0x508f6e
push eax
call dword [0x5eba40]
mov eax, dword [esp + 0x4c]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [0x5eba0c]
add esp, 4
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret