Function at 0x46ee80
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x4a26d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
mov eax, dword [0x4d2084]
xor eax, esp
push ebp
push esi
mov ebp, ecx
push 0
mov dword [esp + 0x15c], eax
mov dword [esp + 0x14], ebp
call fcn.0047f0fc
mov esi, dword [0x52c8ec]
mov ecx, eax
sub ecx, esi
add esp, 4
cmp ecx, 8
mov dword [esp + 0x14], eax
jge 0x46eed5
mov al, 1
jmp 0x46f641
mov dword [0x52c8ec], eax
mov al, byte [ebp + 0x74]
push ebx
xor esi, esi
test al, al
push edi
jne 0x46efee
mov edx, dword [ebp + 8]
push edx
push 1
lea eax, [esp + 0x68]
push str.SELECT_Name_Level_FROM__user__WHERE__Metier__d_AND__usertype_0_AND__deleted_0_ORDER_BY__Level__DESC___EXP__DESC_LIMIT_0__d
push eax
call fcn.0047f034
add esp, 0x10
push 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x68]
push edx
mov ecx, 0x4d8c60
call fcn.00404b50
test al, al
je 0x46f4e9
lea ebx, [ebp + 0x14]
mov ecx, ebx
call fcn.0046e400
mov eax, dword [esp + 0x10]
push eax
call sub.LIBMYSQL.dll_mysql_num_rows
test eax, eax
jle 0x46efdb
mov dword [esp + 0x14], eax
nop
mov ecx, dword [esp + 0x10]
push ecx
call sub.LIBMYSQL.dll_mysql_fetch_row
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.0046e110
mov ecx, dword [esi]
mov eax, ecx
mov dword [esp + 0x16c], 0
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46ef67
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004018c0
mov edx, dword [esi + 4]
push edx
call fcn.0047f135
mov word [esp + 0x40], ax
add esp, 4
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.0046eaf0
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0x16c], 0xffffffff
jb 0x46efb7
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0047e60d
add esp, 4
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
mov dword [esp + 0x14], eax
jne 0x46ef40
mov edx, dword [esp + 0x10]
push edx
call sub.LIBMYSQL.dll_mysql_free_result
mov byte [ebp + 0x74], 1
mov esi, 1
mov al, byte [ebp + 0x75]
test al, al
jne 0x46f10e
test esi, esi
jne 0x46f10e
mov eax, dword [ebp + 8]
push eax
push 2
lea ecx, [esp + 0x68]
push str.SELECT_Name_Level_FROM__user__WHERE__Metier__d_AND__usertype_0_AND__deleted_0_ORDER_BY__Level__DESC___EXP__DESC_LIMIT_0__d
push ecx
call fcn.0047f034
add esp, 0x10
push 1
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x68]
push eax
mov ecx, 0x4d8c60
call fcn.00404b50
test al, al
je 0x46f4e9
lea ebx, [ebp + 0x24]
mov ecx, ebx
call fcn.0046e400
mov ecx, dword [esp + 0x10]
push ecx
call sub.LIBMYSQL.dll_mysql_num_rows
test eax, eax
jle 0x46f0fb
mov dword [esp + 0x14], eax
jmp 0x46f060
mov edx, dword [esp + 0x10]
push edx
call sub.LIBMYSQL.dll_mysql_fetch_row
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.0046e110
mov ecx, dword [esi]
mov eax, ecx
mov dword [esp + 0x16c], 1
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46f087
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004018c0
mov eax, dword [esi + 4]
push eax
call fcn.0047f135
add esp, 4
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
mov word [esp + 0x40], ax
call fcn.0046eaf0
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0x16c], 0xffffffff
jb 0x46f0d7
mov edx, dword [esp + 0x24]
push edx
call fcn.0047e60d
add esp, 4
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
mov dword [esp + 0x14], eax
jne 0x46f060
mov eax, dword [esp + 0x10]
push eax
call sub.LIBMYSQL.dll_mysql_free_result
mov byte [ebp + 0x75], 1
mov esi, 1
mov al, byte [ebp + 0x76]
test al, al
jne 0x46f22e
test esi, esi
jne 0x46f22e
mov ecx, dword [ebp + 8]
push ecx
push 4
lea edx, [esp + 0x68]
push str.SELECT_Name_Level_FROM__user__WHERE__Metier__d_AND__usertype_0_AND__deleted_0_ORDER_BY__Level__DESC___EXP__DESC_LIMIT_0__d
push edx
call fcn.0047f034
add esp, 0x10
push 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, 0x4d8c60
call fcn.00404b50
test al, al
je 0x46f4e9
lea ebx, [ebp + 0x44]
mov ecx, ebx
call fcn.0046e400
mov edx, dword [esp + 0x10]
push edx
call sub.LIBMYSQL.dll_mysql_num_rows
test eax, eax
jle 0x46f21b
mov dword [esp + 0x14], eax
jmp 0x46f180
mov eax, dword [esp + 0x10]
push eax
call sub.LIBMYSQL.dll_mysql_fetch_row
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.0046e110
mov ecx, dword [esi]
mov eax, ecx
mov dword [esp + 0x16c], 2
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46f1a7
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004018c0
mov ecx, dword [esi + 4]
push ecx
call fcn.0047f135
add esp, 4
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
mov word [esp + 0x40], ax
call fcn.0046eaf0
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0x16c], 0xffffffff
jb 0x46f1f7
mov eax, dword [esp + 0x24]
push eax
call fcn.0047e60d
add esp, 4
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
mov dword [esp + 0x14], eax
jne 0x46f180
mov ecx, dword [esp + 0x10]
push ecx
call sub.LIBMYSQL.dll_mysql_free_result
mov byte [ebp + 0x76], 1
mov esi, 1
mov al, byte [ebp + 0x77]
test al, al
jne 0x46f34e
test esi, esi
jne 0x46f34e
mov edx, dword [ebp + 8]
push edx
push 3
lea eax, [esp + 0x68]
push str.SELECT_Name_Level_FROM__user__WHERE__Metier__d_AND__usertype_0_AND__deleted_0_ORDER_BY__Level__DESC___EXP__DESC_LIMIT_0__d
push eax
call fcn.0047f034
add esp, 0x10
push 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x68]
push edx
mov ecx, 0x4d8c60
call fcn.00404b50
test al, al
je 0x46f4e9
lea ebx, [ebp + 0x34]
mov ecx, ebx
call fcn.0046e400
mov eax, dword [esp + 0x10]
push eax
call sub.LIBMYSQL.dll_mysql_num_rows
test eax, eax
jle 0x46f33b
mov dword [esp + 0x14], eax
jmp 0x46f2a0
mov ecx, dword [esp + 0x10]
push ecx
call sub.LIBMYSQL.dll_mysql_fetch_row
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.0046e110
mov ecx, dword [esi]
mov eax, ecx
mov dword [esp + 0x16c], 3
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46f2c7
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004018c0
mov edx, dword [esi + 4]
push edx
call fcn.0047f135
mov word [esp + 0x40], ax
add esp, 4
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.0046eaf0
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0x16c], 0xffffffff
jb 0x46f317
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0047e60d
add esp, 4
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
mov dword [esp + 0x14], eax
jne 0x46f2a0
mov edx, dword [esp + 0x10]
push edx
call sub.LIBMYSQL.dll_mysql_free_result
mov byte [ebp + 0x77], 1
mov esi, 1
mov al, byte [ebp + 0x79]
test al, al
jne 0x46f4a6
test esi, esi
jne 0x46f4a6
mov al, byte [0x4d8a98]
test al, al
je 0x46f491
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [esp + 0x64]
push str.SELECT_Name_Lottery_FROM__user__WHERE__Lottery____0_ORDER_BY__Lottery__DESC_LIMIT_0__d
push ecx
call fcn.0047f034
add esp, 0xc
push 1
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x68]
push eax
mov ecx, 0x4d8c60
call fcn.00404b50
test al, al
je 0x46f4e9
mov ebp, dword [esp + 0x18]
lea ebx, [ebp + 0x64]
mov ecx, ebx
call fcn.0046e400
add ebp, 0x7c
mov ecx, ebp
call fcn.0046e400
mov ecx, dword [esp + 0x10]
push ecx
call sub.LIBMYSQL.dll_mysql_num_rows
test eax, eax
jle 0x46f476
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x10]
push edx
call sub.LIBMYSQL.dll_mysql_fetch_row
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.0046e170
mov ecx, dword [esi]
mov eax, ecx
mov dword [esp + 0x16c], 4
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46f3f7
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004018c0
mov eax, dword [esi + 4]
push eax
call fcn.0047f135
add esp, 4
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
mov dword [esp + 0x40], eax
call fcn.0046eb60
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
call fcn.0046eb60
cmp dword [esp + 0x38], 0x10
mov dword [esp + 0x16c], 0xffffffff
jb 0x46f452
mov eax, dword [esp + 0x24]
push eax
call fcn.0047e60d
add esp, 4
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
mov dword [esp + 0x14], eax
jne 0x46f3d0
mov ecx, dword [esp + 0x10]
push ecx
call sub.LIBMYSQL.dll_mysql_free_result
mov ecx, dword [esp + 0x18]
push ebp
call fcn.0046dc40
mov esi, 1
jmp 0x46f49c
lea edx, [ebp + 0x64]
push edx
mov ecx, ebp
call fcn.0046ebd0
mov eax, dword [esp + 0x18]
mov byte [eax + 0x79], 1
mov ebp, eax
mov al, byte [ebp + 0x78]
test al, al
jne 0x46f5c7
test esi, esi
jne 0x46f5c7
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0x64]
push str.SELECT_Name_Level_Score_FROM__T_union__ORDER_BY__Level__DESC___Score__DESC_LIMIT_0__d
push edx
call fcn.0047f034
add esp, 0xc
push 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, 0x4d8c60
call fcn.00404b50
test al, al
jne 0x46f4f0
xor al, al
jmp 0x46f63f
lea ebx, [ebp + 0x54]
mov ecx, ebx
call fcn.0046e400
mov edx, dword [esp + 0x10]
push edx
call sub.LIBMYSQL.dll_mysql_num_rows
test eax, eax
jle 0x46f5b9
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push eax
call sub.LIBMYSQL.dll_mysql_fetch_row
lea ecx, [esp + 0x40]
mov esi, eax
call fcn.0046e110
mov ecx, dword [esi]
mov eax, ecx
mov dword [esp + 0x16c], 5
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46f537
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x48]
call fcn.004018c0
mov ecx, dword [esi + 4]
push ecx
call fcn.0047f135
mov word [esp + 0x60], ax
mov edx, dword [esi + 8]
push edx
call fcn.0047f135
mov word [esp + 0x66], ax
add esp, 8
lea eax, [esp + 0x40]
push eax
mov ecx, ebx
call fcn.0046eaf0
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x16c], 0xffffffff
jb 0x46f595
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0047e60d
add esp, 4
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
mov dword [esp + 0x14], eax
jne 0x46f510
mov edx, dword [esp + 0x10]
push edx
call sub.LIBMYSQL.dll_mysql_free_result
mov byte [ebp + 0x78], 1
mov al, byte [ebp + 0x74]
test al, al
je 0x46f63d
mov al, byte [ebp + 0x75]
test al, al
je 0x46f63d
mov al, byte [ebp + 0x76]
test al, al
je 0x46f63d
mov al, byte [ebp + 0x77]
test al, al
je 0x46f63d
mov al, byte [ebp + 0x78]
test al, al
je 0x46f63d
mov al, byte [ebp + 0x79]
test al, al
je 0x46f63d
mov eax, dword [0x52c8e8]
inc eax
mov ecx, ebp
mov dword [0x52c8e8], eax
mov dword [ebp + 4], eax
call fcn.0046dba0
mov ecx, dword [ebp + 4]
mov eax, dword [esp + 0x1c]
push ecx
mov dword [ebp], eax
mov byte [ebp + 0x74], 0
mov byte [ebp + 0x75], 0
mov byte [ebp + 0x76], 0
mov byte [ebp + 0x77], 0
mov byte [ebp + 0x78], 0
mov byte [ebp + 0x79], 0
mov edx, dword [0x52f0f8]
push str.Herolists_are_Updated__Now_version_d_n
push edx
call fcn.0048dda0
add esp, 0xc
mov al, 1
pop edi
pop ebx
mov ecx, dword [esp + 0x15c]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x154]
pop ebp
xor ecx, esp
call fcn.0047ece2
add esp, 0x160
ret