Function at 0x495ba0
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5575
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x150
mov eax, dword [0x62700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
xor esi, esi
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x98], eax
movzx eax, word [ebx + 0xc]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 4], esi
call fcn.00488470
push ecx
lea ecx, [ebp - 0x160]
mov edi, eax
call fcn.0041c300
mov ecx, dword [ebp - 0xa8]
mov byte [ebp - 4], 1
cmp cx, 7
jb 0x495eee
push 0x17
jne 0x495c4c
call fcn.004736b0
mov edx, str.SELECT__maglevel____name__FROM__players__ORDER_BY__maglevel__DESC___manaspent__DESC_LIMIT
jmp 0x495c56
call fcn.004736b0
mov edx, str.SELECT__level____name__FROM__players__ORDER_BY__level__DESC___experience__DESC_LIMIT
push eax
push ecx
lea ecx, [ebp - 0x150]
call fcn.004064c0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x160]
call fcn.00404ef0
push eax
mov byte [ebp - 4], 2
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x1c]
call eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
mov edi, eax
call fcn.00405b30
test edi, edi
jne 0x495cd0
mov esi, dword [ebp - 0xac]
lea ecx, [ebp - 0x160]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0041c440
mov eax, esi
jmp 0x4961d9
cmp word [ebp - 0xa8], 7
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
jne 0x495d0e
mov eax, dword [0x5d08f0]
mov ecx, dword [0x5d08f4]
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x24], 0
mov byte [ebp - 4], 3
jmp 0x495d2d
mov eax, dword [0x5d09fc]
mov dword [ebp - 0x2c], eax
mov al, byte [0x5d0a00]
mov dword [ebp - 0x1c], 5
mov byte [ebp - 0x28], al
mov byte [ebp - 0x27], 0
mov byte [ebp - 4], 4
mov eax, dword [edi]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, edi
mov eax, dword [eax]
call eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x98], eax
cmp ecx, 0x10
jb 0x495d77
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x495d6d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495ee8
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x2c], 0x656d616e
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
mov eax, dword [edi]
push ecx
lea ecx, [ebp - 0x60]
push ecx
mov ecx, edi
call dword [eax + 8]
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x495ddb
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x495dd1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495ee8
push ecx
push edx
call fcn.0045b34b
add esp, 8
cmp dword [ebp - 0x50], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
jbe 0x495e9e
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x48]
call fcn.00405c30
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 8
cmp esi, dword [ebp - 0x9c]
je 0x495e54
movups xmm0, xmmword [ebp - 0x48]
mov dword [esi], 0
mov ecx, 0xf
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov byte [ebp - 0x48], 0
movq xmm0, qword [ebp - 0x38]
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], eax
add esi, 0x1c
mov dword [ebp - 0xa0], esi
jmp 0x495e6d
lea eax, [ebp - 0x48]
push eax
push esi
lea ecx, [ebp - 0xa4]
call fcn.004370d0
mov esi, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 7
cmp ecx, 0x10
jb 0x495e9e
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x495e94
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495ee8
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0x10
jb 0x495ed2
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x495ec8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495ee8
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x495cd0
jmp 0x4961ab
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp byte [0x631c98], 0
je 0x495efe
mov eax, dword [0x632098]
jmp 0x495f36
cmp byte [0x631c99], 0
jne 0x495f34
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::clog]
mov edx, str._Warning___ConfigManager::getNumber_
push 0x406700
push 0x17
call fcn.004064c0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [ebp - 0xa8]
xor eax, eax
push eax
push ecx
push ecx
mov edx, str.SELECT__player_skills_._value____players_._name__FROM__player_skills___players__WHERE__player_skills_._skillid_
lea ecx, [ebp - 0x150]
call fcn.004064c0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_short_int_]
push ecx
mov edx, str._AND__player_skills_._player_id__players_._id__ORDER_BY__player_skills_._value__DESC___player_skills_._count__DESC_LIMIT
mov ecx, eax
call fcn.004064c0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x160]
call fcn.00404ef0
push eax
mov byte [ebp - 4], 9
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x1c]
call eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
mov edi, eax
call fcn.00405b30
test edi, edi
je 0x495ca3
nop word [eax + eax]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x2c], 0x656d616e
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
mov eax, dword [edi]
push ecx
lea ecx, [ebp - 0x60]
push ecx
mov ecx, edi
call dword [eax + 8]
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x496014
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x49600a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495ee8
push ecx
push edx
call fcn.0045b34b
add esp, 8
cmp dword [ebp - 0x50], 0
jbe 0x496162
mov eax, dword [0x5d09ec]
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x2c], eax
mov al, byte [0x5d09f0]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 5
mov byte [ebp - 0x28], al
mov byte [ebp - 0x27], 0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2c]
mov eax, dword [edi]
push ecx
mov ecx, edi
mov eax, dword [eax]
call eax
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x60]
push eax
call fcn.00405c30
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x30], eax
movups xmm0, xmmword [ebp - 0x48]
mov byte [ebp - 0x48], 0
movq xmm1, qword [ebp - 0x38]
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x38], 0
movq qword [ebp - 0x6c], xmm1
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0xf
cmp esi, dword [ebp - 0x9c]
je 0x4960dc
mov dword [esi], 0
mov ecx, 0xf
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov byte [ebp - 0x7c], 0
movq qword [esi + 0x10], xmm1
mov dword [esi + 0x18], eax
add esi, 0x1c
mov dword [ebp - 0xa0], esi
jmp 0x4960f5
lea eax, [ebp - 0x7c]
push eax
push esi
lea ecx, [ebp - 0xa4]
call fcn.004370d0
mov esi, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x68]
mov byte [ebp - 4], 0xe
cmp ecx, 0x10
jb 0x49612a
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x496120
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495ee8
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x496162
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x496158
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495ee8
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0x10
jb 0x49619a
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x496190
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x495ee8
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x495fb0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
mov edi, dword [ebp - 0xac]
lea ecx, [ebp - 0x160]
mov eax, dword [ebp - 0xa4]
mov dword [edi], eax
mov eax, dword [ebp - 0x9c]
mov dword [edi + 4], esi
mov dword [edi + 8], eax
call fcn.0041c440
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045ad9e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8