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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
movzx eax, word [edx]
push ebx
push esi
push edi
cmp ax, 0x40
jle 0x1006b73e
push 0x40
push str.at_most__d_tables_in_a_join
push ecx
call fcn.1001d690
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ecx]
movsx edi, ax
shl edi, 6
add edi, 0x27
and edi, 0xfffffff8
lea ecx, [edi + 0x1bc]
mov dword [esp + 0x34], esi
call fcn.1001b5e0
mov ebx, eax
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x1006b777
lea eax, [edi + 0x1bc]
push eax
push 0
push ebx
call fcn.100775d0
add esp, 0xc
mov edx, esi
cmp byte [edx + 0x1e], 0
jne 0x1006bc78
mov eax, dword [ebp + 0xc]
movsx ecx, word [eax]
mov edx, dword [ebp + 8]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x18], ecx
mov dword [ebx], edx
call fcn.10032b80
lea esi, [ebx + edi]
push 0x104
mov dword [ebx + 0x14], eax
mov ax, word [ebp + 0x18]
lea edi, [esi + 0xb8]
push 0
push edi
mov dword [esp + 0x2c], esi
mov dword [ebx + 0x1c], esi
mov word [ebx + 4], ax
call fcn.100775d0
mov eax, dword [ebp + 8]
mov dword [esi + 4], edi
mov edi, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi], eax
mov dword [esp + 0x50], eax
xor ecx, ecx
lea eax, [esp + 0x48]
lea edx, [esi + 0x18]
push edi
push eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 4
mov dword [esi + 0x14], edx
mov dword [esp + 0x50], 0x10042f60
mov dword [esp + 0x54], ecx
call fcn.1003d2f0
push 0x43
push edi
push esi
call fcn.10067a80
add esp, 0x14
test edi, edi
je 0x1006b837
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0
je 0x1006b824
mov eax, edi
call fcn.10040a30
test eax, eax
je 0x1006b837
mov edx, dword [ebx + 0x14]
mov eax, dword [ebp + 8]
push 8
push edx
push edi
push eax
call fcn.10043550
add esp, 0x10
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esp + 0x1c], 0
cmp cx, word [edi]
jge 0x1006b87e
lea edx, [edi + 0x20]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0xb8]
mov edx, dword [edx]
mov eax, dword [esp + 0x1c]
add dword [esp + 0x10], 0x38
mov dword [esi + ecx*4 + 0xbc], edx
inc dword [esi + 0xb8]
movsx ecx, word [edi]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, ecx
jl 0x1006b850
mov eax, dword [esi + 0xc]
dec eax
mov dword [esp + 0x10], eax
js 0x1006b89d
mov edx, dword [esp + 0x10]
push edx
push esi
push edi
call fcn.100689d0
add esp, 0xc
dec dword [esp + 0x10]
jns 0x1006b888
mov eax, dword [esp + 0x34]
cmp byte [eax + 0x1e], 0
jne 0x1006bc78
movsx ecx, word [edi]
or eax, 0xffffffff
xor edx, edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], eax
lea eax, [ebx + 0x20]
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
cmp ecx, edx
jle 0x1006bb56
xor eax, eax
mov esi, eax
jmp 0x1006b8e6
mov esi, dword [esp + 0x10]
xor eax, eax
fld qword [0x100a0178]
mov edi, dword [ebp + 0xc]
lea edx, [esi*8]
sub edx, esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
fstp qword [esp + 0x68]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x38], esi
lea ebx, [edi + edx*8 + 8]
cmp esi, ecx
jge 0x1006ba7a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
shl eax, 6
lea edx, [eax + ecx + 0x5c]
mov dword [esp + 0x40], edx
test byte [ebx + 0x15], 0xa
mov eax, 0
setne al
cmp dword [esp + 0x44], 0
mov dword [esp + 0x28], eax
je 0x1006b966
test eax, eax
jne 0x1006ba76
mov edi, dword [esp + 0x20]
xor ecx, ecx
cmp dword [edi + 0xb8], ecx
jle 0x1006b98d
mov edx, dword [ebx + 0x18]
lea eax, [edi + 0xbc]
cmp dword [eax], edx
je 0x1006b9b4
inc ecx
add eax, 4
cmp ecx, dword [edi + 0xb8]
jl 0x1006b97d
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
and eax, ecx
and edx, edi
or eax, edx
jne 0x1006b9c2
cmp esi, dword [esp + 0x10]
jne 0x1006ba5b
inc dword [esp + 0x10]
jmp 0x1006ba5b
mov eax, 1
xor edx, edx
call fcn.10088f60
jmp 0x1006b991
cmp dword [esp + 0x1c], 0
jne 0x1006b9d4
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1006b9d4
mov eax, dword [eax]
jmp 0x1006b9d6
xor eax, eax
mov edx, dword [ebx + 0xc]
test byte [edx + 0x22], 0x10
je 0x1006ba00
mov edx, dword [esp + 0x40]
push edx
lea edx, [esp + 0x7c]
push edx
push eax
mov eax, dword [esp + 0x2c]
push edi
push ecx
mov ecx, dword [ebp + 8]
push ebx
push eax
push ecx
call fcn.10069880
add esp, 0x20
jmp 0x1006ba1a
lea edx, [esp + 0x78]
push edx
push eax
mov eax, dword [esp + 0x28]
push edi
push ecx
mov ecx, dword [ebp + 8]
push ebx
push eax
push ecx
call fcn.10069a00
add esp, 0x1c
cmp dword [esp + 0x44], 0
je 0x1006ba33
fld qword [esp + 0x68]
fcomp qword [esp + 0x88]
fnstsw ax
test ah, 0x41
jne 0x1006ba54
mov edx, dword [esp + 0x38]
mov ecx, 8
lea esi, [esp + 0x78]
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x44], 1
mov dword [esp + 0x3c], edx
mov esi, edx
cmp dword [esp + 0x28], 0
jne 0x1006ba76
mov eax, dword [ebp + 0xc]
movsx ecx, word [eax]
add dword [esp + 0x40], 0x40
inc esi
add ebx, 0x38
mov dword [esp + 0x38], esi
cmp esi, ecx
jl 0x1006b947
mov eax, dword [esp + 0x58]
test eax, 0x1000000
je 0x1006ba8a
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x5c]
and dword [esp + 0x30], eax
mov edx, dword [esp + 0x60]
mov dword [edi], eax
mov esi, eax
and esi, 0xf0000
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
je 0x1006baba
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x44]
mov dword [edi + 0x14], ecx
inc dword [eax + 0x44]
jmp 0x1006bac1
mov dword [edi + 0x14], 0xffffffff
mov ebx, dword [esp + 0x20]
xor ecx, ecx
cmp dword [ebx + 0xb8], ecx
jle 0x1006bafd
mov eax, dword [esp + 0x3c]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + edx*8 + 0x20]
lea eax, [ebx + 0xbc]
cmp dword [eax], edx
je 0x1006bc53
inc ecx
add eax, 4
cmp ecx, dword [ebx + 0xb8]
jl 0x1006bae9
xor eax, eax
xor edx, edx
mov ecx, dword [ebp + 0xc]
not eax
and dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
not edx
and dword [esp + 0x4c], edx
lea edx, [eax*8]
sub edx, eax
mov byte [edi + 0x28], al
mov eax, dword [ecx + edx*8 + 0x3c]
test eax, eax
je 0x1006bb30
test esi, esi
je 0x1006bc64
mov eax, dword [esp + 0x1c]
movsx ecx, word [ecx]
inc eax
add edi, 0x40
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
cmp eax, ecx
jl 0x1006b8e0
mov ebx, dword [esp + 0x2c]
mov edi, dword [ebp + 0xc]
mov eax, dword [esp + 0x24]
mov esi, dword [ebp + 8]
cmp dword [esi + 0x40], 0
jne 0x1006bc78
mov edx, dword [esp + 0x34]
cmp byte [edx + 0x1e], 0
jne 0x1006bc78
mov ecx, dword [esp + 0x30]
and ecx, 0x4000000
je 0x1006bb8a
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x1006bb8a
mov dword [edx], 0
test byte [ebp + 0x18], 4
je 0x1006bb9e
test ecx, ecx
je 0x1006bb9e
and dword [eax], 0xff7fffff
mov byte [ebx + 6], 1
push 0xffffffffffffffff
call fcn.1004c800
mov eax, dword [esp + 0x28]
xor ecx, ecx
add esp, 4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], eax
cmp cx, word [edi]
jge 0x1006c083
jmp 0x1006bbd0
mov edx, dword [ebp + 8]
cmp byte [edx + 0x1b8], 2
jne 0x1006bdac
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + 0x28]
mov edx, dword [ebp + 0xc]
mov ebx, dword [esp + 0x34]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edx + ecx*8 + 0xc]
lea edi, [edx + ecx*8 + 8]
push eax
push str.TABLE__s
push ebx
call fcn.1001c9f0
mov edi, dword [edi + 8]
add esp, 0xc
mov esi, eax
test edi, edi
je 0x1006bc2b
push edi
push esi
push str._s_AS__s
push esi
push ebx
call fcn.1001ca10
add esp, 0x14
mov esi, eax
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
test eax, 0xf0000
je 0x1006bc8e
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
push edx
push esi
push str._s_WITH_INDEX__s
push esi
push ebx
call fcn.1001ca10
add esp, 0x14
jmp 0x1006bce2
mov eax, 1
xor edx, edx
call fcn.10088f60
jmp 0x1006bb01
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push eax
push str.cannot_use_index:__s
push ecx
call fcn.1001d690
add esp, 0xc
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
call fcn.1006b630
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, 0x10000000
je 0x1006bca7
push esi
push str._s_VIA_MULTI_INDEX_UNION
push esi
push ebx
call fcn.1001ca10
add esp, 0x10
jmp 0x1006bce2
test eax, 0x3000
je 0x1006bcc0
push esi
push str._s_USING_PRIMARY_KEY
push esi
push ebx
call fcn.1001ca10
add esp, 0x10
jmp 0x1006bce2
test eax, 0x8000000
je 0x1006bce4
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
push ecx
push edx
push esi
push str._s_VIRTUAL_TABLE_INDEX__d:_s
push esi
push ebx
call fcn.1001ca10
add esp, 0x18
mov esi, eax
test dword [edi], 0x1000000
je 0x1006bcfe
push esi
push str._s_ORDER_BY
push esi
push ebx
call fcn.1001ca10
add esp, 0x10
mov esi, eax
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax + 0x28]
mov eax, dword [esp + 0x18]
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x28], ecx
cmp dword [eax + 0x10], ebx
jg 0x1006bd25
mov edi, eax
call fcn.10032930
test eax, eax
je 0x1006bd25
xor ebx, ebx
jmp 0x1006bd57
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x14]
inc dword [ecx + 0xc]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 8], edx
xor edx, edx
mov byte [eax + 3], 0
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x73
mov byte [ecx + 0x7e], dl
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x14]
mov edi, dword [edx]
mov eax, ebx
test ecx, ecx
je 0x1006bda2
cmp byte [edi + 0x1e], 0
jne 0x1006bda2
test ebx, ebx
jns 0x1006bd76
mov eax, dword [edx + 0xc]
dec eax
js 0x1006bdac
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*4]
movsx eax, byte [ebx + 1]
mov ecx, dword [ebx + 0x10]
call fcn.10032fd0
xor eax, eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jne 0x1006bd99
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], al
jmp 0x1006bdac
mov dword [ebx + 0x10], esi
mov byte [ebx + 1], 0xff
jmp 0x1006bdac
mov ecx, esi
or eax, 0xffffffff
call fcn.10032fd0
mov ecx, dword [esp + 0x14]
movzx eax, byte [ecx + 0x28]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + edx*8 + 0x14]
lea edi, [eax + edx*8 + 8]
mov edx, dword [esi + 0x48]
mov eax, 0xfff0bdc0
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], eax
test edx, edx
je 0x1006be04
mov ebx, dword [ecx + 4]
xor eax, eax
mov dword [esp + 0x10], eax
test ebx, ebx
jle 0x1006be04
mov ecx, dword [ecx + 8]
add ecx, 0x14
cmp dword [ecx], edx
je 0x1006be00
inc eax
add ecx, 0x18
cmp eax, ebx
jl 0x1006bdf4
mov dword [esp + 0x10], eax
test byte [esi + 0x22], 2
jne 0x1006c067
cmp dword [esi + 0x1c], 0
jne 0x1006c067
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
test ecx, 0x8000000
je 0x1006beea
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 0x38]
mov esi, dword [ebx + 0xc]
mov eax, dword [edi + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
cmp dword [ebx + 0x10], esi
jg 0x1006be53
mov edi, ebx
call fcn.10032930
test eax, eax
je 0x1006be53
xor esi, esi
jmp 0x1006be7d
mov eax, dword [ebx + 0x14]
inc dword [ebx + 0xc]
mov ecx, dword [esp + 0x28]
lea edx, [esi + 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], 0x20
mov byte [ebx + 0x7e], cl
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebx]
mov eax, esi
test ecx, ecx
je 0x1006bed3
cmp byte [edi + 0x1e], 0
jne 0x1006bed3
test esi, esi
jns 0x1006be98
mov eax, dword [ebx + 0xc]
dec eax
js 0x1006bee1
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea esi, [ecx + edx*4]
mov ecx, dword [esi + 0x10]
call fcn.10032fd0
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
xor ecx, ecx
mov dword [esi + 0x10], ecx
cmp eax, ecx
jne 0x1006bec7
mov dword [esi + 0x10], ecx
mov byte [esi + 1], cl
jmp 0x1006bf77
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xf6
jmp 0x1006bf77
mov ecx, dword [esp + 0x24]
mov eax, 0xfffffff6
call fcn.10032fd0
mov edi, dword [esp + 0x20]
jmp 0x1006bf77
test ecx, 0x800000
jne 0x1006bf5d
test byte [ebp + 0x18], 0x10
jne 0x1006bf5d
mov ebx, dword [esp + 0x2c]
movzx ecx, byte [ebx + 6]
mov edx, dword [edi + 0x18]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 0xd
push ecx
mov ecx, dword [ebp + 8]
push eax
push edx
mov eax, esi
call fcn.10050f50
add esp, 0xc
cmp byte [ebx + 6], 0
jne 0x1006bf73
cmp dword [esi + 0xc], 0x40
jge 0x1006bf73
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
mov esi, eax
xor edx, edx
or esi, ecx
je 0x1006bf44
shrd eax, ecx, 1
shr ecx, 1
mov esi, eax
inc edx
or esi, ecx
jne 0x1006bf37
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 0xc]
push edx
dec eax
push ebx
mov ecx, 0xfffffff2
call fcn.10033170
add esp, 8
jmp 0x1006bf77
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x18]
mov esi, dword [ebp + 8]
push ecx
push 0
push edx
push eax
call fcn.100472c0
add esp, 0x10
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test dword [eax], 0xf0000
mov ecx, dword [edi + 0x18]
mov dword [eax + 0x10], ecx
je 0x1006c057
mov edx, dword [ebp + 8]
mov edi, eax
mov esi, dword [edi + 8]
push esi
push edx
call fcn.1004d0f0
mov ecx, dword [esi + 0x14]
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x14]
add esp, 8
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
cmp dword [ebx + 0x10], esi
jg 0x1006bfc8
mov edi, ebx
call fcn.10032930
test eax, eax
je 0x1006bfc8
xor esi, esi
jmp 0x1006bffd
mov eax, dword [ebx + 0x14]
inc dword [ebx + 0xc]
mov ecx, dword [esp + 0x28]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov word [eax], 0xd
mov byte [ebx + 0x7e], 0
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebx]
mov eax, esi
test ecx, ecx
je 0x1006c049
cmp byte [edi + 0x1e], 0
jne 0x1006c049
test esi, esi
jns 0x1006c018
mov eax, dword [ebx + 0xc]
dec eax
js 0x1006c057
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea esi, [ecx + edx*4]
mov ecx, dword [esi + 0x10]
call fcn.10032fd0
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov dword [esi + 0x10], ecx
cmp eax, ecx
jne 0x1006c040
mov dword [esi + 0x10], ecx
mov byte [esi + 1], cl
jmp 0x1006c057
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x1006c057
mov ecx, dword [esp + 0x24]
mov eax, 0xfffffff0
call fcn.10032fd0
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 8]
push eax
call fcn.1004c800
add esp, 4
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x1c]
movsx edx, word [ecx]
add dword [esp + 0x14], 0x40
inc eax
mov dword [esp + 0x1c], eax
cmp eax, edx
jl 0x1006bbd0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xc]
mov edi, dword [esp + 0x2c]
mov ebx, dword [ebp + 0xc]
mov dword [edi + 0xc], ecx
xor ecx, ecx
or eax, 0xffffffff
or edx, 0xffffffff
xor esi, esi
cmp cx, word [ebx]
jge 0x1006c0ca
lea ebx, [edi + 0x40]
push edx
mov edx, dword [ebp + 0x18]
push eax
push edx
push edi
mov ecx, esi
call fcn.1006a580
mov ecx, dword [ebx]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp + 0xc]
movsx ecx, word [ecx]
inc esi
add esp, 0x10
add ebx, 0x40
cmp esi, ecx
jl 0x1006c0a6
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret