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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
mov eax, dword [0x6bc858]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1e4]
mov dword [esp + 0xa8], eax
mov eax, dword [esi + 0x1e8]
mov dword [esi + 0x1e4], eax
inc eax
push edi
mov edi, dword [ebp + 0x10]
mov dword [esi + 0x1e8], eax
mov eax, dword [esi]
mov dword [esp + 0x30], esi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x20], 1
mov dword [esp + 0x48], eax
test ebx, ebx
je 0x52b459
cmp byte [eax + 0x36], 0
jne 0x52b459
cmp dword [esi + 0x44], 0
jne 0x52b459
push 0
push 0
push 0
push 0x15
mov eax, esi
call fcn.0050ee70
add esp, 0x10
test eax, eax
jne 0x52b459
cmp byte [edi], 4
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 + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
ja 0x529882
mov ecx, dword [ebx + 0x38]
mov edx, dword [esp + 0x48]
push ecx
push edx
call fcn.00507530
mov eax, 0xfffe
add esp, 8
and word [ebx + 6], ax
mov dword [ebx + 0x38], 0
push 0
push ebx
push esi
call fcn.00528d50
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x28]
mov eax, dword [ebx]
add esp, 0xc
cmp dword [esi + 0x44], 0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x44], eax
jne 0x52adfd
mov ecx, dword [esp + 0x48]
cmp byte [ecx + 0x36], 0
jne 0x52adfd
movzx eax, word [ebx + 6]
shr eax, 2
and eax, 1
mov edi, esi
mov dword [esp + 0x50], eax
call fcn.005250d0
mov dword [esp + 0xc], eax
test eax, eax
je 0x52adfd
mov ecx, dword [esp + 0x44]
cmp dword [ecx], 1
mov edx, dword [esp + 0x4c]
movzx eax, byte [edx]
jle 0x529908
cmp eax, 6
je 0x5298f5
cmp eax, 7
jne 0x529908
push str.only_a_single_result_allowed_for_a_SELECT_that_is_part_of_an_expression
push esi
call fcn.004dd1d0
add esp, 8
jmp 0x52adfd
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [ebx + 0x3c], eax
jne 0x529b23
jmp 0x529924
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
movsx edx, word [ecx]
cmp eax, edx
jge 0x529b23
shl eax, 6
lea eax, [eax + ecx + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 0x10]
mov dword [esp + 0x10], eax
test eax, eax
je 0x529b15
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x529970
push eax
mov eax, dword [ecx + 0x18]
push eax
mov eax, dword [esp + 0x14]
push 2
call fcn.004f6b50
add esp, 0xc
jmp 0x529b15
lea edi, [esp + 0x38]
mov eax, ebx
mov dword [esp + 0x38], 0
call fcn.00506140
mov ecx, dword [esp + 0x38]
add dword [esi + 0x1e0], ecx
mov edx, dword [esp + 0x10]
movzx edi, word [edx + 6]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x14]
shr edi, 2
and edi, 1
push edi
push eax
push ecx
push esi
mov eax, ebx
call fcn.00527db0
add esp, 0x10
test eax, eax
je 0x5299d3
test edi, edi
je 0x5299c6
or word [ebx + 6], 4
mov dword [esp + 0x50], 1
mov dword [esp + 0x14], 0xffffffff
jmp 0x529ad3
mov eax, dword [esi + 0x4c]
mov edi, dword [esp + 0x2c]
inc eax
push eax
mov dword [esi + 0x4c], eax
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x10]
push 0
push 7
mov dword [esp + 0x48], 0
call fcn.004f6b50
mov dword [esp + 0x44], eax
inc eax
add esp, 0xc
cmp byte [edi + 0x1e], 0
mov dword [edi + 0x14], eax
jne 0x529a13
mov eax, esi
call fcn.00507910
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x10]
mov dl, byte [esi + 0x1e8]
mov dword [esp + 0xe0], eax
xor eax, eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
lea eax, [esp + 0xdc]
push eax
push ecx
mov word [esp + 0xe4], 9
push esi
mov byte [edi + 0x1f], dl
call fcn.00529780
fnstcw word [esp + 0x40]
movzx eax, word [esp + 0x40]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi + 0xc]
or eax, 0xc00
fld qword [edx + 0x20]
mov dword [esp + 0x60], eax
add esp, 0xc
cmp dword [esp + 0x3c], 0
fldcw word [esp + 0x54]
fistp qword [esp + 0xd0]
mov eax, dword [esp + 0xd0]
mov dword [ecx + 0x18], eax
fldcw word [esp + 0x34]
je 0x529a9f
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0xc]
call fcn.004f6ff0
mov edx, dword [edi + 0x18]
mov eax, dword [esp + 0xc]
push edx
push 3
call fcn.004f6b00
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
add esp, 8
cmp dword [edx + 0x1c], ecx
jbe 0x529ac8
mov edx, dword [edx + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 4], eax
mov byte [esi + 0x13], 0
mov dword [esi + 0x3c], 0
mov eax, dword [esp + 0x48]
cmp byte [eax + 0x36], 0
jne 0x52adfd
lea edi, [esp + 0x38]
mov eax, ebx
mov dword [esp + 0x38], 0
call fcn.00506140
mov ecx, dword [esp + 0x38]
sub dword [esi + 0x1e0], ecx
mov eax, dword [esp + 0x4c]
cmp byte [eax], 4
mov edx, dword [ebx + 0x28]
mov dword [esp + 0x70], edx
jbe 0x529b15
mov ecx, dword [ebx + 0x38]
mov dword [esp + 0x40], ecx
inc dword [esp + 0x14]
cmp dword [ebx + 0x3c], 0
je 0x529920
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebx]
mov edi, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0x5c], eax
movzx eax, word [ebx + 6]
and eax, 1
cmp dword [ebx + 0x3c], 0
mov dword [esp + 0x44], edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], eax
je 0x529bc3
cmp dword [ebx + 0x44], 0
jne 0x529b92
xor ecx, ecx
xor edx, edx
mov eax, ebx
jmp 0x529b60
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ebx
mov ecx, eax
mov eax, dword [eax + 0x3c]
inc edx
test eax, eax
jne 0x529b60
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x529b92
cmp edx, eax
jle 0x529b92
push str.too_many_terms_in_compound_SELECT
push esi
call fcn.004dd1d0
add esp, 8
jmp 0x52adfd
mov ecx, dword [esp + 0x4c]
push ebx
mov edx, esi
call fcn.005252e0
mov ecx, dword [esp + 0xb0]
add esp, 4
mov dword [esi + 0x1e4], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.005f0da0
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x40]
push edx
call fcn.0050ac50
add esp, 4
test eax, eax
jne 0x529be6
mov eax, dword [esp + 0x48]
test byte [eax + 0x18], 0x20
jne 0x529be6
mov dword [esp + 0x40], 0
mov cl, byte [ebx + 6]
mov edi, dword [esp + 0x40]
and cl, 5
cmp cl, 1
jne 0x529cfa
mov edx, dword [ebx]
push edx
call fcn.0050ac50
add esp, 4
test eax, eax
jne 0x529cf6
mov ecx, dword [ebx]
mov edx, dword [esp + 0x48]
push 0
push ecx
mov eax, 0xfffe
and word [ebx + 6], ax
push edx
call fcn.00506d50
add esp, 0xc
mov dword [ebx + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], 0
or edi, 0xffffffff
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x4c]
cmp byte [eax], 9
jne 0x529c5f
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov eax, dword [eax + 4]
push edx
push eax
mov eax, dword [esp + 0x14]
push 0x2a
call fcn.004f6b50
add esp, 0xc
mov eax, dword [esp + 0xc]
call fcn.004f6dc0
fld qword [0x69c738]
push eax
fstp qword [ebx + 0x20]
mov dword [esp + 0xd4], eax
push ebx
mov eax, esi
call fcn.00525100
add esp, 8
cmp dword [ebx + 8], 0
jne 0x529ca1
test edi, edi
js 0x529ca1
mov ecx, dword [esp + 0xc]
mov eax, edi
call fcn.004f72a0
mov byte [eax], 0x2b
or word [ebx + 6], 0x40
test byte [ebx + 6], 1
je 0x529d3d
mov edi, dword [esi + 0x48]
lea ecx, [edi + 1]
mov dword [esi + 0x48], ecx
mov edx, dword [ebx]
push edx
push esi
mov dword [esp + 0x88], edi
call fcn.00523ef0
push 0xfffffffffffffff0
push eax
push 0
push 0
push edi
mov edi, dword [esp + 0x28]
push 0x2a
mov eax, edi
call fcn.004f6bb0
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 4]
add esp, 0x20
test eax, eax
je 0x529d4b
mov ecx, edi
mov ecx, dword [ecx + 0x1c]
lea edx, [ecx + ecx*4]
mov byte [eax + edx*4 - 0x11], 8
jmp 0x529d4b
mov edi, dword [esp + 0x40]
test edi, edi
je 0x529c36
push edi
push esi
call fcn.00523ef0
mov ecx, dword [esi + 0x48]
push 0xfffffffffffffff0
push eax
mov dword [edi + 4], ecx
inc dword [esi + 0x48]
mov edx, dword [edi]
mov eax, dword [edi + 4]
push 0
add edx, 2
push edx
push eax
mov eax, dword [esp + 0x28]
push 0x2a
call fcn.004f6bb0
mov edi, eax
add esp, 0x20
mov dword [esp + 0x10], eax
mov dword [ebx + 0x18], edi
jmp 0x529c3d
or eax, 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x80], eax
cmp dword [esp + 0x50], 0
mov edi, dword [esp + 0x34]
jne 0x529ff8
test edi, edi
jne 0x529ff8
cmp dword [esp + 0x18], edi
je 0x529d6c
mov eax, dword [ebx]
jmp 0x529d6e
xor eax, eax
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x70]
push 0
push 0
push eax
lea eax, [esp + 0x4c]
push eax
push ecx
push edx
push esi
call fcn.00536460
mov edi, eax
add esp, 0x1c
mov dword [esp + 0x5c], edi
test edi, edi
je 0x52adfd
fld qword [ebx + 0x20]
fcomp qword [edi + 0x30]
fnstsw ax
test ah, 0x41
jne 0x529dac
fld qword [edi + 0x30]
fstp qword [ebx + 0x20]
cmp dword [esp + 0x10], 0
jl 0x529dce
cmp dword [esp + 0x40], 0
jne 0x529dce
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
call fcn.004f7110
mov dword [ebx + 0x18], 0xffffffff
cmp byte [edi + 8], 0
je 0x529fbc
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
call fcn.004f72a0
cmp byte [edi + 8], 2
mov dword [esp + 0x80], 0xffffffff
jne 0x529fb9
inc dword [esi + 0x4c]
mov edi, dword [esi + 0x4c]
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx]
lea edx, [edi + 1]
mov dword [esp + 0x28], edx
add edx, ecx
lea ecx, [edi + ecx*2]
mov dword [esi + 0x4c], ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x28]
mov byte [eax], 7
mov dword [eax + 4], 1
mov dword [eax + 8], edi
mov eax, dword [esp + 0x44]
push 1
push esi
mov dword [esp + 0x58], edi
call fcn.0050a2a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx]
mov edx, dword [eax + 0x1c]
lea ecx, [edx + ecx + 3]
mov dword [esp + 0x60], ecx
dec ecx
push ecx
push edi
push 0x1b
call fcn.004f6b50
mov edx, dword [esp + 0x58]
add esp, 0x14
cmp dword [edx], 0
mov dword [esp + 0x38], 0
jle 0x529f69
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x64], 0
mov dword [esp + 0x54], eax
jmp 0x529e90
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x64]
mov eax, dword [ecx + edx]
push eax
push esi
call fcn.00505e20
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
add ecx, eax
push ecx
push edx
push eax
push 0x4b
mov eax, edi
call fcn.004f6a50
mov ecx, dword [edi + 4]
mov edx, dword [edi]
add esp, 0x18
test ecx, ecx
je 0x529f25
cmp byte [edx + 0x36], 0
jne 0x529f25
mov eax, edi
mov eax, dword [eax + 0x1c]
lea eax, [eax + eax*4 - 5]
lea ecx, [ecx + eax*4]
movsx eax, byte [ecx + 1]
mov dword [esp + 0x10], ecx
mov ecx, dword [ecx + 0x10]
mov edi, edx
call fcn.004f7010
cmp dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x10], 0
mov eax, ecx
jne 0x529f18
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
jmp 0x529f35
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xfc
jmp 0x529f35
mov ecx, dword [esp + 0x3c]
mov eax, 0xfffffffc
mov edi, edx
call fcn.004f7010
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x529f4b
mov eax, dword [eax + 0x1c]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 0x80
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x44]
add dword [esp + 0x64], 0x14
inc dword [esp + 0x1c]
inc eax
mov dword [esp + 0x38], eax
cmp eax, dword [ecx]
jl 0x529e90
mov edx, dword [esp + 0x5c]
mov eax, dword [edx + 0x14]
mov edi, dword [esp + 0xc]
push eax
push 0
push 1
mov eax, edi
call fcn.004f6b50
mov ecx, dword [esp + 0x5c]
add esp, 0xc
push ecx
push 0
push 7
mov eax, edi
call fcn.004f6b50
mov edx, dword [esp + 0x50]
mov eax, dword [edx]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
add esp, 0xc
push eax
push ecx
push edx
push 0xd
mov eax, edi
call fcn.004f6a50
mov edi, dword [esp + 0x6c]
add esp, 0x10
jmp 0x529fbc
mov byte [eax], 0x95
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x50]
push eax
push ecx
push 0
push 0
push edx
push ebx
push esi
call fcn.00523ae0
push edi
call fcn.00536fc0
mov edi, dword [esp + 0x38]
add esp, 0x2c
jmp 0x52ad95
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
test edi, edi
je 0x52a062
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov ecx, dword [ecx + 8]
test eax, eax
jle 0x52a02d
add ecx, 0x10
lea ebx, [ebx]
xor edx, edx
mov word [ecx], dx
dec eax
add ecx, 0x14
test eax, eax
jg 0x52a020
mov eax, dword [edi]
mov ecx, dword [edi + 8]
test eax, eax
jle 0x52a04d
add ecx, 0x10
lea esp, [esp]
xor edx, edx
mov word [ecx], dx
dec eax
add ecx, 0x14
test eax, eax
jg 0x52a040
fld qword [0x69c7a8]
fcom qword [ebx + 0x20]
fnstsw ax
test ah, 5
jp 0x52a069
fstp qword [ebx + 0x20]
jmp 0x52a06b
fld1
fstp qword [ebx + 0x20]
jmp 0x52a06b
fstp st(0)
mov eax, dword [esp + 0xc]
call fcn.004f6dc0
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x78], eax
xor eax, eax
lea edx, [esp + 0x84]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xbc], edx
cmp edi, eax
je 0x52a0d9
mov eax, dword [edi]
inc eax
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x44]
lea edx, [esp + 0xb0]
push edx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
call fcn.0050b150
mov ebx, dword [esp + 0x44]
lea eax, [esp + 0xb4]
add esp, 4
push eax
call fcn.0050b150
mov ecx, dword [esp + 0x3c]
xor edi, edi
add esp, 4
cmp ecx, edi
je 0x52a12d
lea edx, [esp + 0xb0]
push edx
call fcn.0050b110
add esp, 4
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xa0], eax
cmp dword [esp + 0xa8], edi
jle 0x52a188
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0xa4]
or byte [esp + 0xcc], 8
mov edx, dword [esp + 0x10]
mov eax, dword [edx + ecx]
mov ebx, dword [eax + 0x10]
lea ecx, [esp + 0xb0]
push ecx
call fcn.0050b150
and byte [esp + 0xd0], 0xf7
add dword [esp + 0x14], 0x10
inc edi
add esp, 4
cmp edi, dword [esp + 0xa8]
jl 0x52a148
mov edx, dword [esp + 0x48]
cmp byte [edx + 0x36], 0
jne 0x52adfd
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x52ae65
mov eax, dword [esi + 0x48]
mov dword [esp + 0x88], eax
push ecx
inc eax
push esi
mov dword [esi + 0x48], eax
call fcn.00523ef0
mov ecx, dword [esp + 0x90]
mov edi, dword [esp + 0x14]
push 0xfffffffffffffff0
push eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xa0]
push 0
push eax
push ecx
push 0x2b
mov eax, edi
call fcn.004f6bb0
inc dword [esi + 0x4c]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x4c]
lea ebx, [eax + 1]
mov dword [esp + 0x78], eax
lea eax, [ebx + 1]
mov dword [esp + 0x84], eax
mov dword [esi + 0x4c], eax
mov eax, edi
mov dword [esp + 0x74], ebx
call fcn.004f6dc0
inc dword [esi + 0x4c]
mov edx, dword [esi + 0x4c]
mov dword [esp + 0x9c], eax
mov eax, edi
mov dword [esp + 0x70], edx
call fcn.004f6dc0
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x4c]
lea ecx, [eax + 1]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x54]
add eax, dword [ecx]
push ebx
mov dword [esi + 0x4c], eax
mov ecx, dword [ecx]
lea edx, [eax + 1]
add ecx, eax
push 0
push 7
mov eax, edi
mov dword [esp + 0x68], edx
mov dword [esi + 0x4c], ecx
call fcn.004f6b50
mov edx, dword [esp + 0x84]
add esp, 0x2c
push edx
push 0
push 7
mov eax, edi
call fcn.004f6b50
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov eax, dword [esp + 0x78]
add esp, 0xc
lea edx, [ecx + eax - 1]
push edx
push eax
push 0
push 0xa
mov eax, edi
call fcn.004f6a50
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x60]
push eax
push ecx
push 2
mov eax, edi
call fcn.004f6b50
add esp, 0x1c
push 0
push 0
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x78]
push 0
lea edx, [esp + 0x40]
push edx
push eax
push ecx
push esi
call fcn.00536460
add esp, 0x1c
mov dword [esp + 0x5c], eax
test eax, eax
je 0x52adfd
mov ebx, dword [esp + 0x34]
test ebx, ebx
jne 0x52a2e2
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 0x30]
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], ebx
jmp 0x52a643
cmp dword [esp + 0x18], 0
je 0x52a2f8
mov ecx, dword [esp + 0x60]
test byte [ecx + 6], 1
mov eax, str.DISTINCT
je 0x52a2fd
mov eax, str.GROUP_BY
mov ecx, esi
call fcn.00523fd0
mov eax, dword [ebx]
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x28], eax
inc eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], eax
mov ecx, eax
mov dword [esp + 0x18], eax
test edx, edx
jle 0x52a342
mov ebx, dword [esp + 0x98]
add ebx, 0xc
cmp dword [ebx], eax
jl 0x52a338
inc ecx
inc eax
add ebx, 0x18
dec edx
jne 0x52a332
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 0x3c]
mov ebx, dword [esi + 0x40]
mov dword [esp + 0x1c], ebx
cmp ecx, eax
jg 0x52a35d
lea edx, [ebx + ecx]
sub eax, ecx
mov dword [esi + 0x40], edx
mov dword [esi + 0x3c], eax
jmp 0x52a36c
mov eax, dword [esi + 0x4c]
lea ebx, [eax + 1]
add eax, ecx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x4c], eax
mov eax, esi
call fcn.00508db0
mov eax, dword [esp + 0x34]
push 0
push esi
mov edx, ebx
call fcn.0050a2a0
add ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x90]
push ebx
push ecx
push 0x37
mov eax, edi
call fcn.004f6b50
mov edx, dword [esp + 0x28]
add esp, 0x14
cmp dword [esp + 0x9c], 0
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], 0
jle 0x52a43a
mov eax, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x98]
xor ebx, ebx
mov edx, dword [esp + 0x20]
cmp dword [ebx + eax + 0xc], edx
jl 0x52a425
mov ecx, dword [esp + 0x28]
mov edx, dword [ebx + eax + 4]
push 0
push ecx
mov ecx, dword [ebx + eax]
mov eax, dword [ebx + eax + 8]
push edx
push ecx
mov edi, esi
call fcn.00508d10
add esp, 0x10
cmp dword [esp + 0x28], eax
je 0x52a40d
mov edx, dword [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x14]
push 0xf
call fcn.004f6b50
add esp, 0xc
mov edi, dword [esp + 0xc]
mov eax, 1
add dword [esp + 0x20], eax
add dword [esp + 0x28], eax
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x14]
inc ecx
add ebx, 0x18
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x9c]
jl 0x52a3cb
mov al, byte [esi + 0x13]
test al, al
jne 0x52a44d
inc dword [esi + 0x4c]
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x28], eax
jmp 0x52a45d
dec al
movzx ecx, al
mov byte [esi + 0x13], al
mov edx, dword [esi + ecx*4 + 0x1c]
mov dword [esp + 0x28], edx
mov ebx, dword [edi + 0x1c]
cmp dword [edi + 0x20], ebx
jg 0x52a472
mov edi, dword [esp + 0xc]
call fcn.004f69d0
test eax, eax
jne 0x52a4a7
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 4]
inc dword [eax + 0x1c]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov word [eax], 0x1f
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x1c]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
cmp dword [ebx + 0x20], eax
jg 0x52a4d1
mov edi, ebx
call fcn.004f69d0
test eax, eax
jne 0x52a4fe
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 4]
inc dword [ebx + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x60
jmp 0x52a502
mov edi, dword [esp + 0x28]
test edi, edi
je 0x52a52b
mov dl, byte [esi + 0x13]
cmp dl, 8
jae 0x52a52b
xor eax, eax
lea ecx, [esi + 0x64]
cmp dword [ecx + 0x10], edi
je 0x52a57d
inc eax
add ecx, 0x18
cmp eax, 0xa
jl 0x52a513
movzx eax, dl
mov dword [esi + eax*4 + 0x1c], edi
inc byte [esi + 0x13]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov eax, esi
call fcn.005089e0
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esi + 0x3c]
jle 0x52a54d
mov edx, ecx
mov eax, edi
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], eax
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00536fc0
mov ecx, dword [esi + 0x48]
mov al, byte [esi + 0x13]
add esp, 4
lea edx, [ecx + 1]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x8c], ecx
mov dword [esi + 0x48], edx
test al, al
jne 0x52a583
inc dword [esi + 0x4c]
mov eax, dword [esi + 0x4c]
jmp 0x52a58f
mov byte [ecx + 8], 1
jmp 0x52a52b
dec al
movzx edx, al
mov byte [esi + 0x13], al
mov eax, dword [esi + edx*4 + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x14], eax
cmp dword [ebx + 0x20], eax
jg 0x52a5b2
mov edi, ebx
call fcn.004f69d0
test eax, eax
jne 0x52a5df
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
inc dword [ebx + 0x1c]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x18]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov word [eax], 0x2c
mov eax, dword [esp + 0x88]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [ebx + 0x20], eax
jg 0x52a605
mov edi, ebx
call fcn.004f69d0
test eax, eax
jne 0x52a630
mov eax, dword [esp + 0x18]
mov edx, dword [ebx + 4]
inc dword [ebx + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x78]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x46
mov eax, esi
mov byte [esp + 0x85], 1
call fcn.00508db0
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x74], eax
mov eax, esi
call fcn.00508db0
cmp dword [esp + 0x10], 0
je 0x52a6a5
mov eax, dword [esp + 0xc]
mov ebx, dword [eax + 0x1c]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x18], ecx
mov edi, eax
cmp dword [eax + 0x20], ebx
jg 0x52a67a
call fcn.004f69d0
test eax, eax
jne 0x52a6a5
mov eax, dword [edi + 4]
inc dword [edi + 0x1c]
mov ecx, dword [esp + 0x18]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x3e
mov eax, dword [esp + 0x34]
cmp dword [eax], 0
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x20], 0
jle 0x52a824
mov edi, edi
cmp dword [esp + 0x10], 0
je 0x52a739
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x1c], eax
cmp dword [ebx + 0x20], eax
jg 0x52a6de
mov edi, ebx
call fcn.004f69d0
test eax, eax
jne 0x52a713
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x1c]
inc dword [ebx + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
add ecx, dword [esp + 0x3c]
mov byte [eax + 3], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov word [eax], 0x1d
cmp dword [esp + 0x20], 0
jne 0x52a80f
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x52a80f
mov eax, dword [ebx + 0x1c]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 0x20
jmp 0x52a80f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x84], 1
mov dword [esp + 0x1c], edx
mov edx, dword [ecx + 8]
lea eax, [eax + eax*4]
mov eax, dword [edx + eax*4]
test eax, eax
je 0x52a7ae
cmp byte [eax], 0x84
jne 0x52a7ae
mov eax, dword [eax + 0x18]
mov edi, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [edi + 0x20], eax
jg 0x52a789
call fcn.004f69d0
test eax, eax
jne 0x52a80f
mov edx, dword [edi + 4]
mov eax, dword [esp + 0x18]
inc dword [edi + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov word [eax], 0xe
jmp 0x52a804
mov edi, dword [esp + 0x1c]
push edi
push eax
push esi
call fcn.00509060
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, edi
je 0x52a80f
mov edi, dword [esi + 8]
test edi, edi
je 0x52a80f
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [edi + 0x20], eax
jg 0x52a7e1
call fcn.004f69d0
test eax, eax
jne 0x52a80f
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x18]
inc dword [edi + 0x1c]
mov edx, dword [esp + 0x14]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov word [eax], 0xf
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0xc], ecx
mov byte [eax + 3], cl
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [edx]
jl 0x52a6c0
mov eax, dword [esp + 0x34]
mov esi, dword [ebx + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
cmp dword [ebx + 0x20], esi
jg 0x52a848
mov edi, ebx
call fcn.004f69d0
test eax, eax
je 0x52a848
mov esi, 1
jmp 0x52a879
mov eax, dword [ebx + 4]
inc dword [ebx + 0x1c]
mov ecx, dword [esp + 0x6c]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov word [eax], 0x18
mov edx, dword [esp + 0x68]
push edx
push ebx
mov ecx, 0xfffffffa
mov eax, esi
call fcn.004f7150
mov esi, dword [ebx + 0x1c]
add esp, 8
mov dword [esp + 0x1c], esi
cmp dword [ebx + 0x20], esi
jg 0x52a8a5
mov edi, ebx
call fcn.004f69d0
test eax, eax
jne 0x52a8cb
mov ecx, dword [ebx + 4]
inc dword [ebx + 0x1c]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
lea ecx, [esi + 1]
xor edx, edx
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov word [eax], 0x19
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x30]
push eax
push ecx
call fcn.00508e80
mov esi, dword [esp + 0x14]
mov ebx, dword [esi + 0x1c]
add esp, 8
cmp dword [esi + 0x20], ebx
jg 0x52a8fe
mov edi, esi
call fcn.004f69d0
test eax, eax
jne 0x52a92a
mov eax, dword [esi + 4]
inc dword [esi + 0x1c]
mov ecx, dword [esp + 0x64]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x7c]
xor ebx, ebx
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 2
jmp 0x52a92c
xor ebx, ebx
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x68], eax
cmp dword [esi + 0x20], eax
jg 0x52a943
mov edi, esi
call fcn.004f69d0
test eax, eax
jne 0x52a96f
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x68]
inc dword [esi + 0x1c]
mov edx, dword [esp + 0x54]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x78]
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x78
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x68], eax
cmp dword [esi + 0x20], eax
jg 0x52a986
mov edi, esi
call fcn.004f69d0
test eax, eax
jne 0x52a9b2
mov eax, dword [esp + 0x68]
inc dword [esi + 0x1c]
mov ecx, dword [esp + 0x50]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x2c]
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 2
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jl 0x52a9cb
mov ecx, dword [esi + 0x1c]
cmp ecx, eax
jbe 0x52a9cb
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
mov dword [edx + eax*4 + 8], ecx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x84]
push eax
push ecx
call fcn.00529140
mov eax, dword [esi + 0x1c]
add esp, 8
mov dword [esp + 0x68], eax
cmp dword [esi + 0x20], eax
jg 0x52a9f7
mov edi, esi
call fcn.004f69d0
test eax, eax
jne 0x52aa24
mov eax, dword [esp + 0x68]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov ecx, 1
add dword [esi + 0x1c], ecx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 7
cmp dword [esp + 0x10], ebx
je 0x52aa7a
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x68], eax
cmp dword [esi + 0x20], eax
jg 0x52aa4c
mov edi, esi
call fcn.004f69d0
test eax, eax
jne 0x52aabf
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x68]
inc dword [esi + 0x1c]
mov edx, dword [esp + 0x6c]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x74]
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x51
jmp 0x52aabf
mov edx, dword [esp + 0x5c]
push edx
call fcn.00536fc0
mov ecx, dword [esi + 4]
add esp, 4
cmp ecx, ebx
je 0x52aabf
mov eax, dword [esp + 0x24]
mov edi, dword [esi]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
movsx eax, byte [ecx + 1]
mov dword [esp + 0x24], ecx
mov ecx, dword [ecx + 0x10]
call fcn.004f7010
mov eax, dword [esp + 0x24]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax], 0x95
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x20], eax
jg 0x52aad6
mov edi, esi
call fcn.004f69d0
test eax, eax
jne 0x52ab02
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x24]
inc dword [esi + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x7c]
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 2
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x20], eax
jg 0x52ab19
mov edi, esi
call fcn.004f69d0
test eax, eax
jne 0x52ab41
mov ecx, dword [esi + 4]
inc dword [esi + 0x1c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x78]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 1
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x74], eax
cmp dword [esi + 0x20], eax
jg 0x52ab5c
mov edi, esi
call fcn.004f69d0
test eax, eax
jne 0x52ab89
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, 1
add dword [esi + 0x1c], ecx
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 7
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x20], eax
jg 0x52aba0
mov edi, esi
call fcn.004f69d0
test eax, eax
jne 0x52abc8
mov eax, dword [esp + 0x24]
inc dword [esi + 0x1c]
mov ecx, dword [esp + 0x64]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 3
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x52abe1
mov edx, dword [esp + 0x7c]
lea ecx, [edx*4 + 4]
mov edx, dword [esi + 0x1c]
sub eax, ecx
mov dword [eax], edx
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x10], eax
cmp dword [esi + 0x20], eax
jg 0x52abf8
mov edi, esi
call fcn.004f69d0
test eax, eax
jne 0x52ac23
mov edx, dword [esi + 4]
inc dword [esi + 0x1c]
mov ecx, dword [esp + 0x10]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x58]
add ecx, 2
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 0x78
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x20], eax
jg 0x52ac3a
mov edi, esi
call fcn.004f69d0
test eax, eax
jne 0x52ac62
mov ecx, dword [esi + 4]
inc dword [esi + 0x1c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x64]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 3
lea eax, [esp + 0x84]
push eax
mov eax, dword [esp + 0x34]
call fcn.00529030
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
add esp, 4
push 8
inc edi
push edi
push ecx
push edx
call fcn.0050a780
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x90]
push eax
mov eax, dword [esp + 0x54]
push edi
push ecx
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x84]
mov ecx, dword [eax]
push ebx
push ebx
push ecx
push eax
push edx
call fcn.00523ae0
mov eax, dword [esi + 0x1c]
add esp, 0x38
mov dword [esp + 0x24], eax
cmp dword [esi + 0x20], eax
jg 0x52acd9
mov edi, esi
call fcn.004f69d0
test eax, eax
jne 0x52ad01
mov ecx, dword [esi + 4]
inc dword [esi + 0x1c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x64]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 3
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x52ad1a
mov ecx, dword [esp + 0x2c]
lea edx, [ecx*4 + 4]
mov ecx, dword [esi + 0x1c]
sub eax, edx
mov dword [eax], ecx
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x84]
push edx
push eax
call fcn.00528de0
mov eax, dword [esi + 0x1c]
add esp, 8
mov dword [esp + 0x24], eax
cmp dword [esi + 0x20], eax
jg 0x52ad4c
mov edi, esi
call fcn.004f69d0
test eax, eax
jne 0x52ad74
mov esi, dword [esp + 0xc]
xor ebx, ebx
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x24]
inc dword [esi + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x50]
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov word [eax], 3
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0x28]
test eax, eax
je 0x52ad95
mov edx, dword [esp + 0x78]
lea ecx, [edx*4 + 4]
mov edx, dword [edi + 0x1c]
sub eax, ecx
mov dword [eax], edx
cmp dword [esp + 0x80], 0
jl 0x52adab
mov eax, str.DISTINCT
mov ecx, esi
call fcn.00523fd0
cmp dword [esp + 0x40], 0
je 0x52add9
mov eax, str.ORDER_BY
mov ecx, esi
call fcn.00523fd0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x64]
push edx
push edi
push eax
push esi
call fcn.005241d0
add esp, 0x14
mov eax, dword [edi + 0x28]
test eax, eax
je 0x52adf5
mov ecx, dword [esp + 0xd0]
lea edx, [ecx*4 + 4]
mov ecx, dword [edi + 0x1c]
sub eax, edx
mov dword [eax], ecx
mov dword [esp + 0x20], 0
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0xac]
mov dword [esi + 0x1e4], edx
test edi, edi
jne 0x52ae2e
mov eax, dword [esp + 0x4c]
cmp byte [eax], 5
jne 0x52ae2e
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x70]
push ecx
push edx
push esi
call fcn.00524ab0
add esp, 0xc
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x98]
mov ecx, esi
call fcn.004daf00
mov eax, dword [esp + 0xa4]
mov ecx, esi
call fcn.004daf00
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.005f0da0
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x60]
lea ecx, [esp + 0x84]
mov eax, edi
mov dword [esp + 0x58], 0
call fcn.005283f0
mov ebx, eax
mov dword [esp + 0x74], ebx
test ebx, ebx
je 0x52b071
mov edi, dword [esp + 0x30]
mov esi, dword [ebx + 0x44]
mov ecx, dword [edi]
call fcn.00522690
mov ecx, dword [edi + 0x48]
mov dword [esp + 0x2c], ecx
inc ecx
mov dword [edi + 0x48], ecx
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x7c], eax
xor esi, esi
push eax
mov eax, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x58], edx
call fcn.00513a20
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x14]
mov edx, dword [esp + 0x80]
add esp, 4
push eax
push esi
push ecx
push edx
mov eax, edi
call fcn.0050ef00
mov eax, dword [ebx + 0x10]
add esp, 0x10
test eax, eax
je 0x52af27
cmp byte [eax + 0x2e], 0
jne 0x52aefb
test esi, esi
je 0x52aef9
mov ecx, dword [eax + 0x24]
cmp ecx, dword [esi + 0x24]
jge 0x52aefb
mov esi, eax
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x52aee7
mov dword [esp + 0x6c], esi
test esi, esi
je 0x52af27
mov edx, dword [esi + 0x24]
cmp edx, dword [ebx + 8]
jge 0x52af27
mov eax, dword [esi + 0x28]
push esi
push edi
mov dword [esp + 0x5c], eax
call fcn.00514030
add esp, 8
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x20], eax
jg 0x52af42
mov edi, esi
call fcn.004f69d0
test eax, eax
jne 0x52af77
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x24]
inc dword [esi + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x7c]
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov word [eax], 0x27
cmp dword [esp + 0x10], 0
je 0x52afc3
mov ecx, dword [esi + 4]
mov edi, dword [esi]
test ecx, ecx
je 0x52afb5
cmp byte [edi + 0x36], 0
jne 0x52afb5
mov eax, dword [esi + 0x1c]
lea edx, [eax + eax*4 - 5]
movsx eax, byte [ecx + edx*4 + 1]
lea ebx, [ecx + edx*4]
mov ecx, dword [ebx + 0x10]
call fcn.004f7010
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], 0xfa
mov ebx, dword [esp + 0x74]
jmp 0x52afc3
mov ecx, dword [esp + 0x10]
mov eax, 0xfffffff0
call fcn.004f7010
mov ecx, dword [esp + 0xa4]
mov eax, dword [esi + 0x1c]
mov edx, dword [ecx + 8]
mov dword [esp + 0x74], edx
mov dword [esp + 0x24], eax
cmp dword [esi + 0x20], eax
jg 0x52afe8
mov edi, esi
call fcn.004f69d0
test eax, eax
jne 0x52b017
mov ecx, dword [esi + 4]
inc dword [esi + 0x1c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x74]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x20
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x20], eax
jg 0x52b02e
mov edi, esi
call fcn.004f69d0
test eax, eax
jne 0x52b059
mov eax, dword [esp + 0x24]
inc dword [esi + 0x1c]
mov ecx, dword [esp + 0x2c]
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x2d
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x30]
mov eax, ebx
call fcn.00529680
mov esi, dword [esp + 0x30]
jmp 0x52b15f
mov eax, edi
mov dword [esp + 0x2c], 0
call fcn.00528380
mov bl, al
test bl, bl
je 0x52b0c6
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
mov edi, dword [esp + 0x48]
push 0
push edx
push edi
call fcn.00506d50
add esp, 0xc
mov dword [esp + 0x2c], eax
mov dword [esp + 0x58], eax
test eax, eax
je 0x52b0c6
cmp byte [edi + 0x36], 0
jne 0x52b0c6
mov edx, dword [eax + 8]
cmp bl, 1
setne cl
mov byte [edx + 0xc], cl
mov eax, dword [eax + 8]
mov ecx, dword [eax]
mov byte [ecx], 0x98
lea edx, [esp + 0x84]
push edx
push esi
call fcn.00528de0
mov eax, dword [esp + 0x64]
push 0
movzx ecx, bl
push ecx
mov ecx, dword [esp + 0x80]
push 0
lea edx, [esp + 0x40]
push edx
push eax
push ecx
push esi
call fcn.00536460
mov edi, eax
add esp, 0x24
test edi, edi
jne 0x52b114
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x48]
push edx
push eax
call fcn.00507530
add esp, 8
jmp 0x52adfd
lea ecx, [esp + 0x84]
push ecx
push esi
call fcn.00529140
add esp, 8
cmp dword [esp + 0x2c], 0
jne 0x52b144
test bl, bl
je 0x52b144
mov edx, dword [edi + 0x18]
mov eax, dword [esp + 0xc]
push edx
push 0
push 1
call fcn.004f6b50
add esp, 0xc
push edi
call fcn.00536fc0
lea eax, [esp + 0x88]
add esp, 4
push eax
mov eax, esi
call fcn.00529030
add esp, 4
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x38]
push 8
push ecx
push edx
push esi
mov dword [esp + 0x50], 0
call fcn.0050a780
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
mov eax, dword [esp + 0x5c]
movzx edx, byte [eax]
mov edi, dword [esi + 8]
mov eax, dword [eax + 4]
add esp, 0x10
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
test edi, edi
je 0x52b442
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x60]
mov esi, edi
call fcn.00523980
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x4c]
cmp dword [ebx + 8], 0
mov edx, dword [ecx]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x18], edx
jne 0x52b1dd
mov eax, dword [esi + 0x4c]
inc eax
mov dword [ebx + 8], eax
mov eax, edx
mov dword [ebx + 0xc], eax
add dword [esi + 0x4c], eax
cmp dword [esp + 0x10], 3
mov ecx, dword [ebx + 8]
mov dword [esp + 0x14], ecx
je 0x52b20e
mov eax, esi
call fcn.00508db0
mov eax, dword [esp + 0x38]
xor edx, edx
cmp dword [esp + 0x10], 5
sete dl
push edx
mov edx, dword [esp + 0x18]
push esi
call fcn.0050a2a0
add esp, 8
mov eax, dword [esp + 0x10]
dec eax
cmp eax, 9
ja case.0x52b21c.4
jmp dword [eax*4 + 0x52b474]
mov al, byte [esi + 0x13]
test al, al
jne 0x52b232
inc dword [esi + 0x4c]
mov esi, dword [esi + 0x4c]
jmp 0x52b23e
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov esi, dword [esi + eax*4 + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push esi
push ecx
push edx
push 0x1f
mov eax, edi
call fcn.004f6a50
mov eax, dword [esp + 0x30]
push esi
push eax
push 0x61
mov eax, edi
call fcn.004f6b50
mov edx, dword [esp + 0x4c]
add esp, 0x1c
call fcn.0050b1d0
jmp case.0x52b21c.4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push 0x62
mov eax, edi
call fcn.004f6a50
add esp, 0x10
jmp case.0x52b21c.4
mov al, byte [esi + 0x13]
test al, al
jne 0x52b2a1
inc dword [esi + 0x4c]
mov ebx, dword [esi + 0x4c]
jmp 0x52b2ad
dec al
movzx ecx, al
mov byte [esi + 0x13], al
mov ebx, dword [esi + ecx*4 + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ebx
push edx
push eax
push 0x1f
mov eax, edi
call fcn.004f6a50
mov ecx, esi
call fcn.0050b1b0
mov ecx, dword [esp + 0x30]
mov esi, eax
push esi
push ecx
push 0x38
mov eax, edi
call fcn.004f6b50
mov edx, dword [esp + 0x3c]
add esp, 0x1c
push esi
push ebx
push edx
push 0x39
mov eax, edi
call fcn.004f6a50
mov eax, dword [edi + 4]
add esp, 0x10
test eax, eax
je 0x52b301
mov ecx, dword [edi + 0x1c]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 8
mov edx, dword [esp + 0x30]
call fcn.0050b1d0
mov esi, ebx
call fcn.0050b1d0
jmp case.0x52b21c.4
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x60]
mov ecx, dword [eax + 8]
mov bl, byte [ebx + 1]
mov eax, dword [ecx]
add edx, 5
mov dword [esp + 0x24], edx
call fcn.00505f10
mov edx, dword [esp + 0x24]
mov ecx, esi
mov byte [edx], al
call fcn.0050b1b0
push 1
push edx
mov edx, dword [esp + 0x1c]
mov ebx, eax
push ebx
push 1
push edx
push 0x1f
mov eax, edi
call fcn.004f6bb0
mov edi, dword [esp + 0x2c]
mov ecx, 1
mov eax, esi
call fcn.005089e0
mov eax, dword [esp + 0x38]
push ebx
push eax
mov eax, dword [esp + 0x5c]
push 0x61
call fcn.004f6b50
mov edx, dword [esp + 0x54]
add esp, 0x24
mov esi, ebx
call fcn.0050b1d0
jmp 0x52b3f0
mov ecx, dword [esp + 0x20]
push ecx
push 1
push 7
mov eax, edi
call fcn.004f6b50
add esp, 0xc
jmp case.0x52b21c.4
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
push 1
push edx
call fcn.00508e80
add esp, 8
jmp case.0x52b21c.4
cmp dword [esp + 0x10], 0xa
jne 0x52b3cd
mov eax, dword [ebx + 4]
push eax
push 4
mov eax, edi
call fcn.004f6b00
add esp, 8
jmp case.0x52b21c.4
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
push ecx
push ebx
push 0x10
mov eax, edi
call fcn.004f6b50
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov edi, ebx
mov eax, esi
call fcn.005089e0
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x60]
mov ebx, dword [edx + 8]
test ebx, ebx
je 0x52b43e
mov esi, dword [edi + 0x1c]
cmp dword [edi + 0x20], esi
jg 0x52b414
call fcn.004f69d0
test eax, eax
jne 0x52b43e
mov edi, dword [esp + 0x3c]
mov ecx, dword [edi + 4]
inc dword [edi + 0x1c]
mov edx, dword [esp + 0x78]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax + 3], cl
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], 0xffffffff
mov dword [eax + 0x10], ecx
mov word [eax], 0x7a
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x48]
push eax
push ecx
call fcn.00507530
add esp, 8
jmp 0x52ad78
mov ecx, dword [esp + 0xec]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.005f0da0
mov esp, ebp
pop ebp
ret