Function at 0x1007feb0
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 0x1007feee
push 0x40
push str.at_most__d_tables_in_a_join
push ecx
call fcn.10036b20
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 ebx, [edi + 0x1bc]
mov ecx, ebx
mov dword [esp + 0x34], esi
call fcn.10034ba0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1007ff21
push ebx
push 0
push eax
call fcn.100b5b30
add esp, 0xc
cmp byte [esi + 0x1e], 0
jne 0x10080366
mov eax, dword [ebp + 0xc]
movsx ecx, word [eax]
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebp + 8]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x18]
push eax
mov dword [ebx + 0x18], ecx
mov dword [ebx], edx
call fcn.1004a1d0
mov cx, word [ebp + 0x18]
add esp, 4
add edi, ebx
push 0x104
lea esi, [edi + 0xb8]
push 0
push esi
mov dword [ebx + 0x14], eax
mov dword [esp + 0x3c], edi
mov dword [ebx + 0x1c], edi
mov word [ebx + 4], cx
call fcn.100b5b30
mov eax, dword [ebp + 8]
mov dword [edi + 4], esi
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov dword [edi], eax
mov dword [esp + 0x50], eax
xor ecx, ecx
lea eax, [esp + 0x48]
lea edx, [edi + 0x18]
push esi
push eax
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], 4
mov dword [edi + 0x14], edx
mov dword [esp + 0x50], 0x10059680
mov dword [esp + 0x54], ecx
call fcn.10053c00
push 0x43
push esi
push edi
call fcn.1007c5f0
add esp, 0x14
test esi, esi
je 0x1007ffe6
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0
je 0x1007ffd3
mov eax, esi
call fcn.10057220
test eax, eax
je 0x1007ffe6
mov edx, dword [ebx + 0x14]
mov eax, dword [ebp + 8]
push 8
push edx
push esi
push eax
call fcn.10059c70
add esp, 0x10
mov ebx, dword [ebp + 0xc]
xor edx, edx
xor ecx, ecx
cmp dx, word [ebx]
jge 0x10080023
lea edx, [ebx + 0x20]
jmp 0x10080000
mov ebx, dword [edx]
mov esi, dword [edi + 0xb8]
mov dword [edi + esi*4 + 0xbc], ebx
inc dword [edi + 0xb8]
mov ebx, dword [ebp + 0xc]
movsx eax, word [ebx]
inc ecx
add edx, 0x38
cmp ecx, eax
jl 0x10080000
mov esi, dword [edi + 0xc]
dec esi
js 0x1008003e
lea esp, [esp]
push esi
push edi
push ebx
call fcn.1007d380
add esp, 0xc
dec esi
jns 0x10080030
mov ecx, dword [esp + 0x34]
cmp byte [ecx + 0x1e], 0
jne 0x10080366
or eax, 0xffffffff
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
add eax, 0x20
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
movsx ecx, word [eax]
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], edx
cmp ecx, edx
jle 0x100802f7
xor eax, eax
mov esi, eax
jmp 0x10080096
mov esi, dword [esp + 0x10]
xor eax, eax
fld qword [0x100f43f8]
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 0x1008022a
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
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 + 0x2c], eax
je 0x10080116
test eax, eax
jne 0x10080226
mov edi, dword [esp + 0x30]
xor ecx, ecx
cmp dword [edi + 0xb8], ecx
jle 0x1008013d
mov edx, dword [ebx + 0x18]
lea eax, [edi + 0xbc]
cmp dword [eax], edx
je 0x10080164
inc ecx
add eax, 4
cmp ecx, dword [edi + 0xb8]
jl 0x1008012d
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 0x10080172
cmp esi, dword [esp + 0x10]
jne 0x1008020b
inc dword [esp + 0x10]
jmp 0x1008020b
mov eax, 1
xor edx, edx
call fcn.100ccbe0
jmp 0x10080141
cmp dword [esp + 0x28], 0
jne 0x10080184
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10080184
mov eax, dword [eax]
jmp 0x10080186
xor eax, eax
mov edx, dword [ebx + 0xc]
test byte [edx + 0x22], 0x10
je 0x100801b0
mov edx, dword [esp + 0x40]
push edx
lea edx, [esp + 0x7c]
push edx
push eax
mov eax, dword [esp + 0x3c]
push edi
push ecx
mov ecx, dword [ebp + 8]
push ebx
push eax
push ecx
call fcn.1007e260
add esp, 0x20
jmp 0x100801ca
lea edx, [esp + 0x78]
push edx
push eax
mov eax, dword [esp + 0x38]
push edi
push ecx
mov ecx, dword [ebp + 8]
push ebx
push eax
push ecx
call fcn.1007e3e0
add esp, 0x1c
cmp dword [esp + 0x44], 0
je 0x100801e3
fld qword [esp + 0x68]
fcomp qword [esp + 0x88]
fnstsw ax
test ah, 0x41
jne 0x10080204
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 + 0x2c], 0
jne 0x10080226
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 0x100800f7
mov eax, dword [esp + 0x58]
test eax, 0x1000000
je 0x1008023a
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x5c]
and dword [esp + 0x24], 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 0x1008026a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x44]
mov dword [edi + 0x14], ecx
inc dword [eax + 0x44]
jmp 0x10080271
mov dword [edi + 0x14], 0xffffffff
mov ebx, dword [esp + 0x30]
xor ecx, ecx
cmp dword [ebx + 0xb8], ecx
jle 0x100802ad
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 0x10080341
inc ecx
add eax, 4
cmp ecx, dword [ebx + 0xb8]
jl 0x10080299
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 0x100802dc
test esi, esi
je 0x10080352
mov eax, dword [esp + 0x28]
movsx ecx, word [ecx]
inc eax
add edi, 0x40
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], edi
cmp eax, ecx
jl 0x10080090
mov edx, dword [ebp + 8]
cmp dword [edx + 0x40], 0
jne 0x10080366
mov eax, dword [esp + 0x34]
cmp byte [eax + 0x1e], 0
jne 0x10080366
mov ecx, dword [esp + 0x24]
and ecx, 0x4000000
je 0x10080323
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10080323
mov dword [eax], 0
test byte [ebp + 0x18], 4
je 0x10080380
test ecx, ecx
je 0x10080380
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
and dword [edi], 0xff7fffff
mov byte [ecx + 6], 1
jmp 0x10080384
mov eax, 1
xor edx, edx
call fcn.100ccbe0
jmp 0x100802b1
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push eax
push str.cannot_use_index:__s
push ecx
call fcn.10036b20
add esp, 0xc
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
push edx
call fcn.1007fde0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x20]
push 0xffffffffffffffff
mov esi, edx
call fcn.100629f0
mov eax, dword [ebp + 0xc]
xor edx, edx
add esp, 4
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], edi
cmp dx, word [eax]
jge 0x1008082e
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x1b8], 2
jne 0x1008054c
mov edx, dword [esp + 0x14]
movzx eax, byte [edx + 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.10035f40
mov edi, dword [edi + 8]
add esp, 0xc
mov esi, eax
test edi, edi
je 0x1008040b
push edi
push esi
push str._s_AS__s
push esi
push ebx
call fcn.10035f60
add esp, 0x14
mov esi, eax
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
test eax, 0xf0000
je 0x10080430
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.10035f60
add esp, 0x14
jmp 0x10080484
test eax, 0x10000000
je 0x10080449
push esi
push str._s_VIA_MULTI_INDEX_UNION
push esi
push ebx
call fcn.10035f60
add esp, 0x10
jmp 0x10080484
test eax, 0x3000
je 0x10080462
push esi
push str._s_USING_PRIMARY_KEY
push esi
push ebx
call fcn.10035f60
add esp, 0x10
jmp 0x10080484
test eax, 0x8000000
je 0x10080486
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.10035f60
add esp, 0x18
mov esi, eax
test dword [edi], 0x1000000
je 0x100804a0
push esi
push str._s_ORDER_BY
push esi
push ebx
call fcn.10035f60
add esp, 0x10
mov esi, eax
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax + 0x28]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x18]
mov ebx, dword [ecx + 0xc]
cmp dword [ecx + 0x10], ebx
jg 0x100804c9
mov edi, ecx
call fcn.10049f80
test eax, eax
je 0x100804c7
xor ebx, ebx
jmp 0x100804f7
mov ecx, edi
mov eax, dword [ecx + 0x14]
inc dword [ecx + 0xc]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x28]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x2c]
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 0x10080542
cmp byte [edi + 0x1e], 0
jne 0x10080542
test ebx, ebx
jns 0x10080516
mov eax, dword [edx + 0xc]
dec eax
js 0x1008054c
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*4]
movsx eax, byte [ebx + 1]
mov ecx, dword [ebx + 0x10]
call fcn.1004a5d0
xor eax, eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jne 0x10080539
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], al
jmp 0x1008054c
mov dword [ebx + 0x10], esi
mov byte [ebx + 1], 0xff
jmp 0x1008054c
mov ecx, esi
or eax, 0xffffffff
call fcn.1004a5d0
mov ecx, dword [esp + 0x14]
movzx eax, byte [ecx + 0x28]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + edx*8 + 0x14]
mov ecx, dword [esi + 0x48]
lea ebx, [eax + edx*8 + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edi, 0xfff0bdc0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], edi
test ecx, ecx
je 0x100805a4
mov edx, dword [eax + 4]
xor edi, edi
mov dword [esp + 0x10], edi
test edx, edx
jle 0x100805a4
mov eax, dword [eax + 8]
add eax, 0x14
cmp dword [eax], ecx
je 0x100805a0
inc edi
add eax, 0x18
cmp edi, edx
jl 0x10080594
mov dword [esp + 0x10], edi
test byte [esi + 0x22], 2
jne 0x10080812
cmp dword [esi + 0x1c], 0
jne 0x10080812
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
test eax, 0x8000000
je 0x10080687
mov ecx, dword [ebx + 0x18]
mov ebx, dword [esp + 0x18]
mov edx, dword [esi + 0x38]
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], edx
cmp dword [ebx + 0x10], esi
jg 0x100805f2
mov edi, ebx
call fcn.10049f80
test eax, eax
je 0x100805f2
xor esi, esi
jmp 0x1008061b
mov edx, dword [ebx + 0x14]
xor ecx, ecx
inc dword [ebx + 0xc]
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x2c]
mov byte [eax + 3], cl
mov dword [eax + 4], edx
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 0x10080670
cmp byte [edi + 0x1e], 0
jne 0x10080670
test esi, esi
jns 0x10080636
mov eax, dword [ebx + 0xc]
dec eax
js 0x1008067e
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
call fcn.1004a5d0
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov dword [esi + 0x10], ecx
cmp eax, ecx
jne 0x10080664
mov dword [esi + 0x10], ecx
mov byte [esi + 1], cl
jmp 0x1008071d
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xf6
jmp 0x1008071d
mov ecx, dword [esp + 0x20]
mov eax, 0xfffffff6
call fcn.1004a5d0
mov edi, dword [esp + 0x10]
jmp 0x1008071d
test eax, 0x800000
jne 0x10080703
test byte [ebp + 0x18], 0x10
jne 0x10080703
mov ecx, dword [esp + 0x1c]
movzx edx, byte [ecx + 6]
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 0x18]
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 0xd
push edx
push esi
push edi
push eax
mov eax, dword [ebp + 8]
call fcn.10066af0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
cmp byte [ecx + 6], 0
jne 0x10080719
cmp dword [esi + 0xc], 0x40
jge 0x10080719
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x2c]
mov esi, eax
xor edx, edx
or esi, ecx
je 0x100806ed
lea ebx, [ebx]
shrd eax, ecx, 1
shr ecx, 1
mov esi, eax
inc edx
or esi, ecx
jne 0x100806e0
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 0xc]
push 0xfffffffffffffff2
push edx
dec eax
push ebx
call fcn.1004a760
add esp, 0xc
jmp 0x1008071d
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x18]
mov esi, dword [ebp + 8]
push edx
push 0
push eax
push edi
call fcn.1005d980
add esp, 0x10
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
test dword [eax], 0xf0000
mov edx, dword [ecx + 0x18]
mov dword [eax + 0x10], edx
je 0x10080802
mov esi, dword [eax + 8]
mov ecx, dword [ebp + 8]
push esi
push ecx
call fcn.10063160
mov ecx, dword [esi + 0x14]
mov edx, dword [esp + 0x1c]
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x14]
add esp, 8
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ecx
cmp dword [ebx + 0x10], esi
jg 0x10080778
mov edi, ebx
call fcn.10049f80
test eax, eax
je 0x10080774
xor esi, esi
jmp 0x100807a9
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 0x14]
inc dword [ebx + 0xc]
mov ecx, dword [esp + 0x2c]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x24]
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
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 0x100807f4
cmp byte [edi + 0x1e], 0
jne 0x100807f4
test esi, esi
jns 0x100807c4
mov eax, dword [ebx + 0xc]
dec eax
js 0x10080802
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
call fcn.1004a5d0
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov dword [esi + 0x10], ecx
cmp eax, ecx
jne 0x100807eb
mov dword [esi + 0x10], ecx
mov byte [esi + 1], cl
jmp 0x10080802
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x10080802
mov ecx, dword [esp + 0x20]
mov eax, 0xfffffff0
call fcn.1004a5d0
mov ecx, dword [esp + 0x10]
mov esi, dword [ebp + 8]
push ecx
call fcn.100629f0
add esp, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x28]
movsx ecx, word [edx]
add dword [esp + 0x14], 0x40
inc eax
mov dword [esp + 0x28], eax
cmp eax, ecx
jl 0x100803b0
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0xc]
mov edi, dword [esp + 0x1c]
mov ebx, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
xor ecx, ecx
or eax, 0xffffffff
or edx, 0xffffffff
xor esi, esi
cmp cx, word [ebx]
jge 0x10080875
lea ebx, [edi + 0x40]
push edx
mov edx, dword [ebp + 0x18]
push eax
push edx
push edi
mov ecx, esi
call fcn.1007eee0
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 0x10080851
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret