Function at 0x50f700
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe8
push ebx
mov ebx, dword [esp + 0xf0]
mov eax, dword [ebx + 0x1d0]
mov dword [esp + 0xc4], eax
mov eax, dword [ebx + 0x1d4]
push esi
mov esi, dword [esp + 0xf8]
push edi
mov edi, dword [ebx]
mov dword [ebx + 0x1d0], eax
inc eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 1
mov dword [ebx + 0x1d4], eax
mov dword [esp + 0x24], edi
test esi, esi
je 0x50f773
cmp byte [edi + 0x41], 0
jne 0x50f773
cmp dword [ebx + 0x40], 0
jne 0x50f773
push 0
push 0
push 0
push 0x15
mov eax, ebx
call fcn.004e4090
add esp, 0x10
test eax, eax
je 0x50f782
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xe8
ret
push ebp
push 0x30
lea ecx, [esp + 0xa4]
push 0
push ecx
call fcn.00412eb0
mov ebp, dword [esp + 0x110]
add esp, 0xc
cmp byte [ebp], 8
ja 0x50f7c1
mov edx, dword [esi + 0x30]
push edx
push edi
call fcn.004d19a0
mov eax, 0xfffe
add esp, 8
and word [esi + 6], ax
mov dword [esi + 0x30], 0
push 0
push esi
push ebx
call fcn.00505070
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x20]
xor eax, eax
add esp, 0xc
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 dword [esp + 0x98], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x40], edx
cmp dword [ebx + 0x40], eax
jne 0x5111ff
cmp byte [edi + 0x41], al
jne 0x5111ff
movzx eax, word [esi + 6]
mov ecx, dword [esi]
shr eax, 3
and eax, 1
cmp dword [ecx], 1
mov dword [esp + 0x4c], eax
movzx eax, byte [ebp]
jle 0x50f85b
cmp eax, 0xa
je 0x50f847
cmp eax, 0xb
jne 0x50f85b
push str.only_a_single_result_allowed_for_a_SELECT_that_is_part_of_an_expression
mov edi, ebx
call fcn.004e0360
add esp, 4
jmp 0x5111ff
xor ebp, ebp
cmp dword [esi + 0x34], ebp
jne 0x50f8f8
cmp ebp, dword [edx]
jge 0x50f8f8
lea eax, [ebp + ebp*4]
shl eax, 4
lea ecx, [eax + edx + 8]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x10]
test eax, eax
je 0x50f8ed
movsx edx, word [ecx + 0x22]
mov edi, dword [eax]
cmp edx, dword [edi]
jne 0x50f939
movzx edi, word [eax + 6]
mov eax, dword [esp + 0x4c]
shr edi, 3
and edi, 1
push edi
push eax
push ebp
push ebx
mov eax, esi
call fcn.004e8210
add esp, 0x10
test eax, eax
je 0x50f8c5
test edi, edi
je 0x50f8c2
or word [esi + 6], 8
mov dword [esp + 0x4c], 1
or ebp, 0xffffffff
mov ecx, dword [esp + 0x28]
cmp byte [ecx + 0x41], 0
mov edx, dword [esi + 0x20]
mov dword [esp + 0x40], edx
jne 0x5111ff
mov eax, dword [esp + 0x104]
cmp byte [eax], 8
jbe 0x50f8ed
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x7c], ecx
inc ebp
cmp dword [esi + 0x34], 0
je 0x50f866
mov edi, ebx
call fcn.004d8f30
mov ebp, eax
test ebp, ebp
je 0x5111ff
cmp dword [esi + 0x34], 0
je 0x50f95a
mov ecx, dword [esp + 0x104]
push ecx
push esi
push ebx
call fcn.004fb3d0
mov edx, dword [esp + 0xdc]
add esp, 0xc
pop ebp
pop edi
pop esi
mov dword [ebx + 0x1d0], edx
pop ebx
add esp, 0xe8
ret
mov edx, edi
mov eax, dword [edx]
mov edx, dword [ecx]
push eax
movsx eax, word [ecx + 0x22]
push edx
push eax
push str.expected__d_columns_for__s_but_got__d
mov edi, ebx
call fcn.004e0360
add esp, 0x10
jmp 0x5111ff
mov eax, dword [esp + 0x40]
cmp dword [eax], 0
mov dword [esp + 0x30], 0
jle 0x50fbac
mov edi, eax
add edi, 0x20
mov eax, dword [edi - 4]
mov dword [esp + 0x24], eax
test eax, eax
je 0x50fb94
mov eax, dword [edi]
test eax, eax
je 0x50f9aa
test byte [edi + 0x10], 0x10
jne 0x50fb94
mov ecx, dword [edi + 4]
push 0
push eax
push ecx
push 0xf
push ebp
call fcn.004cf760
add esp, 0x14
jmp 0x50fb94
mov ecx, esi
call fcn.004c6950
add dword [ebx + 0x1cc], eax
test byte [edi + 0xc], 0x20
jne 0x50f9d7
mov edx, dword [edi + 0x18]
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call fcn.004ddfa0
add esp, 0x10
mov eax, dword [esp + 0x40]
cmp dword [eax], 1
jne 0x50faae
test byte [esi + 6], 2
jne 0x50faae
mov edx, dword [esp + 0x28]
mov ecx, 0x100
test word [edx + 0x3c], cx
jne 0x50faae
mov esi, dword [ebp + 0x20]
inc dword [ebx + 0x48]
mov eax, dword [ebx + 0x48]
inc esi
push esi
push 0
push eax
push 0x11
push ebp
mov dword [edi + 4], eax
call fcn.004cf760
mov eax, dword [edi + 4]
mov dword [esp + 0x80], eax
xor eax, eax
lea edx, [esp + 0x7c]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x38]
push edx
mov dword [edi], esi
mov cl, byte [ebx + 0x1d4]
push eax
push ebx
mov byte [esp + 0x88], 0xd
mov byte [esp + 0x89], 0
mov byte [edi + 0x14], cl
call fcn.0050f700
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
push ecx
push edx
call fcn.004c07e0
mov ecx, dword [edi - 8]
mov word [ecx + 0x26], ax
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x98]
or dword [edi + 0x10], 0x10
push 0
push 0
push eax
push 0x12
push ebp
mov dword [edi + 8], edx
call fcn.004cf760
add esp, 0x3c
lea ecx, [esi - 1]
mov eax, ebp
call fcn.004cf9b0
mov esi, dword [esp + 0x100]
jmp 0x50fb6e
inc dword [ebx + 0x48]
mov eax, dword [ebx + 0x48]
push 0
push eax
push 0
push 0x17
push ebp
mov dword [esp + 0x24], 0
mov dword [edi + 4], eax
call fcn.004cf760
mov dword [esp + 0x74], eax
inc eax
add esp, 0x14
test byte [edi + 0x10], 8
mov dword [edi], eax
jne 0x50faee
mov esi, ebx
call fcn.004db800
mov esi, dword [esp + 0x100]
mov dword [esp + 0x10], eax
mov ecx, dword [edi + 0x18]
mov dl, byte [ebx + 0x1d4]
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
push ebx
mov byte [esp + 0x74], 0xc
mov byte [esp + 0x75], 0
mov byte [edi + 0x14], dl
call fcn.0050f700
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
push edx
push eax
call fcn.004c07e0
mov ecx, dword [edi - 8]
add esp, 0x14
cmp dword [esp + 0x10], 0
mov word [ecx + 0x26], ax
je 0x50fb4f
mov ecx, dword [esp + 0x10]
mov eax, ebp
call fcn.004cf9b0
mov eax, dword [edi + 4]
push 0
push 0
push eax
push 0x10
push ebp
call fcn.004cf760
mov edx, eax
mov eax, dword [esp + 0x74]
push ebp
call fcn.004cf8f0
add esp, 0x18
mov edx, dword [esp + 0x28]
mov dword [ebx + 0x38], 0
mov byte [ebx + 0x13], 0
cmp byte [edx + 0x41], 0
jne 0x5111ff
mov ecx, esi
call fcn.004c6950
sub dword [ebx + 0x1cc], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
inc eax
add edi, 0x50
cmp eax, dword [ecx]
mov dword [esp + 0x30], eax
jl 0x50f974
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
mov edi, dword [esi]
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x3c], edx
mov dl, byte [esi + 6]
mov dword [esp + 0x14], eax
mov al, byte [esi + 6]
and al, 1
and dl, 9
mov dword [esp + 0x44], edi
mov dword [esp + 0x60], ecx
mov byte [esp + 0x68], al
cmp dl, 1
jne 0x50fc17
mov eax, edi
mov edi, dword [esp + 0x7c]
push 0xffffffffffffffff
push eax
call fcn.004c7000
add esp, 8
test eax, eax
jne 0x50fc13
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x2c]
push edx
mov ecx, 0xfffe
and word [esi + 6], cx
push eax
call fcn.004d1630
add esp, 0xc
mov dword [esi + 0x28], eax
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x44]
cmp dword [esp + 0x7c], 0
je 0x50fc65
mov ecx, dword [edi]
mov eax, dword [esp + 0x7c]
push 0
push ebx
call fcn.004f1e00
mov ecx, dword [ebx + 0x44]
mov edx, ecx
push 0xfffffffffffffffa
push eax
mov eax, dword [esp + 0x8c]
inc ecx
mov dword [ebx + 0x44], ecx
mov eax, dword [eax]
mov ecx, dword [edi]
push edx
lea ecx, [ecx + eax + 1]
push 0x3a
push ebp
xor eax, eax
mov dword [esp + 0xa0], edx
call fcn.004d6430
add esp, 0x1c
mov dword [esp + 0x90], eax
jmp 0x50fc70
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x104]
cmp byte [eax], 0xc
jne 0x50fc90
mov ecx, dword [edi]
mov edx, dword [eax + 4]
push 0
push ecx
push edx
push 0x3a
push ebp
call fcn.004cf760
add esp, 0x14
mov eax, ebp
call fcn.004cf7f0
push eax
mov dword [esp + 0xf8], eax
push esi
mov eax, ebx
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], SysReAllocString
call fcn.004d8f80
add esp, 8
cmp dword [esi + 8], 0
jne 0x50fcdc
mov eax, dword [esp + 0x90]
test eax, eax
jl 0x50fcdc
push ebp
mov dl, 0x3b
call fcn.004cf8c0
add esp, 4
or byte [esp + 0x98], 1
test byte [esi + 6], 1
je 0x50fd25
mov eax, dword [ebx + 0x44]
mov edi, eax
inc eax
push 0xfffffffffffffffa
mov dword [ebx + 0x44], eax
mov eax, dword [esi]
push 0
push ebx
xor ecx, ecx
mov dword [esp + 0x78], edi
call fcn.004f1e00
add esp, 8
push eax
push edi
push 0x3a
push ebp
xor eax, eax
xor ecx, ecx
call fcn.004d6430
add esp, 0x14
mov dl, 8
mov ecx, ebp
mov dword [esp + 0x70], eax
call fcn.004cf980
mov byte [esp + 0x69], 3
jmp 0x50fd2a
mov byte [esp + 0x69], 0
mov edi, dword [esp + 0x14]
xor edx, edx
cmp dword [esp + 0x4c], edx
jne 0x50fe13
cmp edi, edx
jne 0x50fe13
movzx eax, byte [esp + 0x68]
mov ecx, dword [esi]
push edx
mov edx, dword [esp + 0x80]
neg eax
sbb eax, eax
and eax, 0x400
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
push ecx
push ebx
call fcn.00509db0
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x5111ff
mov ax, word [edi + 0x20]
call fcn.004c0880
cmp edx, dword [esi + 0x1c]
ja 0x50fd95
jb 0x50fd8f
cmp eax, dword [esi + 0x18]
jae 0x50fd95
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
cmp byte [esp + 0x68], 0
je 0x50fda7
mov al, byte [edi + 0x28]
test al, al
je 0x50fda7
mov byte [esp + 0x69], al
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x50fdc4
movsx eax, byte [edi + 0x24]
mov dword [esp + 0x80], eax
cmp eax, dword [ecx]
jne 0x50fdc4
xor ecx, ecx
mov dword [esp + 0x7c], ecx
mov eax, dword [esp + 0x90]
test eax, eax
jl 0x50fdda
test ecx, ecx
jne 0x50fdda
mov ecx, ebp
call fcn.004cfb90
mov edx, dword [edi + 0x34]
mov eax, dword [edi + 0x30]
mov ecx, dword [esp + 0x104]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x50]
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x8c]
push eax
push 0xffffffffffffffff
push ecx
push esi
push ebx
call fcn.004fa370
push edi
call fcn.004d4a90
add esp, 0x28
jmp 0x511176
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], edx
cmp edi, edx
je 0x50fe71
mov ecx, dword [esi]
mov eax, dword [ecx]
cmp eax, edx
mov ecx, dword [ecx + 4]
jle 0x50fe3e
add ecx, 0x16
xor edx, edx
mov word [ecx], dx
dec eax
add ecx, 0x18
cmp eax, edx
jg 0x50fe31
mov eax, dword [edi]
cmp eax, edx
mov ecx, dword [edi + 4]
jle 0x50fe5d
add ecx, 0x16
lea ebx, [ebx]
xor edi, edi
mov word [ecx], di
dec eax
add ecx, 0x18
cmp eax, edx
jg 0x50fe50
mov eax, 0x64
cmp dword [esi + 0x1c], edx
ja 0x50fe6c
cmp dword [esi + 0x18], eax
jbe 0x50fe7b
mov dword [esi + 0x18], eax
jmp 0x50fe78
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
call fcn.004c7000
add esp, 8
test eax, eax
jne 0x50fe9a
mov dword [esp + 0x20], 1
mov eax, ebp
call fcn.004cf7f0
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov eax, dword [ebx + 0x48]
inc eax
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x14]
xor edi, edi
lea edx, [esp + 0xa0]
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xe0], edx
cmp eax, edi
je 0x50ff1f
mov ecx, dword [eax]
mov dword [esp + 0xac], ecx
jmp 0x50ff26
mov dword [esp + 0xac], edi
mov edx, dword [esp + 0x44]
mov dword [esp + 0xb8], eax
push edx
lea eax, [esp + 0xd8]
push eax
call fcn.004dc050
mov ecx, dword [esp + 0x84]
push ecx
lea edx, [esp + 0xe0]
push edx
call fcn.004dc050
mov ecx, dword [esp + 0x70]
add esp, 0x10
cmp ecx, edi
je 0x50ff6f
lea eax, [esp + 0xd4]
push eax
call fcn.004dc000
add esp, 4
cmp dword [esp + 0xcc], edi
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0xc4], ecx
jle 0x50ffd7
mov dword [esp + 0x10], edi
lea ebx, [ebx]
mov edx, dword [esp + 0xc8]
or word [esp + 0xf0], 8
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + edx]
mov edx, dword [ecx + 0x14]
push edx
lea eax, [esp + 0xd8]
push eax
call fcn.004dc050
add dword [esp + 0x18], 0x10
mov ecx, 0xfff7
and word [esp + 0xf8], cx
inc edi
add esp, 8
cmp edi, dword [esp + 0xcc]
jl 0x50ff90
mov edx, dword [ebx + 0x48]
mov eax, dword [esp + 0x28]
mov dword [esp + 0xb4], edx
cmp byte [eax + 0x41], 0
jne 0x5111ff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x510dd6
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0xa4], ecx
inc ecx
mov dword [ebx + 0x44], ecx
mov ecx, dword [esp + 0xc0]
push 0
push ebx
call fcn.004f1e00
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xac]
push 0
push ecx
push edx
push 0x3b
push ebp
mov dword [esp + 0x40], eax
call fcn.004cf760
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
add esp, 0x1c
mov dword [esp + 0x9c], eax
test ecx, ecx
je 0x510096
cmp byte [edx + 0x41], 0
jne 0x510096
test eax, eax
jge 0x510058
mov eax, dword [ebp + 0x20]
dec eax
lea eax, [eax + eax*4]
lea edi, [ecx + eax*4]
movsx eax, byte [edi + 1]
mov ecx, dword [edi + 0x10]
push edx
call fcn.004cf9f0
add esp, 4
cmp dword [esp + 0x24], 0
mov dword [edi + 0x10], 0
jne 0x510089
mov dword [edi + 0x10], 0
mov byte [edi + 1], 0
jmp 0x5100a8
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x10], ecx
mov byte [edi + 1], 0xfa
jmp 0x5100a8
mov ecx, dword [esp + 0x24]
push edx
mov eax, 0xfffffffa
call fcn.004cf9f0
add esp, 4
mov eax, dword [ebx + 0x48]
inc eax
mov dword [esp + 0x38], eax
inc eax
mov dword [esp + 0x58], eax
inc eax
mov dword [ebx + 0x48], eax
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x70]
lea edx, [eax + 1]
mov dword [ecx + 0x70], edx
lea edx, [eax - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
test eax, edx
jne 0x510103
lea ecx, [eax*8 + 4]
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x74]
mov esi, dword [eax]
push 0
push ecx
call fcn.004cbab0
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x108]
mov dword [edx + 0x74], eax
mov eax, dword [esp + 0x20]
add esp, 8
mov ecx, edx
mov ecx, dword [ecx + 0x74]
test ecx, ecx
je 0x510111
mov dword [ecx + eax*4], 0xffffffff
inc dword [ebx + 0x48]
or ecx, 0xffffffff
sub ecx, eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x70]
lea edx, [eax + 1]
mov dword [ecx + 0x70], edx
lea edx, [eax - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
test eax, edx
jne 0x51016e
lea ecx, [eax*8 + 4]
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x74]
mov esi, dword [eax]
push 0
push ecx
call fcn.004cbab0
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x108]
mov dword [edx + 0x74], eax
mov eax, dword [esp + 0x20]
add esp, 8
mov ecx, edx
mov ecx, dword [ecx + 0x74]
test ecx, ecx
je 0x51017c
mov dword [ecx + eax*4], 0xffffffff
or edi, 0xffffffff
sub edi, eax
mov eax, dword [ebx + 0x48]
lea ecx, [eax + 1]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
add eax, edx
lea edx, [eax + 1]
push 0
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x5c]
push edx
mov dword [ebx + 0x48], eax
mov ecx, dword [ecx]
push 0
add ecx, eax
push 0x17
push ebp
mov dword [esp + 0x2c], edi
mov dword [ebx + 0x48], ecx
call fcn.004cf760
mov eax, dword [esp + 0x4c]
push 0
push eax
push 0
push 0x17
push ebp
call fcn.004cf760
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x8c]
mov edx, dword [ecx]
lea ecx, [edx + eax - 1]
push ecx
push eax
push 0
push 0x1a
push ebp
call fcn.004cf760
mov edx, dword [esp + 0x68]
push 0
push edi
push edx
push 0xf
push ebp
call fcn.004cf760
mov eax, dword [esp + 0x70]
add esp, 0x50
neg eax
sbb eax, eax
and eax, 0x800
mov ecx, 0x100
or ax, cx
mov ecx, dword [esp + 0x3c]
push 0
movzx edx, ax
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x48]
push 0
push eax
push ecx
push edx
push ebx
call fcn.00509db0
add esp, 0x1c
mov dword [esp + 0x10], eax
test eax, eax
je 0x5111ff
movsx ecx, byte [eax + 0x24]
mov edi, dword [esp + 0x14]
cmp ecx, dword [edi]
jne 0x510252
xor edi, edi
mov dword [esp + 0x4c], edi
jmp 0x51057b
cmp byte [esp + 0x68], 0
je 0x510264
test byte [esi + 6], 1
mov eax, str.DISTINCT
je 0x510269
mov eax, str.GROUP_BY
push ebx
call fcn.004e7de0
mov esi, dword [edi]
mov edx, dword [esp + 0xc4]
add esp, 4
mov dword [esp + 0x4c], 1
mov eax, esi
mov dword [esp + 0x34], esi
mov ecx, esi
test edx, edx
jle 0x5102b2
mov edi, dword [esp + 0xbc]
add edi, 0xc
lea esp, [esp]
cmp dword [edi], ecx
jl 0x5102a6
inc eax
inc ecx
add edi, 0x18
sub edx, 1
jne 0x5102a0
mov dword [esp + 0x34], eax
mov ecx, dword [ebx + 0x38]
cmp eax, ecx
mov edi, dword [ebx + 0x3c]
mov dword [esp + 0x48], edi
jg 0x5102cd
lea edx, [edi + eax]
sub ecx, eax
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x38], ecx
jmp 0x5102dc
mov ecx, dword [ebx + 0x48]
lea edi, [ecx + 1]
add ecx, eax
mov dword [esp + 0x48], edi
mov dword [ebx + 0x48], ecx
mov edx, ebx
call fcn.004c6fb0
mov eax, dword [esp + 0x14]
push 0
push 0
push edi
push eax
push ebx
call fcn.004db9f0
add esp, 0x14
cmp dword [esp + 0xc0], 0
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], 0
jle 0x51037c
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0xbc]
lea edi, [ecx + esi]
xor esi, esi
lea esp, [esp]
mov edx, dword [esp + 0x3c]
cmp dword [esi + eax + 0xc], edx
jl 0x510367
mov ecx, dword [esi + eax + 4]
mov edx, dword [esi + eax + 8]
mov eax, dword [esi + eax]
push 0
push edi
push ecx
push edx
push eax
mov eax, ebx
call fcn.004f11e0
add esp, 0x14
cmp eax, edi
je 0x51035b
push 0
push edi
push eax
mov eax, dword [ebx + 8]
push 0x20
push eax
call fcn.004cf760
add esp, 0x14
inc dword [esp + 0x3c]
mov eax, dword [esp + 0xbc]
inc edi
mov ecx, dword [esp + 0x30]
inc ecx
add esi, 0x18
cmp ecx, dword [esp + 0xc0]
mov dword [esp + 0x30], ecx
jl 0x510320
mov al, byte [ebx + 0x13]
test al, al
jne 0x51038b
inc dword [ebx + 0x48]
mov edi, dword [ebx + 0x48]
jmp 0x510397
dec al
movzx ecx, al
mov byte [ebx + 0x13], al
mov edi, dword [ebx + ecx*4 + 0x18]
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], eax
jg 0x5103bb
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
push edi
push eax
push ecx
push 0x32
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x5103ed
mov ecx, dword [ebp + 4]
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
mov edx, dword [esp + 0x48]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x34]
mov byte [eax], 0x32
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], eax
mov ecx, dword [esp + 0xa4]
jg 0x510411
push 0
push edi
push ecx
push 0x6f
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x510438
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x6f
mov byte [eax + 3], 0
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
test edi, edi
je 0x510468
mov dl, byte [ebx + 0x13]
cmp dl, 8
jae 0x510468
xor eax, eax
lea ecx, [ebx + 0x78]
lea esp, [esp]
cmp dword [ecx + 0xc], edi
je 0x5104bc
inc eax
add ecx, 0x14
cmp eax, 0xa
jl 0x510450
movzx eax, dl
mov dword [ebx + eax*4 + 0x18], edi
inc byte [ebx + 0x13]
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x34]
push ecx
mov eax, edi
mov esi, ebx
call fcn.004c6f00
add esp, 4
cmp edi, dword [ebx + 0x38]
jle 0x51048c
mov edx, dword [esp + 0x48]
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x3c], edx
mov eax, dword [esp + 0x10]
push eax
call fcn.004d4a90
mov ecx, dword [ebx + 0x44]
mov al, byte [ebx + 0x13]
add esp, 4
lea edx, [ecx + 1]
mov dword [esp + 0x30], ecx
mov dword [esp + 0xa8], ecx
mov dword [ebx + 0x44], edx
test al, al
jne 0x5104c2
inc dword [ebx + 0x48]
mov edx, dword [ebx + 0x48]
jmp 0x5104ce
mov byte [ecx + 6], 1
jmp 0x510468
dec al
mov byte [ebx + 0x13], al
movzx eax, al
mov edx, dword [ebx + eax*4 + 0x18]
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp + 0x18]
cmp dword [esi + 0x54], eax
mov dword [esp + 0x34], edx
jg 0x5104f0
push edi
push edx
push ecx
push 0x3d
mov esi, ebp
call fcn.004cf720
add esp, 0x10
xor edx, edx
jmp 0x510517
lea esi, [eax + 1]
mov dword [ebp + 0x20], esi
mov esi, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
mov dword [eax + 8], edx
xor edx, edx
mov byte [eax], 0x3d
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp + 0x18]
cmp dword [esi + 0x54], eax
mov ecx, dword [esp + 0xa4]
jg 0x51053e
push edx
mov edx, dword [esp + 0x54]
push edx
push ecx
push 0x6c
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x510568
lea esi, [eax + 1]
mov dword [ebp + 0x20], esi
mov esi, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x50]
mov byte [eax], 0x6c
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0
mov edx, ebx
mov byte [esp + 0xa1], 1
call fcn.004c6fb0
mov edi, dword [esp + 0x4c]
cmp dword [esp + 0x20], 0
je 0x5105de
mov edx, dword [esp + 0x28]
test byte [edx + 0x3c], 4
jne 0x5105de
test edi, edi
jne 0x51059a
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x25], 0
je 0x5105de
mov eax, dword [esp + 0x90]
cmp eax, dword [ebp + 0x20]
mov dword [esp + 0x7c], 0
jge 0x5105de
mov edx, dword [ebp + 4]
lea ecx, [eax + eax*4]
movsx eax, byte [edx + ecx*4 + 1]
lea esi, [edx + ecx*4]
mov ecx, dword [ebp]
push ecx
mov ecx, dword [esi + 0x10]
call fcn.004cf9f0
add esp, 4
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov byte [esi], 0xa1
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x3c], edx
mov edx, ebx
call fcn.004c6fb0
test edi, edi
je 0x51064d
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], eax
mov ecx, dword [esp + 0xa4]
jg 0x51061b
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
push eax
push edx
push ecx
push 0x66
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x51064d
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x34]
mov byte [eax], 0x66
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x54]
xor edi, edi
cmp dword [ecx], edi
jle 0x5106fe
mov dword [esp + 0x20], edi
cmp dword [esp + 0x4c], 0
je 0x5106c8
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], eax
jg 0x510695
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x30]
lea eax, [edi + edx]
push eax
push edi
push ecx
push 0x30
mov esi, ebp
call fcn.004cf720
mov esi, dword [esp + 0x64]
add esp, 0x10
jmp 0x5106ec
mov ecx, dword [ebp + 4]
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
mov edx, dword [esp + 0x30]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
lea ecx, [edi + esi]
mov byte [eax], 0x30
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
jmp 0x5106ec
mov eax, dword [esp + 0x14]
lea edx, [edi + esi]
push edx
mov edx, dword [esp + 0x24]
mov byte [esp + 0xa4], 1
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edx]
push eax
push ebx
call fcn.0051b9e0
add esp, 0xc
mov ecx, dword [esp + 0x14]
add dword [esp + 0x20], 0x18
inc edi
cmp edi, dword [ecx]
jl 0x510663
mov eax, dword [esp + 0x24]
test eax, eax
je 0x510708
inc dword [eax]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], ecx
jg 0x51072e
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x68]
push ecx
push edx
push 0x2b
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x51075e
mov edi, dword [ebp + 4]
lea eax, [ecx + 1]
mov dword [ebp + 0x20], eax
lea eax, [ecx + ecx*4]
lea eax, [edi + eax*4]
mov edi, dword [esp + 0x64]
mov byte [eax], 0x2b
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov eax, ecx
mov edx, dword [ebp + 4]
mov ecx, dword [ebp]
xor edi, edi
cmp edx, edi
je 0x5107ab
cmp byte [ecx + 0x41], 0
jne 0x5107ab
cmp eax, edi
jge 0x510778
mov eax, dword [ebp + 0x20]
dec eax
lea eax, [eax + eax*4]
lea esi, [edx + eax*4]
movsx eax, byte [esi + 1]
push ecx
mov ecx, dword [esi + 0x10]
call fcn.004cf9f0
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [esi + 0x10], edi
cmp eax, edi
jne 0x5107a2
mov dword [esi + 0x10], edi
mov byte [esi + 1], 0
jmp 0x5107bd
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x5107bd
push ecx
mov ecx, dword [esp + 0x28]
mov eax, 0xfffffffa
call fcn.004cf9f0
add esp, 4
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], eax
mov dword [esp + 0x34], eax
lea ecx, [eax + 1]
jg 0x5107e0
push ecx
push edi
push ecx
push 0x2c
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x510806
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov byte [eax], 0x2c
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [esp + 0x14]
mov esi, dword [ebx + 8]
mov ecx, dword [eax]
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
cmp dword [edx + 0x54], eax
mov dword [esp + 0x20], ecx
jg 0x510837
mov edx, dword [esp + 0x54]
mov eax, ecx
mov ecx, dword [esp + 0x64]
push eax
push ecx
push edx
push 0x1e
call fcn.004cf720
add esp, 0x10
jmp 0x510865
lea edx, [eax + 1]
mov dword [esi + 0x20], edx
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x64]
mov byte [eax], 0x1e
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x24]
mov esi, ebx
call fcn.004c6f00
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
add esp, 4
cmp dword [ecx + 0x54], eax
jg 0x5108a1
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push edi
push edx
inc eax
push eax
push 0xf
mov esi, ebp
mov dword [esp + 0x24], eax
call fcn.004cf720
add esp, 0x10
jmp 0x5108d4
lea ecx, [eax + 1]
mov dword [ebp + 0x20], ecx
mov ecx, dword [esp + 0x58]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
inc ecx
mov dword [esp + 0x14], ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x5c]
mov byte [eax], 0xf
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], eax
jg 0x5108fb
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
push edi
push eax
push ecx
push 0x8b
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x510929
mov ecx, dword [ebp + 4]
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
mov edx, dword [esp + 0x58]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x50]
mov byte [eax], 0x8b
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], eax
jg 0x51094d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
push edi
push eax
push ecx
push 0xf
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x51097b
mov ecx, dword [ebp + 4]
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
mov edx, dword [esp + 0x2c]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x18]
mov byte [eax], 0xf
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
dec edx
mov dword [eax + 0x5c], edx
mov eax, dword [esp + 0x34]
cmp eax, edi
mov ecx, dword [ebp + 0x20]
jge 0x510993
lea eax, [ecx - 1]
mov edx, dword [ebp]
cmp byte [edx + 0x41], 0
je 0x5109a3
mov eax, 0x5a2838
jmp 0x5109ac
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
lea eax, [esp + 0xa0]
push eax
push ebx
call fcn.004f33f0
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
add esp, 8
cmp dword [ecx + 0x54], eax
jg 0x5109e1
mov edx, dword [esp + 0x38]
push edi
push edx
push 1
push 0x17
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x510a0f
lea ecx, [eax + 1]
mov dword [ebp + 0x20], ecx
mov ecx, dword [esp + 0x38]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov byte [eax], 0x17
mov byte [eax + 3], 0
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
cmp dword [esp + 0x4c], edi
je 0x510a68
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], eax
mov ecx, dword [esp + 0xa4]
jg 0x510a3c
mov eax, dword [esp + 0x3c]
push edi
push eax
push ecx
push 4
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x510aae
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x3c]
mov byte [eax], 4
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
jmp 0x510aae
mov edx, dword [esp + 0x10]
push edx
call fcn.004d4a90
mov eax, dword [esp + 0xa0]
add esp, 4
cmp eax, dword [ebp + 0x20]
jge 0x510aae
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
push edx
call fcn.004cf9f0
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
add esp, 4
mov byte [esi], 0xa1
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], eax
jg 0x510ad2
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x14]
push edi
push edx
push eax
push 0xf
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x510b00
lea ecx, [eax + 1]
mov dword [ebp + 0x20], ecx
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x5c]
mov byte [eax], 0xf
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], eax
jg 0x510b20
mov edx, dword [esp + 0x50]
push edi
push edx
push edi
push 0xe
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x510b4a
lea ecx, [eax + 1]
mov dword [ebp + 0x20], ecx
mov ecx, dword [esp + 0x50]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov byte [eax], 0xe
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], eax
mov dword [esp + 0x9c], eax
jg 0x510b72
mov eax, dword [esp + 0x58]
push edi
push eax
push 1
push 0x17
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x510ba0
lea ecx, [eax + 1]
mov dword [ebp + 0x20], ecx
mov ecx, dword [esp + 0x58]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov byte [eax], 0x17
mov byte [eax + 3], 0
mov dword [eax + 4], 1
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], eax
jg 0x510bc0
mov eax, dword [esp + 0x14]
push edi
push edi
push eax
push 0x10
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x510bea
lea ecx, [eax + 1]
mov dword [ebp + 0x20], ecx
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov byte [eax], 0x10
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x74]
cmp eax, edi
je 0x510c06
mov edx, dword [esp + 0x5c]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [ebp + 0x20]
mov dword [eax], edx
mov eax, dword [ebp + 0x20]
dec eax
mov dword [ecx + 0x5c], eax
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
mov ecx, eax
mov dword [esp + 0x5c], ecx
add ecx, 2
cmp dword [edx + 0x54], eax
jg 0x510c39
mov eax, dword [esp + 0x38]
push edi
push ecx
push eax
push 0x8b
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x510c63
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x38]
mov byte [eax], 0x8b
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x54], eax
jg 0x510c83
mov edx, dword [esp + 0x14]
push edi
push edi
push edx
push 0x10
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x510cad
lea ecx, [eax + 1]
mov dword [ebp + 0x20], ecx
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov byte [eax], 0x10
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
lea edx, [esp + 0xa0]
push edx
mov eax, ebx
call fcn.004d9470
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
push 0x10
inc esi
push esi
push eax
push ebx
call fcn.00516c80
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x118]
push ecx
push esi
push edx
lea eax, [esp + 0x88]
push eax
mov eax, dword [esp + 0x124]
mov edx, dword [eax]
lea ecx, [esp + 0xa0]
push ecx
push 0xffffffffffffffff
push edx
push eax
push ebx
call fcn.004fa370
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
add esp, 0x38
cmp dword [ecx + 0x54], eax
jg 0x510d26
mov edx, dword [esp + 0x14]
push edi
push edi
push edx
push 0x10
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x510d50
lea ecx, [eax + 1]
mov dword [ebp + 0x20], ecx
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov byte [eax], 0x10
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x74]
cmp eax, edi
je 0x510d6c
mov edx, dword [esp + 0x18]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [ebp + 0x20]
mov dword [eax], edx
mov eax, dword [ebp + 0x20]
dec eax
mov dword [ecx + 0x5c], eax
lea ecx, [esp + 0xa0]
push ecx
push ebx
call fcn.004f32d0
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
add esp, 8
cmp dword [edx + 0x54], eax
jg 0x510da7
mov eax, dword [esp + 0x2c]
push edi
push edi
push eax
push 0x10
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x51114c
lea ecx, [eax + 1]
mov dword [ebp + 0x20], ecx
mov ecx, dword [esp + 0x2c]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov byte [eax], 0x10
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0
jmp 0x51114c
lea ecx, [esp + 0xa0]
mov eax, esi
mov dword [esp + 0x20], 0
call fcn.004c8b20
mov edi, eax
test edi, edi
je 0x511003
mov edx, dword [edi + 0x40]
mov eax, dword [ebx]
mov esi, 0xfff0bdc0
test edx, edx
je 0x510e1f
mov ecx, dword [eax + 0x14]
xor esi, esi
test ecx, ecx
jle 0x510e1f
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x510e1f
inc esi
add eax, 0x10
cmp esi, ecx
jl 0x510e13
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x2c], eax
inc eax
mov dword [ebx + 0x44], eax
mov edx, dword [edi + 0x1c]
xor eax, eax
mov dword [esp + 0x18], edx
mov ecx, esi
mov edx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], eax
call fcn.00508af0
mov eax, dword [edi]
mov ecx, dword [edi + 0x1c]
push eax
push 0
push ecx
push esi
push ebx
call fcn.004d2240
add esp, 0x14
test byte [edi + 0x2a], 0x20
je 0x510e7e
mov eax, dword [edi + 8]
test eax, eax
je 0x510e76
mov edx, dword [eax + 0x38]
and dl, 3
cmp dl, 2
je 0x510e76
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x510e64
mov edx, eax
mov dword [esp + 0x38], edx
jmp 0x510e82
mov edx, dword [esp + 0x38]
mov eax, dword [edi + 8]
test eax, eax
je 0x510ebd
lea esp, [esp]
test byte [eax + 0x38], 4
jne 0x510eb2
movzx ecx, word [eax + 0x30]
cmp cx, word [edi + 0x28]
jge 0x510eb2
cmp dword [eax + 0x24], 0
jne 0x510eb2
test edx, edx
je 0x510eb0
cmp cx, word [edx + 0x30]
jge 0x510eb2
mov edx, eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x510e90
mov dword [esp + 0x38], edx
test edx, edx
je 0x510eda
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x2c]
push eax
push ebx
mov dword [esp + 0x20], ecx
call fcn.004f1ae0
add esp, 8
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
push 1
push edx
push 0x37
push ebp
mov eax, esi
call fcn.004d6580
add esp, 0x10
cmp dword [esp + 0x10], 0
je 0x510f3f
mov esi, dword [ebp + 4]
mov ecx, dword [ebp]
test esi, esi
je 0x510f2d
cmp byte [ecx + 0x41], 0
jne 0x510f2d
mov eax, dword [ebp + 0x20]
dec eax
lea eax, [eax + eax*4]
lea esi, [esi + eax*4]
movsx eax, byte [esi + 1]
push ecx
mov ecx, dword [esi + 0x10]
call fcn.004cf9f0
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x10], ecx
mov byte [esi + 1], 0xfa
jmp 0x510f3c
push ecx
mov ecx, dword [esp + 0x14]
mov eax, 0xfffffffa
call fcn.004cf9f0
add esp, 4
mov edx, dword [esp + 0xc8]
mov ecx, dword [edx + 8]
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], eax
jg 0x510f6a
mov eax, dword [esp + 0x2c]
push 0
push ecx
push eax
push 0x33
mov esi, ebp
call fcn.004cf720
add esp, 0x10
jmp 0x510f95
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x33
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
xor ecx, ecx
cmp dword [edx + 0x54], eax
jg 0x510fc7
mov eax, dword [esp + 0x2c]
push ecx
push ecx
push eax
push 0x3e
mov esi, ebp
call fcn.004cf720
mov eax, dword [esp + 0x48]
mov edx, edi
add esp, 0x10
mov edi, ebx
call fcn.004e8a00
jmp 0x5110fa
lea edx, [eax + 1]
mov dword [ebp + 0x20], edx
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov byte [eax], 0x3e
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], 0
mov eax, dword [esp + 0x38]
mov edx, edi
mov edi, ebx
call fcn.004e8a00
jmp 0x5110fa
xor edi, edi
mov dword [esp + 0x18], edi
mov byte [esp + 0x1f], 0
cmp dword [esi + 0x2c], edi
jne 0x51106b
lea edi, [esp + 0x18]
lea eax, [esp + 0xa0]
call fcn.004c8aa0
mov byte [esp + 0x1f], al
test al, al
je 0x511067
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
push 0
push eax
push esi
call fcn.004d1630
mov edi, eax
add esp, 0xc
mov dword [esp + 0x20], edi
test edi, edi
je 0x51106b
cmp byte [esi + 0x41], 0
jne 0x51106b
cmp byte [esp + 0x1f], 1
mov edx, dword [edi + 4]
setne cl
mov byte [edx + 0xc], cl
mov eax, dword [edi + 4]
mov ecx, dword [eax]
mov byte [ecx], 0x98
jmp 0x51106b
mov edi, dword [esp + 0x18]
lea edx, [esp + 0xa0]
push edx
push ebx
call fcn.004f32d0
movzx ax, byte [esp + 0x27]
mov edx, dword [esp + 0x44]
push 0
movzx ecx, ax
mov eax, dword [esp + 0x4c]
push ecx
push 0
push edi
push edx
push eax
push ebx
call fcn.00509db0
mov esi, eax
add esp, 0x24
test esi, esi
jne 0x5110b8
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
push ecx
push edx
call fcn.004d19a0
add esp, 8
jmp 0x5111ff
lea eax, [esp + 0xa0]
push eax
push ebx
call fcn.004f33f0
add esp, 8
cmp byte [esi + 0x24], 0
jle 0x5110e2
mov ecx, dword [esi + 0x34]
push 0
push ecx
push 0
push 0xe
push ebp
call fcn.004cf760
add esp, 0x14
push esi
call fcn.004d4a90
lea edx, [esp + 0xa4]
push edx
mov eax, ebx
call fcn.004d9470
add esp, 8
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x60]
push 0x10
push esi
push eax
push ebx
mov dword [esp + 0x8c], 0
call fcn.00516c80
mov ecx, dword [esp + 0x114]
mov eax, dword [esp + 0x110]
mov edx, dword [eax]
push esi
push esi
push ecx
push 0
push 0
push 0xffffffffffffffff
push edx
push eax
push ebx
call fcn.004fa370
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
push eax
push ecx
call fcn.004d19a0
add esp, 0x3c
xor edi, edi
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x74]
cmp eax, edi
je 0x511168
mov edx, dword [esp + 0x50]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [ebp + 0x20]
mov dword [eax], edx
mov eax, dword [ebp + 0x20]
mov esi, dword [esp + 0x100]
dec eax
mov dword [ecx + 0x5c], eax
cmp byte [esp + 0x69], 3
jne 0x51118b
push ebx
mov eax, str.DISTINCT
call fcn.004e7de0
add esp, 4
cmp dword [esp + 0x7c], 0
je 0x5111cd
cmp dword [esp + 0x80], 0
mov eax, str.RIGHT_PART_OF_ORDER_BY
jg 0x5111a6
mov eax, str.ORDER_BY
push ebx
call fcn.004e7de0
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x48]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x88]
push ecx
push esi
push ebx
call fcn.004dd620
add esp, 0x18
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x74]
test eax, eax
je 0x5111ec
mov edx, dword [esp + 0xf4]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [ebp + 0x20]
mov dword [eax], edx
mov eax, dword [ebp + 0x20]
dec eax
mov dword [ecx + 0x5c], eax
xor ecx, ecx
cmp dword [ebx + 0x40], ecx
setg cl
mov dword [esp + 0x48], ecx
mov ebp, dword [esp + 0x48]
mov edx, dword [esp + 0xd0]
mov dword [ebx + 0x1d0], edx
test ebp, ebp
jne 0x511233
mov eax, dword [esp + 0x104]
cmp byte [eax], 9
jne 0x511233
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push ecx
push edx
push ebx
call fcn.004e7f70
add esp, 0xc
mov eax, dword [esp + 0xbc]
mov esi, dword [esp + 0x28]
mov edi, eax
test eax, eax
je 0x5112d5
cmp dword [esi + 0x208], 0
je 0x51125a
mov ecx, esi
call fcn.004bf640
jmp 0x5112d5
cmp eax, dword [esi + 0x114]
jb 0x511280
cmp eax, dword [esi + 0x118]
jae 0x511280
mov ecx, dword [esi + 0x110]
mov dword [eax], ecx
dec dword [esi + 0xfc]
mov dword [esi + 0x110], eax
jmp 0x5112d5
cmp dword [0x59bf10], 0
je 0x5112cb
mov eax, dword [0x5a2d00]
test eax, eax
je 0x51129c
push eax
call dword [0x59bf64]
add esp, 4
push edi
call dword [0x59bf40]
sub dword [0x5a2b48], eax
dec dword [0x5a2b6c]
push edi
call dword [0x59bf38]
mov eax, dword [0x5a2d00]
add esp, 8
test eax, eax
je 0x5112d5
push eax
call dword [0x59bf6c]
jmp 0x5112d2
push eax
call dword [0x59bf38]
add esp, 4
mov eax, dword [esp + 0xc8]
mov edi, eax
test eax, eax
je 0x511397
cmp dword [esi + 0x208], 0
je 0x511303
mov ecx, esi
call fcn.004bf640
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xe8
ret
cmp eax, dword [esi + 0x114]
jb 0x511334
cmp eax, dword [esi + 0x118]
jae 0x511334
mov edx, dword [esi + 0x110]
mov dword [eax], edx
dec dword [esi + 0xfc]
mov dword [esi + 0x110], eax
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xe8
ret
cmp dword [0x59bf10], 0
je 0x51138d
mov eax, dword [0x5a2d00]
test eax, eax
je 0x511350
push eax
call dword [0x59bf64]
add esp, 4
push edi
call dword [0x59bf40]
sub dword [0x5a2b48], eax
dec dword [0x5a2b6c]
push edi
call dword [0x59bf38]
mov eax, dword [0x5a2d00]
add esp, 8
test eax, eax
je 0x511397
push eax
call dword [0x59bf6c]
add esp, 4
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xe8
ret
push eax
call dword [0x59bf38]
add esp, 4
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xe8
ret