Function at 0x4a7c70
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 0x4a7cae
push 0x40
push str.at_most__d_tables_in_a_join
push eax
call fcn.00459300
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebp + 0x18], 0x80
je 0x4a7cbe
mov dword [esp + 0x14], 1
jmp 0x4a7cc5
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.00457350
mov dword [esp + 0x20], eax
test eax, eax
je 0x4a7cf9
push ebx
push 0
push eax
call fcn.004da410
add esp, 0xc
cmp byte [esi + 0x1e], 0
jne 0x4a82c8
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.0046cae0
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.004da410
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], 0x47dc20
call fcn.004783c0
push 0x45
push ebx
push edi
call fcn.004a4130
add esp, 0x14
test ebx, ebx
je 0x4a7dc0
cmp dword [esp + 0x14], 0
je 0x4a7da9
mov eax, ebx
call fcn.0047b4c0
test eax, eax
je 0x4a7dc0
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.0047e3a0
add esp, 0x10
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dword [esp + 0x1c], 0
cmp dx, word [ecx]
jge 0x4a7e18
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 0x4a7e05
test byte [eax + 0x22], 0x10
je 0x4a7e05
mov ecx, dword [esp + 0x1c]
mov eax, 1
xor edx, edx
call fcn.004dd7e0
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 0x4a7dd5
mov esi, dword [edi + 0x14]
dec esi
js 0x4a7e2f
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ebx
call fcn.004a4fc0
add esp, 0xc
dec esi
jns 0x4a7e21
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x1e], 0
jne 0x4a82c8
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 0x4a816c
fld qword [0x533b08]
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 0x4a809c
xor eax, eax
cmp dword [esp + 0x54], eax
je 0x4a7eed
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
jmp 0x4a7efd
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 0x4a808a
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 0x4a7f4e
test eax, eax
jne 0x4a808a
mov eax, dword [esp + 0x30]
add eax, 0x160
xor ecx, ecx
mov dword [esp + 0x34], eax
cmp dword [eax], ecx
jle 0x4a7f7b
mov edx, dword [ebx + 0x18]
add eax, 4
cmp dword [eax], edx
je 0x4a7f9d
mov edi, dword [esp + 0x34]
inc ecx
add eax, 4
cmp ecx, dword [edi]
mov edi, dword [esp + 0x2c]
jl 0x4a7f67
xor eax, eax
xor edx, edx
and eax, dword [esp + 0x38]
and edx, dword [esp + 0x3c]
or eax, edx
jne 0x4a7fab
cmp esi, edi
jne 0x4a8073
inc edi
mov dword [esp + 0x2c], edi
jmp 0x4a8073
mov eax, 1
xor edx, edx
call fcn.004dd7e0
jmp 0x4a7f7f
cmp dword [esp + 0x1c], 0
jne 0x4a7fbd
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4a7fbd
mov eax, dword [eax]
jmp 0x4a7fbf
xor eax, eax
mov edx, dword [ebx + 0xc]
test byte [edx + 0x22], 0x10
je 0x4a7ff4
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.004a5ec0
add esp, 0x20
jmp 0x4a8019
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.004a6090
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 0x4a806c
cmp esi, edi
je 0x4a804c
fld qword [esp + 0x80]
fcomp qword [esp + 0xa8]
fnstsw ax
test ah, 0x41
jne 0x4a806c
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 0x4a808a
add dword [esp + 0x50], 0x40
inc esi
add ebx, 0x38
mov dword [esp + 0x48], esi
cmp esi, dword [esp + 0x14]
jl 0x4a7f32
dec dword [esp + 0x54]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
jns 0x4a7ed0
mov eax, dword [esp + 0x70]
mov ecx, dword [ebp + 8]
test eax, 0x1000000
je 0x4a80b3
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 0x4a80dc
mov eax, dword [ecx + 0x44]
mov dword [esi + 0x14], eax
inc dword [ecx + 0x44]
jmp 0x4a80e3
mov dword [esi + 0x14], 0xffffffff
xor ecx, ecx
cmp dword [edi + 0x160], ecx
jle 0x4a811b
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 0x4a82a3
inc ecx
add eax, 4
cmp ecx, dword [edi + 0x160]
jl 0x4a8107
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 0x4a814e
test ebx, ebx
je 0x4a82b4
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 0x4a7e71
mov ebx, dword [esp + 0x44]
mov esi, dword [ebp + 8]
cmp dword [esi + 0x40], 0
jne 0x4a82c8
mov edx, dword [esp + 0x28]
cmp byte [edx + 0x1e], 0
jne 0x4a82c8
mov eax, dword [esp + 0x4c]
and eax, 0x4000000
je 0x4a819f
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4a819f
mov dword [ecx], 0
test byte [ebp + 0x18], 4
je 0x4a81b7
test eax, eax
je 0x4a81b7
mov eax, dword [esp + 0x20]
and dword [ebx], 0xff7fffff
mov byte [eax + 6], 1
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x4a81c3
mov esi, eax
cmp dword [esi + 0x15c], 0
jne 0x4a8207
mov edi, dword [esi + 0xc]
test edi, edi
jne 0x4a81f0
mov eax, dword [esi]
call fcn.0046c6d0
mov edi, eax
mov dword [esi + 0xc], eax
test edi, edi
je 0x4a8207
push 0x84
call fcn.0046c8a0
add esp, 4
push 0
push 0
push 1
mov eax, edi
call fcn.0046c960
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 0x4a862d
mov edi, edi
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x1dc], 2
jne 0x4a83fc
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.00458710
mov edi, dword [edi + 8]
add esp, 0xc
mov esi, eax
test edi, edi
je 0x4a827b
push edi
push esi
push str._s_AS__s
push esi
push ebx
call fcn.00458730
add esp, 0x14
mov esi, eax
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
test eax, 0xf0000
je 0x4a82de
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.00458730
add esp, 0x14
jmp 0x4a8332
mov eax, 1
xor edx, edx
call fcn.004dd7e0
jmp 0x4a811f
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push eax
push str.cannot_use_index:__s
push ecx
call fcn.00459300
add esp, 0xc
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
call fcn.004a7ba0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, 0x10000000
je 0x4a82f7
push esi
push str._s_VIA_MULTI_INDEX_UNION
push esi
push ebx
call fcn.00458730
add esp, 0x10
jmp 0x4a8332
test eax, 0x3000
je 0x4a8310
push esi
push str._s_USING_PRIMARY_KEY
push esi
push ebx
call fcn.00458730
add esp, 0x10
jmp 0x4a8332
test eax, 0x8000000
je 0x4a8334
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.00458730
add esp, 0x18
mov esi, eax
test dword [edi], 0x1000000
je 0x4a834e
push esi
push str._s_ORDER_BY
push esi
push ebx
call fcn.00458730
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 0x4a837a
mov edi, ecx
call fcn.0046c7c0
test eax, eax
je 0x4a8378
mov eax, 1
jmp 0x4a83aa
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 0x4a83f2
cmp byte [edi + 0x1e], 0
jne 0x4a83f2
test eax, eax
jns 0x4a83c5
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.0046cd60
xor eax, eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jne 0x4a83e9
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], al
jmp 0x4a83fc
mov dword [ebx + 0x10], esi
mov byte [ebx + 1], 0xff
jmp 0x4a83fc
mov ecx, esi
or eax, 0xffffffff
call fcn.0046cd60
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 0x4a8453
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 4]
xor eax, eax
mov dword [esp + 0x24], eax
test edx, edx
jle 0x4a8453
mov ecx, dword [ecx + 8]
add ecx, 0xc
cmp dword [ecx], ebx
je 0x4a844f
inc eax
add ecx, 0x10
cmp eax, edx
jl 0x4a8443
mov dword [esp + 0x24], eax
test byte [esi + 0x22], 2
jne 0x4a8615
cmp dword [esi + 0x1c], 0
jne 0x4a8615
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
test ecx, 0x8000000
je 0x4a8545
mov ebx, dword [esi + 0x34]
test ebx, ebx
je 0x4a848f
mov eax, dword [esp + 0x28]
cmp dword [ebx], eax
je 0x4a848f
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x4a8480
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 0x4a84b8
mov edi, eax
call fcn.0046c7c0
test eax, eax
je 0x4a84b8
mov eax, 1
jmp 0x4a84e8
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 0x4a85c8
cmp byte [edi + 0x1e], 0
jne 0x4a85c8
test eax, eax
jns 0x4a850d
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.0046cd60
mov dword [esi + 0x10], 0
test ebx, ebx
jne 0x4a8536
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x4a85c8
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0xf6
inc dword [ebx + 0xc]
jmp 0x4a85c8
test ecx, 0x800000
jne 0x4a85b2
test byte [ebp + 0x18], 0x10
jne 0x4a85b2
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.0048e7f0
add esp, 0x10
cmp byte [ebx + 6], 0
jne 0x4a85c8
cmp dword [esi + 0xc], 0x40
jge 0x4a85c8
mov eax, dword [edi + 0x28]
mov edx, dword [edi + 0x2c]
mov esi, eax
xor ecx, ecx
or esi, edx
je 0x4a859d
mov edi, edi
shrd eax, edx, 1
shr edx, 1
mov esi, eax
inc ecx
or esi, edx
jne 0x4a8590
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
push 0xfffffffffffffff2
dec eax
push edx
call fcn.0046d010
add esp, 8
jmp 0x4a85c8
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.004827d0
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 0x4a8609
mov esi, dword [edi + 8]
mov edx, dword [ebp + 8]
push esi
push edx
call fcn.004878e0
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.0046c9c0
add esp, 0x20
mov ebx, dword [esp + 0x24]
mov eax, dword [ebp + 8]
call fcn.00487340
mov eax, dword [esp + 0x1c]
add dword [esp + 0x18], 0x40
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x14]
jl 0x4a8220
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 0x4a8674
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.004a6b60
mov ecx, dword [edi]
inc esi
add esp, 0x10
add edi, 0x40
mov dword [ebx + 0x10], ecx
cmp esi, dword [esp + 0x14]
jl 0x4a8654
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret