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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], eax
movzx eax, word [ecx]
cmp ax, 0x40
push edi
jle 0x4588fd
push 0x40
push str.at_most__d_tables_in_a_join
call fcn.00408990
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebp + 0x18], 0x80
je 0x45890d
mov dword [esp + 0x10], 1
jmp 0x458914
movsx edx, ax
mov dword [esp + 0x10], edx
mov edi, dword [esp + 0x10]
shl edi, 6
add edi, 0x2f
mov eax, esi
mov esi, dword [eax]
and edi, 0xfffffff8
lea ebx, [edi + 0x264]
mov ecx, ebx
mov dword [esp + 0x18], esi
call fcn.00406b00
mov dword [esp + 0x14], eax
test eax, eax
je 0x45894c
push ebx
mov ecx, eax
push 0
push ecx
call fcn.004eb2d0
add esp, 0xc
mov eax, esi
cmp byte [eax + 0x1e], 0
je 0x45896b
mov edx, dword [esp + 0x14]
push edx
push eax
call fcn.00406900
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x1c]
mov dword [esi], ecx
mov dword [esi + 8], edx
call fcn.0041ef70
mov dword [esi + 0x14], eax
mov ax, word [ebp + 0x18]
lea ebx, [esi + edi]
mov edi, dword [ebp + 8]
mov dword [esi + 0x1c], ebx
mov word [esi + 4], ax
fld qword [edi + 0x1c0]
push 0x104
fstp qword [esi + 0x20]
lea esi, [ebx + 0x160]
push 0
push esi
mov dword [esp + 0x30], ebx
call fcn.004eb2d0
mov dword [ebx + 4], esi
mov esi, dword [ebp + 0x10]
add esp, 0xc
xor eax, eax
lea edx, [esp + 0x30]
lea ecx, [ebx + 0x20]
push esi
push edx
mov dword [ebx], edi
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], 8
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [esp + 0x38], 0x42f9c0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edi
call fcn.0042a7c0
push 0x45
push esi
push ebx
call fcn.004542b0
add esp, 0x14
test esi, esi
je 0x458a34
cmp dword [esp + 0x10], 0
je 0x458a1e
mov eax, esi
call fcn.0042d790
test eax, eax
je 0x458a34
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x14]
push 8
push ecx
mov edx, edi
push esi
push edx
call fcn.00430070
add esp, 0x10
mov esi, dword [ebp + 0xc]
xor eax, eax
xor edi, edi
cmp ax, word [esi]
jge 0x458a93
add esi, 0x14
jmp 0x458a50
mov ecx, dword [ebx + 0x160]
mov edx, dword [esi + 0xc]
lea eax, [ebx + 0x160]
mov dword [eax + ecx*4 + 4], edx
inc dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x458a85
test byte [eax + 0x22], 0x10
je 0x458a85
mov eax, 1
xor edx, edx
mov ecx, edi
call fcn.0050b3a0
or dword [ebx + 8], eax
or dword [ebx + 0xc], edx
mov eax, dword [ebp + 0xc]
movsx ecx, word [eax]
inc edi
add esi, 0x38
cmp edi, ecx
jl 0x458a50
mov esi, dword [ebx + 0x14]
sub esi, 1
js 0x458ab0
mov edi, dword [ebp + 0xc]
mov edi, edi
push esi
push ebx
push edi
call fcn.00455050
add esp, 0xc
sub esi, 1
jns 0x458aa0
mov edx, dword [esp + 0x18]
cmp byte [edx + 0x1e], 0
jne 0x458f61
mov edi, dword [esp + 0x14]
or eax, 0xffffffff
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], eax
xor eax, eax
add edi, 0x28
cmp dword [esp + 0x10], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0xc], edi
jle 0x458e11
xor eax, eax
fld qword [0x52e7b8]
mov esi, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
fstp qword [esp + 0x68]
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 + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x10]
xor ecx, ecx
dec eax
cmp dword [esp + 0x40], eax
mov dword [esp + 0x28], 0xffffffff
setl cl
mov dword [esp + 0x58], esi
mov eax, ecx
mov dword [esp + 0x4c], eax
test eax, eax
jl 0x458d10
mov edi, dword [esp + 0x40]
mov eax, dword [ebp + 0xc]
lea edx, [edi*8]
sub edx, edi
cmp edi, dword [esp + 0x10]
mov dword [esp + 0x2c], edi
lea ebx, [eax + edx*8 + 8]
jge 0x458cf9
mov edx, dword [esp + 0x14]
mov ecx, edi
shl ecx, 6
lea eax, [ecx + edx + 0x64]
mov dword [esp + 0x50], eax
test byte [ebx + 0x15], 0xa
mov eax, 0
setne al
mov dword [esp + 0x48], eax
cmp dword [esp + 0x2c], edi
je 0x458b9b
test eax, eax
jne 0x458cf9
mov esi, dword [esp + 0x24]
xor ecx, ecx
add esi, 0x160
cmp dword [esi], ecx
jle 0x458bbd
mov edx, dword [ebx + 0x18]
lea eax, [esi + 4]
cmp dword [eax], edx
je 0x458be5
inc ecx
add eax, 4
cmp ecx, dword [esi]
jl 0x458bb1
xor eax, eax
xor edx, edx
mov ecx, eax
and ecx, dword [esp + 0x30]
mov esi, edx
and esi, dword [esp + 0x34]
or ecx, esi
jne 0x458bf3
cmp dword [esp + 0x2c], edi
jne 0x458cde
inc edi
mov dword [esp + 0x40], edi
jmp 0x458cde
mov eax, 1
xor edx, edx
call fcn.0050b3a0
jmp 0x458bc1
cmp dword [esp + 0x4c], 0
je 0x458bfe
mov ecx, eax
jmp 0x458c06
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x20], 0
jne 0x458c18
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x458c18
mov eax, dword [eax]
jmp 0x458c1a
xor eax, eax
mov esi, dword [ebx + 0xc]
test byte [esi + 0x22], 0x10
je 0x458c47
mov esi, dword [esp + 0x50]
push esi
lea esi, [esp + 0x84]
push esi
push eax
push edx
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x38]
push ebx
push ecx
push edx
call fcn.004569b0
add esp, 0x20
jmp 0x458c64
lea esi, [esp + 0x80]
push esi
push eax
mov eax, dword [esp + 0x2c]
push edx
push ecx
mov ecx, dword [ebp + 8]
push ebx
push eax
push ecx
call fcn.00456ba0
add esp, 0x1c
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
and eax, dword [esp + 0x30]
and ecx, dword [esp + 0x34]
or eax, ecx
jne 0x458cd7
cmp dword [esp + 0x28], eax
jl 0x458cb9
fld qword [esp + 0x68]
fld qword [esp + 0x90]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x458cb5
fcompp
fnstsw ax
test ah, 0x41
jp 0x458cd7
fld qword [esp + 0x70]
fcomp qword [esp + 0x98]
fnstsw ax
test ah, 0x41
jne 0x458cd7
jmp 0x458cb9
fstp st(1)
fstp st(0)
mov edx, dword [esp + 0x2c]
mov ecx, 0xa
lea esi, [esp + 0x80]
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x28], edx
cmp dword [esp + 0x48], 0
jne 0x458cf9
mov eax, dword [esp + 0x2c]
add dword [esp + 0x50], 0x40
inc eax
add ebx, 0x38
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
jl 0x458b7d
sub dword [esp + 0x4c], 1
jns 0x458b4e
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
test esi, 0x1000000
je 0x458d21
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [esp + 0x5c]
and dword [esp + 0x44], esi
mov edx, dword [esp + 0x60]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
test esi, 0x200f0000
je 0x458d4b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x44]
mov dword [edi + 0x14], ecx
inc dword [eax + 0x44]
jmp 0x458d52
mov dword [edi + 0x14], 0xffffffff
xor ecx, ecx
cmp dword [ebx + 0x160], ecx
jle 0x458d8a
mov edx, dword [esp + 0x28]
lea eax, [edx*8]
sub eax, edx
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + eax*8 + 0x20]
lea eax, [ebx + 0x164]
cmp dword [eax], edx
je 0x458dc3
mov edi, dword [esp + 0xc]
inc ecx
add eax, 4
cmp ecx, dword [ebx + 0x160]
jl 0x458d76
xor eax, eax
xor edx, edx
fld1
mov ecx, dword [esp + 0x28]
fld qword [esp + 0x70]
not eax
and dword [esp + 0x30], eax
fcom st(1)
not edx
and dword [esp + 0x34], edx
mov byte [edi + 0x28], cl
fnstsw ax
fstp st(1)
test ah, 1
jne 0x458dd1
mov eax, dword [ebp + 8]
fmul qword [eax + 0x1c0]
fstp qword [eax + 0x1c0]
jmp 0x458dd3
mov eax, 1
xor edx, edx
call fcn.0050b3a0
jmp 0x458d8e
fstp st(0)
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*8 + 0x3c]
test eax, eax
je 0x458df3
test esi, 0xf0000
je 0x458f4e
mov eax, dword [esp + 0x20]
inc eax
add edi, 0x40
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], edi
jl 0x458af0
mov edi, dword [esp + 0x54]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x40], 0
jne 0x458f61
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x1e], 0
jne 0x458f61
mov eax, dword [esp + 0x44]
and eax, 0x4000000
je 0x458e44
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x458e44
mov dword [edx], 0
test byte [ebp + 0x18], 4
je 0x458e5c
test eax, eax
je 0x458e5c
mov edx, dword [esp + 0x14]
and dword [edi], 0xff7fffff
mov byte [edx + 6], 1
mov esi, dword [ecx + 0x1a8]
test esi, esi
jne 0x458e68
mov esi, ecx
cmp dword [esi + 0x15c], 0
jne 0x458eac
mov edi, dword [esi + 0xc]
test edi, edi
jne 0x458e95
mov eax, dword [esi]
call fcn.0041eb60
mov edi, eax
mov dword [esi + 0xc], eax
test edi, edi
je 0x458eac
push 0x87
call fcn.0041ed30
add esp, 4
push 0
push 0
push 1
mov eax, edi
call fcn.0041edf0
add esp, 0xc
inc eax
mov dword [esi + 0x15c], eax
or eax, 0xffffffff
cmp dword [esp + 0x10], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], eax
jle 0x4592b8
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x1e8], 2
jne 0x4590c5
mov edx, dword [esp + 0xc]
movzx eax, byte [edx + 0x28]
mov edx, dword [ebp + 0xc]
mov edi, dword [esp + 0x18]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edx + ecx*8 + 0xc]
lea ebx, [edx + ecx*8 + 8]
push eax
push str.TABLE__s
call fcn.00407e30
mov ebx, dword [ebx + 8]
add esp, 8
mov esi, eax
test ebx, ebx
je 0x458f2c
push ebx
push esi
push str._s_AS__s
mov eax, edi
call fcn.00407e50
add esp, 0xc
mov esi, eax
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx]
test eax, 0x20000000
je 0x458f87
push esi
push str._s_WITH_AUTOMATIC_INDEX
mov eax, edi
call fcn.00407e50
add esp, 8
jmp 0x458ffa
mov edx, dword [eax]
mov esi, dword [ebp + 8]
push edx
push str.cannot_use_index:__s
call fcn.00408990
add esp, 8
mov eax, dword [esp + 0x14]
fld qword [eax + 0x20]
mov edx, dword [ebp + 8]
mov esi, dword [esp + 0x18]
fstp qword [edx + 0x1c0]
push eax
call fcn.00458770
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, 0xf0000
je 0x458fa6
mov ecx, dword [ebx + 8]
mov edx, dword [ecx]
push edx
push esi
push str._s_WITH_INDEX__s
mov eax, edi
call fcn.00407e50
add esp, 0xc
jmp 0x458ffa
test eax, 0x10000000
je 0x458fbf
push esi
push str._s_VIA_MULTI_INDEX_UNION
mov eax, edi
call fcn.00407e50
add esp, 8
jmp 0x458ffa
test eax, 0x3000
je 0x458fd8
push esi
push str._s_USING_PRIMARY_KEY
mov eax, edi
call fcn.00407e50
add esp, 8
jmp 0x458ffa
test eax, 0x8000000
je 0x458ffc
mov eax, dword [ebx + 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
mov eax, edi
call fcn.00407e50
add esp, 0x10
mov esi, eax
test dword [ebx], 0x1000000
je 0x459016
push esi
push str._s_ORDER_BY
mov eax, edi
call fcn.00407e50
add esp, 8
mov esi, eax
mov eax, dword [esp + 0xc]
movzx ecx, byte [eax + 0x28]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx + 0xc]
cmp dword [ecx + 0x10], ebx
jg 0x459042
mov edi, ecx
call fcn.0041ec50
test eax, eax
je 0x459040
mov eax, 1
jmp 0x459073
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 + 0x20]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 8], edx
xor edx, edx
mov byte [eax], 0x89
mov byte [eax + 3], 0
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov byte [ecx + 0x62], dl
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx + 0x14]
mov edi, dword [ecx]
test ebx, ebx
je 0x4590bb
cmp byte [edi + 0x1e], 0
jne 0x4590bb
test eax, eax
jge 0x45908e
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.0041f1f0
xor eax, eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jne 0x4590b2
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], al
jmp 0x4590c5
mov dword [ebx + 0x10], esi
mov byte [ebx + 1], 0xff
jmp 0x4590c5
mov ecx, esi
or eax, 0xffffffff
call fcn.0041f1f0
mov edx, dword [esp + 0xc]
movzx eax, byte [edx + 0x28]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + ecx*8 + 0x14]
lea edi, [eax + ecx*8 + 8]
mov ecx, dword [edi + 0x18]
mov dword [edx + 0x10], ecx
mov eax, dword [esi + 0x44]
mov ebx, 0xfff0bdc0
test eax, eax
je 0x45911b
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
xor ebx, ebx
test ecx, ecx
jle 0x45911b
mov edx, eax
mov eax, dword [edx + 8]
add eax, 0xc
mov edx, dword [esi + 0x44]
cmp dword [eax], edx
je 0x459117
inc ebx
add eax, 0x10
cmp ebx, ecx
jl 0x459108
mov edx, dword [esp + 0xc]
test byte [esi + 0x22], 2
jne 0x4591fc
cmp dword [esi + 0x1c], 0
jne 0x4591fc
mov edx, dword [edx]
test edx, 0x8000000
je 0x45916d
mov eax, dword [esi + 0x34]
test eax, eax
je 0x45914f
mov ecx, dword [eax]
cmp ecx, dword [esp + 0x18]
je 0x45914f
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x459140
mov edx, dword [edi + 0x18]
push 0xfffffffffffffff6
push eax
mov eax, dword [esp + 0x24]
push 0
push 0
push edx
push 0x7f
call fcn.0041ee50
add esp, 0x18
jmp 0x4591fc
test edx, 0x800000
jne 0x4591e6
test byte [ebp + 0x18], 0x10
jne 0x4591e6
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x18]
xor eax, eax
cmp byte [ecx + 6], al
mov ecx, dword [ebp + 8]
setne al
add eax, 0x26
push eax
push ebx
push edx
mov eax, esi
call fcn.0043f8c0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp byte [eax + 6], 0
jne 0x4591fc
cmp dword [esi + 0xc], 0x40
jge 0x4591fc
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
mov esi, eax
xor edx, edx
or esi, ecx
je 0x4591cd
jmp 0x4591c0
shrd eax, ecx, 1
shr ecx, 1
mov esi, eax
inc edx
or esi, ecx
jne 0x4591c0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0xc]
push edx
push ecx
dec eax
mov ecx, 0xfffffff2
call fcn.0041f390
add esp, 8
jmp 0x4591fc
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x18]
mov eax, dword [ebp + 8]
push ecx
push 0
push edx
push ebx
call fcn.00433ff0
add esp, 0x10
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
test eax, 0x20000000
je 0x45922c
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [ebp + 8]
push eax
push edi
push ecx
push edx
call fcn.00455d60
add esp, 0x18
jmp 0x459262
test eax, 0xf0000
je 0x459262
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 8]
mov ecx, dword [ebp + 8]
push esi
push ecx
call fcn.00439080
mov edx, dword [esi + 0x14]
push 0xfffffffffffffff0
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x14]
mov eax, dword [esp + 0x2c]
push ebx
push edx
push ecx
push 0x26
call fcn.0041ee50
add esp, 0x20
mov eax, dword [ebp + 8]
call fcn.00438bd0
mov edx, dword [esp + 0x24]
mov edx, dword [edx + 4]
mov eax, dword [edx]
xor ecx, ecx
test eax, eax
jle 0x459290
mov edi, dword [edi + 0x18]
add edx, 4
nop
cmp dword [edx], edi
je 0x459311
inc ecx
add edx, 4
cmp ecx, eax
jl 0x459280
xor eax, eax
xor edx, edx
add dword [esp + 0xc], 0x40
not eax
and dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
not edx
and dword [esp + 0x34], edx
inc eax
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
jl 0x458ed2
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx + 0xc], ecx
cmp byte [eax + 0x1e], 0
jne 0x458f61
mov ebx, dword [esp + 0x14]
xor esi, esi
or eax, 0xffffffff
or edx, 0xffffffff
cmp dword [esp + 0x10], esi
jle 0x459308
lea edi, [ebx + 0x48]
mov ecx, dword [ebp + 0x18]
push edx
push eax
push ecx
push esi
push ebx
call fcn.00457770
mov ecx, dword [edi]
inc esi
add esp, 0x14
add edi, 0x40
cmp esi, dword [esp + 0x10]
mov dword [ebx + 0x10], ecx
jl 0x4592e9
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
xor edx, edx
call fcn.0050b3a0
jmp 0x459294