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

Disassembly:
sub esp, 0x84
mov ecx, dword [esp + 0x8c]
push esi
mov esi, dword [esp + 0x8c]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], eax
movzx eax, word [ecx]
cmp ax, 0x40
jle 0x4b357e
push 0x40
push str.at_most__d_tables_in_a_join
call fcn.0048ef40
add esp, 8
xor eax, eax
pop esi
add esp, 0x84
ret
mov esi, dword [esi]
push ebx
push edi
movsx edi, ax
shl edi, 6
add edi, 0x27
and edi, 0xfffffff8
lea ebx, [edi + 0x264]
mov ecx, ebx
mov dword [esp + 0x28], esi
call fcn.004878c0
mov dword [esp + 0x18], eax
test eax, eax
je 0x4b35b3
push ebx
push 0
push eax
call fcn.0050aaf0
add esp, 0xc
cmp byte [esi + 0x1e], 0
push ebp
jne 0x4b3b3c
mov eax, dword [esp + 0x9c]
movsx edx, word [eax]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x98]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x18], edx
mov dword [ebx], ebp
call fcn.0048a130
add edi, ebx
push 0x104
mov dword [ebx + 0x14], eax
mov ax, word [esp + 0xac]
lea esi, [edi + 0x160]
push 0
push esi
mov dword [esp + 0x34], edi
mov dword [ebx + 0x1c], edi
mov word [ebx + 4], ax
call fcn.0050aaf0
mov dword [edi + 4], esi
mov esi, dword [esp + 0xac]
xor eax, eax
lea edx, [esp + 0x4c]
lea ecx, [edi + 0x20]
push esi
push edx
mov dword [edi], ebp
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 8
mov dword [edi + 0x1c], ecx
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [esp + 0x54], 0x4b19e0
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebp
call fcn.0048acd0
push 0x43
push esi
push edi
call fcn.0048d1d0
mov edi, dword [esp + 0xbc]
add esp, 0x20
test esi, esi
je 0x4b3686
cmp word [edi], 0
je 0x4b3676
mov eax, esi
call fcn.0048b340
test eax, eax
je 0x4b3686
mov eax, dword [ebx + 0x14]
push 8
push eax
push esi
push ebp
call fcn.004a27a0
add esp, 0x10
mov esi, dword [esp + 0x28]
xor ecx, ecx
xor ebp, ebp
cmp cx, word [edi]
jge 0x4b36e0
lea ebx, [edi + 0x14]
jmp 0x4b36a0
mov edx, dword [esi + 0x160]
mov ecx, dword [ebx + 0xc]
lea eax, [esi + 0x160]
mov dword [eax + edx*4 + 4], ecx
inc dword [eax]
mov eax, dword [ebx]
test eax, eax
je 0x4b36d5
test byte [eax + 0x22], 0x10
je 0x4b36d5
mov eax, 1
xor edx, edx
mov ecx, ebp
call fcn.00510120
or dword [esi + 8], eax
or dword [esi + 0xc], edx
movsx edx, word [edi]
inc ebp
add ebx, 0x38
cmp ebp, edx
jl 0x4b36a0
mov ebx, dword [esi + 0x14]
sub ebx, 1
js 0x4b36f8
push ebx
push esi
push edi
call fcn.004a6be0
add esp, 0xc
sub ebx, 1
jns 0x4b36e8
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x1e], 0
jne 0x4b3b3c
mov ecx, dword [esp + 0x9c]
movsx ecx, word [ecx]
mov ebx, dword [esp + 0x1c]
or eax, 0xffffffff
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], eax
xor eax, eax
add ebx, 0x20
cmp ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x10], ebx
jle 0x4b39d6
mov edx, dword [esp + 0x14]
fld qword [0x557ed0]
mov ebx, dword [esp + 0x9c]
xor eax, eax
xor edi, edi
lea esi, [edx*8]
sub esi, edx
cmp edx, ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
fstp qword [esp + 0x64]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov ebp, edx
lea ebx, [ebx + esi*8 + 8]
jge 0x4b38e8
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x40]
shl edx, 6
lea ecx, [edx + eax + 0x5c]
mov dword [esp + 0x3c], ecx
jmp 0x4b37b0
test byte [ebx + 0x15], 0xa
mov eax, 0
setne al
cmp dword [esp + 0x34], 0
mov dword [esp + 0x50], eax
je 0x4b37cf
test eax, eax
jne 0x4b38e0
mov edi, dword [esp + 0x28]
xor ecx, ecx
add edi, 0x160
cmp dword [edi], ecx
jle 0x4b37f1
mov edx, dword [ebx + 0x18]
lea eax, [edi + 4]
cmp dword [eax], edx
je 0x4b3814
inc ecx
add eax, 4
cmp ecx, dword [edi]
jl 0x4b37e5
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x44]
and eax, esi
and edx, ecx
or eax, edx
jne 0x4b3822
cmp ebp, dword [esp + 0x14]
jne 0x4b38c5
inc dword [esp + 0x14]
jmp 0x4b38c5
mov eax, 1
xor edx, edx
call fcn.00510120
jmp 0x4b37f5
cmp dword [esp + 0x24], 0
jne 0x4b3838
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x4b3838
mov eax, dword [eax]
jmp 0x4b383a
xor eax, eax
mov edx, dword [ebx + 0xc]
test byte [edx + 0x22], 0x10
je 0x4b3868
mov edx, dword [esp + 0x3c]
push edx
lea edx, [esp + 0x78]
push edx
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0xa8]
push esi
push ebx
push eax
push ecx
call fcn.004af420
add esp, 0x20
jmp 0x4b3886
lea edx, [esp + 0x74]
push edx
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0xa4]
push esi
push ebx
push eax
push ecx
call fcn.004a7470
add esp, 0x1c
cmp dword [esp + 0x34], 0
je 0x4b389f
fld qword [esp + 0x64]
fcomp qword [esp + 0x84]
fnstsw ax
test ah, 0x41
jne 0x4b38be
mov ecx, 8
lea esi, [esp + 0x74]
lea edi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], ebp
cmp dword [esp + 0x50], 0
jne 0x4b38e0
mov edx, dword [esp + 0x9c]
movsx eax, word [edx]
add dword [esp + 0x3c], 0x40
inc ebp
add ebx, 0x38
cmp ebp, eax
jl 0x4b37b0
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x30]
test eax, 0x1000000
je 0x4b38fc
mov ecx, dword [esp + 0xa4]
mov dword [ecx], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
and dword [esp + 0x18], eax
mov ebp, dword [esp + 0x98]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x5c]
mov esi, eax
and esi, 0xf0000
mov dword [ecx + 8], edx
je 0x4b3930
mov eax, dword [ebp + 0x44]
mov dword [ecx + 0x14], eax
inc dword [ebp + 0x44]
jmp 0x4b393b
mov edx, dword [esp + 0x10]
mov dword [edx + 0x14], 0xffffffff
mov edx, dword [esp + 0x28]
xor ecx, ecx
add edx, 0x160
cmp dword [edx], ecx
jle 0x4b397e
lea eax, [edi*8]
sub eax, edi
mov edi, dword [esp + 0x9c]
mov ebx, dword [edi + eax*8 + 0x20]
lea eax, [edx + 4]
cmp dword [eax], ebx
je 0x4b3970
inc ecx
add eax, 4
cmp ecx, dword [edx]
jl 0x4b3962
jmp 0x4b3985
mov eax, 1
xor edx, edx
call fcn.00510120
jmp 0x4b3989
mov edi, dword [esp + 0x9c]
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x10]
not eax
and dword [esp + 0x40], eax
mov eax, dword [esp + 0x30]
not edx
and dword [esp + 0x44], edx
lea edx, [eax*8]
sub edx, eax
mov byte [ecx + 0x28], al
mov eax, dword [edi + edx*8 + 0x3c]
test eax, eax
je 0x4b39b9
test esi, esi
je 0x4b3b2a
mov eax, dword [esp + 0x24]
movsx ecx, word [edi]
add dword [esp + 0x10], 0x40
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x4b3740
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x98]
cmp dword [ecx + 0x40], 0
jne 0x4b3b3c
mov edx, dword [esp + 0x2c]
cmp byte [edx + 0x1e], 0
jne 0x4b3b3c
mov eax, dword [esp + 0x18]
and eax, 0x4000000
je 0x4b3a11
mov ecx, dword [esp + 0xa4]
test ecx, ecx
je 0x4b3a11
mov dword [ecx], 0
test byte [esp + 0xa8], 4
je 0x4b3a2d
test eax, eax
je 0x4b3a2d
mov eax, dword [esp + 0x1c]
and dword [ebx], 0xff7fffff
mov byte [eax + 6], 1
mov edi, dword [esp + 0x98]
mov esi, dword [edi + 0xc]
test esi, esi
jne 0x4b3a55
mov eax, dword [edi]
call fcn.00490350
mov esi, eax
mov dword [edi + 0xc], eax
test esi, esi
je 0x4b3a75
push 0x15
call fcn.0048a030
add esp, 4
cmp dword [edi + 0x158], 0
jne 0x4b3a75
push 0
push 0
push 0x60
mov eax, esi
call fcn.0048a0d0
add esp, 0xc
inc eax
mov dword [edi + 0x158], eax
mov edx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x20]
xor ecx, ecx
cmp cx, word [edx]
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], ebx
jge 0x4b3f55
jmp 0x4b3aa0
mov eax, dword [esp + 0x98]
cmp byte [eax + 0x1bc], 2
jne 0x4b3c6a
mov ecx, dword [esp + 0x10]
movzx eax, byte [ecx + 0x28]
mov edi, dword [esp + 0x2c]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax + edx*8 + 0xc]
lea ebx, [eax + edx*8 + 8]
push ecx
push str.TABLE__s
call fcn.0048ed80
mov ebx, dword [ebx + 8]
add esp, 8
mov esi, eax
test ebx, ebx
je 0x4b3b02
push ebx
push esi
push str._s_AS__s
mov eax, edi
call fcn.0048eda0
add esp, 0xc
mov esi, eax
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx]
test eax, 0xf0000
je 0x4b3b56
mov edx, dword [ebx + 8]
mov eax, dword [edx]
push eax
push esi
push str._s_WITH_INDEX__s
mov eax, edi
call fcn.0048eda0
add esp, 0xc
jmp 0x4b3baa
mov eax, dword [eax]
push eax
push str.cannot_use_index:__s
mov esi, ebp
call fcn.0048ef40
add esp, 8
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
call fcn.0048d4a0
pop ebp
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x84
ret
test eax, 0x10000000
je 0x4b3b6f
push esi
push str._s_VIA_MULTI_INDEX_UNION
mov eax, edi
call fcn.0048eda0
add esp, 8
jmp 0x4b3baa
test eax, 0x3000
je 0x4b3b88
push esi
push str._s_USING_PRIMARY_KEY
mov eax, edi
call fcn.0048eda0
add esp, 8
jmp 0x4b3baa
test eax, 0x8000000
je 0x4b3bac
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.0048eda0
add esp, 0x10
mov esi, eax
test dword [ebx], 0x1000000
je 0x4b3bc6
push esi
push str._s_ORDER_BY
mov eax, edi
call fcn.0048eda0
add esp, 8
mov esi, eax
movzx eax, byte [ebx + 0x28]
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], ebx
mov dword [esp + 0x38], eax
jg 0x4b3be8
mov edi, ebp
call fcn.00489f50
test eax, eax
je 0x4b3be8
mov ebx, 1
jmp 0x4b3c17
mov edx, dword [ebp + 0x14]
inc dword [ebp + 0xc]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x73
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [ebp + 0x6e], cl
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp]
mov eax, ebx
test ecx, ecx
je 0x4b3c60
cmp byte [edi + 0x1e], 0
jne 0x4b3c60
test ebx, ebx
jge 0x4b3c31
mov eax, dword [ebp + 0xc]
dec eax
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*4]
movsx eax, byte [ebx + 1]
mov ecx, dword [ebx + 0x10]
call fcn.0048a410
mov dword [ebx + 0x10], 0
test esi, esi
jne 0x4b3c57
mov dword [ebx + 0x10], esi
mov byte [ebx + 1], 0
jmp 0x4b3c6a
mov dword [ebx + 0x10], esi
mov byte [ebx + 1], 0xff
jmp 0x4b3c6a
mov ecx, esi
or eax, 0xffffffff
call fcn.0048a410
mov ecx, dword [esp + 0x10]
movzx eax, byte [ecx + 0x28]
mov ecx, dword [esp + 0x98]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esp + 0x9c]
mov esi, dword [eax + edx*8 + 0x14]
mov edi, dword [esi + 0x48]
lea ebx, [eax + edx*8 + 8]
mov eax, dword [ecx]
mov edx, 0xfff0bdc0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
test edi, edi
je 0x4b3cd0
mov ecx, dword [eax + 4]
xor edx, edx
mov dword [esp + 0x14], edx
test ecx, ecx
jle 0x4b3cd0
mov eax, dword [eax + 8]
add eax, 0xc
lea ebx, [ebx]
cmp dword [eax], edi
je 0x4b3ccc
inc edx
add eax, 0x10
cmp edx, ecx
jl 0x4b3cc0
mov dword [esp + 0x14], edx
test byte [esi + 0x22], 2
jne 0x4b3f35
cmp dword [esi + 0x1c], 0
jne 0x4b3f35
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
test eax, 0x8000000
je 0x4b3db1
mov ecx, dword [esi + 0x38]
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
mov ebx, dword [ebx + 0x18]
mov dword [esp + 0x30], ecx
jg 0x4b3d1b
mov edi, ebp
call fcn.00489f50
test eax, eax
je 0x4b3d1b
mov esi, 1
xor ebx, ebx
jmp 0x4b3d42
mov eax, dword [ebp + 0x14]
inc dword [ebp + 0xc]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ebx
xor ebx, ebx
mov byte [eax], 0x20
mov byte [eax + 3], 0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov byte [ebp + 0x6e], bl
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp]
mov eax, esi
cmp ecx, ebx
je 0x4b3d9a
cmp byte [edi + 0x1e], 0
jne 0x4b3d9a
cmp esi, ebx
jge 0x4b3d5c
mov eax, dword [ebp + 0xc]
dec eax
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea esi, [ecx + edx*4]
mov ecx, dword [esi + 0x10]
call fcn.0048a410
mov eax, dword [esp + 0x30]
mov dword [esi + 0x10], ebx
cmp eax, ebx
jne 0x4b3d8a
mov dword [esi + 0x10], ebx
mov ebx, dword [esp + 0x18]
mov byte [esi + 1], 0
jmp 0x4b3e41
mov ebx, dword [esp + 0x18]
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xf6
jmp 0x4b3e41
mov ecx, dword [esp + 0x30]
mov eax, 0xfffffff6
call fcn.0048a410
mov ebx, dword [esp + 0x18]
jmp 0x4b3e41
test eax, 0x800000
jne 0x4b3e27
test byte [esp + 0xa8], 0x10
jne 0x4b3e27
mov edi, dword [esp + 0x1c]
movzx eax, byte [edi + 6]
mov ecx, dword [ebx + 0x18]
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 0xd
push eax
push edx
push ecx
mov ecx, dword [esp + 0xa4]
mov eax, esi
call fcn.00499e50
add esp, 0xc
cmp byte [edi + 6], 0
jne 0x4b3e41
cmp dword [esi + 0xc], 0x40
jge 0x4b3e41
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x2c]
mov esi, eax
xor edx, edx
or esi, ecx
je 0x4b3e12
shrd eax, ecx, 1
shr ecx, 1
mov esi, eax
inc edx
or esi, ecx
jne 0x4b3e05
mov eax, dword [ebp + 0xc]
push edx
dec eax
push ebp
mov ecx, 0xfffffff2
call fcn.0048a4e0
add esp, 8
jmp 0x4b3e41
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x18]
mov esi, dword [esp + 0x98]
push eax
push 0
push ecx
push edx
call fcn.0048b7d0
add esp, 0x10
mov eax, dword [esp + 0x10]
test dword [eax], 0xf0000
mov edx, dword [ebx + 0x18]
mov dword [eax + 0x10], edx
je 0x4b3f21
mov edi, eax
mov esi, dword [edi + 8]
mov eax, dword [esp + 0x98]
push esi
push eax
call fcn.004a3410
mov ecx, dword [esp + 0x28]
mov ebp, dword [esi + 0x14]
mov esi, dword [ecx + 0xc]
mov ebx, dword [edi + 0x14]
add esp, 8
cmp dword [ecx + 0x10], esi
mov dword [esp + 0x18], eax
jg 0x4b3e97
mov edi, ecx
call fcn.00489f50
test eax, eax
je 0x4b3e95
mov esi, 1
jmp 0x4b3ec6
mov ecx, edi
mov eax, dword [ecx + 0x14]
inc dword [ecx + 0xc]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x14]
mov byte [eax], 0xd
mov byte [eax + 3], 0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov byte [ecx + 0x6e], 0
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0x14]
mov edi, dword [edx]
xor ebx, ebx
mov eax, esi
cmp ecx, ebx
je 0x4b3f13
cmp byte [edi + 0x1e], bl
jne 0x4b3f13
cmp esi, ebx
jge 0x4b3ee4
mov eax, dword [edx + 0xc]
dec eax
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
call fcn.0048a410
mov eax, dword [esp + 0x18]
mov dword [esi + 0x10], ebx
cmp eax, ebx
jne 0x4b3f0a
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0
jmp 0x4b3f21
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x4b3f21
mov ecx, dword [esp + 0x18]
mov eax, 0xfffffff0
call fcn.0048a410
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x98]
call fcn.004ade30
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x24]
movsx edx, word [ecx]
add dword [esp + 0x10], 0x40
inc eax
cmp eax, edx
mov dword [esp + 0x24], eax
jl 0x4b3aa0
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x9c]
mov ebx, dword [esp + 0x1c]
mov dword [ecx + 0xc], eax
xor ecx, ecx
or eax, 0xffffffff
or edx, 0xffffffff
xor esi, esi
cmp cx, word [edi]
jge 0x4b3faa
mov ebp, dword [esp + 0x9c]
lea edi, [ebx + 0x40]
push edx
mov edx, dword [esp + 0xac]
push eax
push edx
mov ecx, esi
mov eax, ebx
call fcn.004b26e0
mov ecx, dword [edi]
mov dword [ebx + 0x10], ecx
movsx ecx, word [ebp]
inc esi
add esp, 0xc
add edi, 0x40
cmp esi, ecx
jl 0x4b3f83
pop ebp
pop edi
mov eax, ebx
pop ebx
pop esi
add esp, 0x84
ret