Function at 0x46ebd0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x4a267c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x184
mov eax, dword [0x4d2084]
xor eax, esp
push ebx
mov dword [esp + 0x184], eax
mov al, byte [ecx + 0x8c]
xor ebx, ebx
cmp al, bl
push esi
mov esi, dword [esp + 0x19c]
mov dword [esp + 0x1c], ecx
jne 0x46ec19
mov al, 1
jmp 0x46ee4f
lea ecx, [esp + 0x20]
call fcn.00436b40
mov dword [esp + 0x194], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
push 1
lea eax, [esp + 0x8c]
push str.SELECT_Content_FROM_T_info_WHERE_ID_d
push eax
mov byte [esp + 0x1a0], 2
call fcn.0047f034
add esp, 0xc
push 1
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x90]
push edx
mov ecx, 0x4d8c60
call fcn.00404b50
test al, al
je 0x46eca2
mov eax, dword [esp + 0xc]
push eax
call sub.LIBMYSQL.dll_mysql_num_rows
cmp edx, ebx
ja 0x46ecbd
jb 0x46ec98
cmp eax, 1
jae 0x46ecbd
mov ecx, dword [esp + 0xc]
push ecx
call sub.LIBMYSQL.dll_mysql_free_result
lea ecx, [esp + 0x20]
mov dword [esp + 0x194], 0xffffffff
call fcn.00436730
xor al, al
jmp 0x46ee4f
mov edx, dword [esp + 0xc]
push ebp
push edi
push edx
call sub.LIBMYSQL.dll_mysql_fetch_row
mov edi, eax
mov eax, dword [esp + 0x14]
push eax
call sub.LIBMYSQL.dll_mysql_fetch_lengths
mov ecx, dword [eax]
mov edx, dword [edi]
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.00404580
mov eax, dword [esp + 0x14]
push eax
call sub.LIBMYSQL.dll_mysql_free_result
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
push ecx
push ebp
lea ecx, [esp + 0x30]
call fcn.00436af0
test al, al
jne 0x46ed1e
mov edx, dword [0x52f0ec]
push str.lottery_list_load_from_buffer_error._n
push edx
call fcn.0048dda0
add esp, 8
jmp 0x46ee21
push 2
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], ebx
call fcn.00436c50
cmp word [esp + 0x20], 1
jne 0x46ee06
mov ecx, esi
call fcn.0046e400
push 2
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x30]
call fcn.00436c50
xor edi, edi
cmp word [esp + 0x10], bx
jle 0x46edd7
mov ebp, 0x10
lea ecx, [esp + 0x54]
call fcn.0046e170
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x1a4], 3
call fcn.00436e00
add esp, 8
push 4
lea ecx, [esp + 0x74]
push ecx
mov ecx, eax
call fcn.00436c50
lea edx, [esp + 0x54]
push edx
mov ecx, esi
call fcn.0046eb60
cmp dword [esp + 0x6c], ebp
mov byte [esp + 0x19c], 2
jb 0x46edbb
mov eax, dword [esp + 0x58]
push eax
call fcn.0047e60d
add esp, 4
inc edi
cmp di, word [esp + 0x10]
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
jl 0x46ed63
mov ebp, dword [esp + 0x18]
cmp ebp, ebx
mov ecx, dword [esp + 0x24]
mov byte [ecx + 0x8c], bl
je 0x46edee
push ebp
call fcn.0047ef02
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x19c], 0xffffffff
call fcn.00436730
mov al, 1
jmp 0x46ee4d
mov edx, dword [0x52f0ec]
push str.Lottery_ver_error__n
push edx
call fcn.0048dda0
add esp, 8
mov ecx, esi
call fcn.0046e400
lea ecx, [esp + 0x74]
call fcn.0046cd00
cmp ebp, ebx
je 0x46ee37
push ebp
call fcn.0047ef02
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x19c], 0xffffffff
call fcn.00436730
xor al, al
pop edi
pop ebp
mov ecx, dword [esp + 0x18c]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x184]
pop ebx
xor ecx, esp
call fcn.0047ece2
add esp, 0x190
ret 4