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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], ecx
movzx ecx, word [edx]
push ebx
push esi
push edi
cmp cx, 0x40
jle 0x4b9b3e
push 0x40
push str.at_most__d_tables_in_a_join
push eax
call fcn.0046b190
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebp + 0x18], 0x80
je 0x4b9b4e
mov dword [esp + 0x14], 1
jmp 0x4b9b55
movsx ecx, cx
mov dword [esp + 0x14], ecx
mov edi, dword [esp + 0x14]
mov esi, dword [eax]
shl edi, 6
add edi, 0x27
and edi, 0xfffffff8
lea ebx, [edi + 0x264]
mov ecx, ebx
mov dword [esp + 0x28], esi
call fcn.004691e0
mov dword [esp + 0x20], eax
test eax, eax
je 0x4b9b89
push ebx
push 0
push eax
call fcn.004ecd20
add esp, 0xc
cmp byte [esi + 0x1e], 0
jne 0x4ba158
mov esi, dword [esp + 0x20]
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
mov ebx, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x18], edx
mov dword [esi], ebx
call fcn.0047e950
mov cx, word [ebp + 0x18]
add edi, esi
push 0x104
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], edi
mov word [esi + 4], cx
lea esi, [edi + 0x160]
push 0
push esi
mov dword [esp + 0x3c], edi
call fcn.004ecd20
xor eax, eax
mov dword [edi], ebx
mov dword [esp + 0x6c], ebx
mov ebx, dword [ebp + 0x10]
add esp, 0xc
mov dword [edi + 0x14], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
lea edx, [edi + 0x20]
push ebx
push eax
mov dword [edi + 4], esi
mov dword [edi + 0x18], 8
mov dword [edi + 0x1c], edx
mov dword [esp + 0x60], 0x48fab0
call fcn.0048a250
push 0x45
push ebx
push edi
call fcn.004b5fc0
add esp, 0x14
test ebx, ebx
je 0x4b9c50
cmp dword [esp + 0x14], 0
je 0x4b9c39
mov eax, ebx
call fcn.0048d350
test eax, eax
je 0x4b9c50
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 8]
push 8
push edx
push ebx
push eax
call fcn.00490230
add esp, 0x10
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [esp + 0x1c], 0
cmp dx, word [ecx]
jge 0x4b9ca8
lea ebx, [ecx + 0x14]
mov eax, dword [esi]
mov edx, dword [ebx + 0xc]
mov dword [esi + eax*4 + 4], edx
inc dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x4b9c95
test byte [eax + 0x22], 0x10
je 0x4b9c95
mov ecx, dword [esp + 0x1c]
mov eax, 1
xor edx, edx
call fcn.004f00f0
or dword [edi + 8], eax
or dword [edi + 0xc], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x1c]
movsx edx, word [ecx]
inc eax
add ebx, 0x38
mov dword [esp + 0x1c], eax
cmp eax, edx
jl 0x4b9c65
mov esi, dword [edi + 0x14]
dec esi
js 0x4b9cbf
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ebx
call fcn.004b6e50
add esp, 0xc
dec esi
jns 0x4b9cb1
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x1e], 0
jne 0x4ba158
mov ebx, dword [esp + 0x20]
or eax, 0xffffffff
add ebx, 0x20
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], ebx
mov esi, ebx
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x14], eax
jle 0x4b9ffc
fld qword [0x549a58]
xor eax, eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
fstp qword [esp + 0x80]
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x54], 1
lea ebx, [ebx]
cmp dword [esp + 0x24], 0
jge 0x4b9f2c
xor eax, eax
cmp dword [esp + 0x54], eax
je 0x4b9d7d
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
jmp 0x4b9d8d
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov edi, dword [esp + 0x2c]
mov ecx, dword [ebp + 0xc]
lea eax, [edi*8]
sub eax, edi
mov esi, edi
mov dword [esp + 0x48], esi
lea ebx, [ecx + eax*8 + 8]
cmp edi, dword [esp + 0x14]
jge 0x4b9f1a
mov eax, dword [esp + 0x20]
mov edx, edi
shl edx, 6
lea ecx, [edx + eax + 0x5c]
mov dword [esp + 0x50], ecx
test byte [ebx + 0x15], 0xa
mov eax, 0
setne al
mov dword [esp + 0x6c], eax
cmp esi, edi
je 0x4b9dde
test eax, eax
jne 0x4b9f1a
mov eax, dword [esp + 0x30]
add eax, 0x160
xor ecx, ecx
mov dword [esp + 0x34], eax
cmp dword [eax], ecx
jle 0x4b9e0b
mov edx, dword [ebx + 0x18]
add eax, 4
cmp dword [eax], edx
je 0x4b9e2d
mov edi, dword [esp + 0x34]
inc ecx
add eax, 4
cmp ecx, dword [edi]
mov edi, dword [esp + 0x2c]
jl 0x4b9df7
xor eax, eax
xor edx, edx
and eax, dword [esp + 0x38]
and edx, dword [esp + 0x3c]
or eax, edx
jne 0x4b9e3b
cmp esi, edi
jne 0x4b9f03
inc edi
mov dword [esp + 0x2c], edi
jmp 0x4b9f03
mov eax, 1
xor edx, edx
call fcn.004f00f0
jmp 0x4b9e0f
cmp dword [esp + 0x1c], 0
jne 0x4b9e4d
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4b9e4d
mov eax, dword [eax]
jmp 0x4b9e4f
xor eax, eax
mov edx, dword [ebx + 0xc]
test byte [edx + 0x22], 0x10
je 0x4b9e84
mov ecx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x9c]
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x68]
push eax
mov eax, dword [ebp + 8]
push ecx
push ebx
push edx
push eax
call fcn.004b7d50
add esp, 0x20
jmp 0x4b9ea9
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x60]
push edx
mov edx, dword [ebp + 8]
push eax
push ebx
push ecx
push edx
call fcn.004b7f20
add esp, 0x1c
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
and eax, dword [esp + 0x38]
and ecx, dword [esp + 0x3c]
or eax, ecx
jne 0x4b9efc
cmp esi, edi
je 0x4b9edc
fld qword [esp + 0x80]
fcomp qword [esp + 0xa8]
fnstsw ax
test ah, 0x41
jne 0x4b9efc
mov eax, dword [esp + 0x48]
mov ecx, 0xa
lea esi, [esp + 0x98]
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov esi, eax
cmp dword [esp + 0x6c], 0
jne 0x4b9f1a
add dword [esp + 0x50], 0x40
inc esi
add ebx, 0x38
mov dword [esp + 0x48], esi
cmp esi, dword [esp + 0x14]
jl 0x4b9dc2
dec dword [esp + 0x54]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
jns 0x4b9d60
mov eax, dword [esp + 0x70]
mov ecx, dword [ebp + 8]
test eax, 0x1000000
je 0x4b9f43
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov edx, dword [esp + 0x74]
and dword [esp + 0x4c], eax
mov dword [esi], eax
mov dword [esi + 4], edx
mov edx, dword [esp + 0x78]
mov ebx, eax
and ebx, 0xf0000
mov dword [esi + 8], edx
je 0x4b9f6c
mov eax, dword [ecx + 0x44]
mov dword [esi + 0x14], eax
inc dword [ecx + 0x44]
jmp 0x4b9f73
mov dword [esi + 0x14], 0xffffffff
xor ecx, ecx
cmp dword [edi + 0x160], ecx
jle 0x4b9fab
mov edx, dword [esp + 0x24]
lea eax, [edx*8]
sub eax, edx
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + eax*8 + 0x20]
lea eax, [edi + 0x164]
cmp dword [eax], edx
je 0x4ba133
inc ecx
add eax, 4
cmp ecx, dword [edi + 0x160]
jl 0x4b9f97
xor eax, eax
xor edx, edx
not eax
and dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
not edx
and dword [esp + 0x3c], edx
mov edx, dword [ebp + 0xc]
lea ecx, [eax*8]
sub ecx, eax
mov byte [esi + 0x28], al
mov eax, dword [edx + ecx*8 + 0x3c]
test eax, eax
je 0x4b9fde
test ebx, ebx
je 0x4ba144
mov eax, dword [esp + 0x1c]
inc eax
add esi, 0x40
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
cmp eax, dword [esp + 0x14]
jl 0x4b9d01
mov ebx, dword [esp + 0x44]
mov esi, dword [ebp + 8]
cmp dword [esi + 0x40], 0
jne 0x4ba158
mov edx, dword [esp + 0x28]
cmp byte [edx + 0x1e], 0
jne 0x4ba158
mov eax, dword [esp + 0x4c]
and eax, 0x4000000
je 0x4ba02f
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4ba02f
mov dword [ecx], 0
test byte [ebp + 0x18], 4
je 0x4ba047
test eax, eax
je 0x4ba047
mov eax, dword [esp + 0x20]
and dword [ebx], 0xff7fffff
mov byte [eax + 6], 1
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x4ba053
mov esi, eax
cmp dword [esi + 0x15c], 0
jne 0x4ba097
mov edi, dword [esi + 0xc]
test edi, edi
jne 0x4ba080
mov eax, dword [esi]
call fcn.0047e540
mov edi, eax
mov dword [esi + 0xc], eax
test edi, edi
je 0x4ba097
push 0x84
call fcn.0047e710
add esp, 4
push 0
push 0
push 1
mov eax, edi
call fcn.0047e7d0
add esp, 0xc
inc eax
mov dword [esi + 0x15c], eax
cmp dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], ebx
jle 0x4ba4bd
mov edi, edi
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x1dc], 2
jne 0x4ba28c
mov edx, dword [esp + 0x18]
movzx eax, byte [edx + 0x28]
mov edx, dword [ebp + 0xc]
mov ebx, dword [esp + 0x28]
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.0046a5a0
mov edi, dword [edi + 8]
add esp, 0xc
mov esi, eax
test edi, edi
je 0x4ba10b
push edi
push esi
push str._s_AS__s
push esi
push ebx
call fcn.0046a5c0
add esp, 0x14
mov esi, eax
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
test eax, 0xf0000
je 0x4ba16e
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.0046a5c0
add esp, 0x14
jmp 0x4ba1c2
mov eax, 1
xor edx, edx
call fcn.004f00f0
jmp 0x4b9faf
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push eax
push str.cannot_use_index:__s
push ecx
call fcn.0046b190
add esp, 0xc
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
call fcn.004b9a30
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, 0x10000000
je 0x4ba187
push esi
push str._s_VIA_MULTI_INDEX_UNION
push esi
push ebx
call fcn.0046a5c0
add esp, 0x10
jmp 0x4ba1c2
test eax, 0x3000
je 0x4ba1a0
push esi
push str._s_USING_PRIMARY_KEY
push esi
push ebx
call fcn.0046a5c0
add esp, 0x10
jmp 0x4ba1c2
test eax, 0x8000000
je 0x4ba1c4
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.0046a5c0
add esp, 0x18
mov esi, eax
test dword [edi], 0x1000000
je 0x4ba1de
push esi
push str._s_ORDER_BY
push esi
push ebx
call fcn.0046a5c0
add esp, 0x10
mov esi, eax
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 0x28]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0xc]
cmp dword [ecx + 0x10], ebx
jg 0x4ba20a
mov edi, ecx
call fcn.0047e630
test eax, eax
je 0x4ba208
mov eax, 1
jmp 0x4ba23a
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 + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
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], 0x86
mov byte [ecx + 0x62], dl
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 0x14]
mov edi, dword [ecx]
test ebx, ebx
je 0x4ba282
cmp byte [edi + 0x1e], 0
jne 0x4ba282
test eax, eax
jns 0x4ba255
mov eax, dword [ecx + 0xc]
dec eax
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*4 + 0x10]
lea ebx, [ebx + eax*4]
movsx eax, byte [ebx + 1]
call fcn.0047ebd0
xor eax, eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jne 0x4ba279
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], al
jmp 0x4ba28c
mov dword [ebx + 0x10], esi
mov byte [ebx + 1], 0xff
jmp 0x4ba28c
mov ecx, esi
or eax, 0xffffffff
call fcn.0047ebd0
mov ecx, dword [esp + 0x18]
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 ebx, dword [esi + 0x44]
lea edi, [eax + edx*8 + 8]
mov eax, 0xfff0bdc0
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], eax
test ebx, ebx
je 0x4ba2e3
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 4]
xor eax, eax
mov dword [esp + 0x24], eax
test edx, edx
jle 0x4ba2e3
mov ecx, dword [ecx + 8]
add ecx, 0xc
cmp dword [ecx], ebx
je 0x4ba2df
inc eax
add ecx, 0x10
cmp eax, edx
jl 0x4ba2d3
mov dword [esp + 0x24], eax
test byte [esi + 0x22], 2
jne 0x4ba4a5
cmp dword [esi + 0x1c], 0
jne 0x4ba4a5
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
test ecx, 0x8000000
je 0x4ba3d5
mov ebx, dword [esi + 0x34]
test ebx, ebx
je 0x4ba31f
mov eax, dword [esp + 0x28]
cmp dword [ebx], eax
je 0x4ba31f
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x4ba310
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
mov esi, dword [eax + 0xc]
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x44], edx
cmp dword [eax + 0x10], esi
jg 0x4ba348
mov edi, eax
call fcn.0047e630
test eax, eax
je 0x4ba348
mov eax, 1
jmp 0x4ba378
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x14]
inc dword [ecx + 0xc]
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x44]
mov dword [eax + 4], edx
xor edx, edx
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x7c
mov byte [ecx + 0x62], dl
mov eax, esi
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0x14]
mov edi, dword [ecx]
test esi, esi
je 0x4ba458
cmp byte [edi + 0x1e], 0
jne 0x4ba458
test eax, eax
jns 0x4ba39d
mov eax, ecx
mov eax, dword [eax + 0xc]
dec eax
lea ecx, [eax + eax*4]
movsx eax, byte [esi + ecx*4 + 1]
lea esi, [esi + ecx*4]
mov ecx, dword [esi + 0x10]
call fcn.0047ebd0
mov dword [esi + 0x10], 0
test ebx, ebx
jne 0x4ba3c6
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x4ba458
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0xf6
inc dword [ebx + 0xc]
jmp 0x4ba458
test ecx, 0x800000
jne 0x4ba442
test byte [ebp + 0x18], 0x10
jne 0x4ba442
mov ebx, dword [esp + 0x20]
xor edx, edx
cmp byte [ebx + 6], dl
setne dl
add edx, 0x26
push edx
push esi
push eax
mov eax, dword [edi + 0x18]
push eax
mov eax, dword [ebp + 8]
call fcn.004a0690
add esp, 0x10
cmp byte [ebx + 6], 0
jne 0x4ba458
cmp dword [esi + 0xc], 0x40
jge 0x4ba458
mov eax, dword [edi + 0x28]
mov edx, dword [edi + 0x2c]
mov esi, eax
xor ecx, ecx
or esi, edx
je 0x4ba42d
mov edi, edi
shrd eax, edx, 1
shr edx, 1
mov esi, eax
inc ecx
or esi, edx
jne 0x4ba420
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
push 0xfffffffffffffff2
dec eax
push edx
call fcn.0047ee80
add esp, 8
jmp 0x4ba458
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x18]
push ecx
push 0
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.00494660
add esp, 0x10
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
test dword [edi], 0xf0000
mov ecx, dword [eax + 0x18]
mov dword [edi + 0x10], ecx
je 0x4ba499
mov esi, dword [edi + 8]
mov edx, dword [ebp + 8]
push esi
push edx
call fcn.00499780
mov ecx, dword [esi + 0x14]
mov edx, dword [edi + 0x14]
push 0xfffffffffffffff0
push eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push 0x26
call fcn.0047e830
add esp, 0x20
mov ebx, dword [esp + 0x24]
mov eax, dword [ebp + 8]
call fcn.004991e0
mov eax, dword [esp + 0x1c]
add dword [esp + 0x18], 0x40
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x14]
jl 0x4ba0b0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x20]
mov dword [edx + 0xc], ecx
xor esi, esi
or eax, 0xffffffff
or edx, 0xffffffff
cmp dword [esp + 0x14], esi
jle 0x4ba504
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x20]
add edi, 0x40
push edx
push eax
mov eax, dword [ebp + 0x18]
push eax
push ebx
mov ecx, esi
call fcn.004b89f0
mov ecx, dword [edi]
inc esi
add esp, 0x10
add edi, 0x40
mov dword [ebx + 0x10], ecx
cmp esi, dword [esp + 0x14]
jl 0x4ba4e4
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret