Function at 0x44b8b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3835
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, ecx
push 0x4000
mov dword [ebp - 0x20], edi
call fcn.004622fd
mov esi, eax
mov dword [ebp - 0x38], 0
add esp, 4
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0xffffffffffffffff
push str.SELECT_ItemID_FROM_Item_WHERE_Uin____And_AvailPeriod___1
push dword [edi + 0x1a0]
mov dword [ebp - 0x14], 0
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x44bce2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x44bcd9
push dword [edi + 0x18]
push 1
push eax
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
mov ebx, dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0xc
push dword [ebp - 0x14]
call ebx
add esp, 4
cmp eax, 0x64
jne 0x44ba34
nop dword [eax]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
mov esi, eax
add esp, 8
cmp esi, 0x1f90f
je 0x44ba20
cmp esi, 0x1f910
je 0x44ba20
cmp esi, 0x1fee0
je 0x44ba20
cmp esi, 0x1fee1
je 0x44ba20
cmp esi, 0x1fed6
je 0x44ba20
cmp esi, 0x1fedb
je 0x44ba20
cmp esi, 0x1fedc
je 0x44ba20
cmp esi, 0x1fede
je 0x44ba20
cmp esi, 0x1fedf
je 0x44ba20
cmp esi, 0x1fed8
je 0x44ba20
cmp esi, 0x1fed7
je 0x44ba20
cmp esi, 0x1fdea
je 0x44ba20
cmp esi, 0x1f905
je 0x44ba20
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], esi
push eax
call fcn.0042b840
mov eax, dword [eax]
test eax, eax
je 0x44ba20
cmp dword [eax + 4], 1
jne 0x44ba20
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], esi
cmp eax, dword [ebp - 0x30]
je 0x44ba13
mov dword [eax], esi
add dword [ebp - 0x34], 4
jmp 0x44ba20
lea ecx, [ebp - 0x24]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.00411d20
push dword [ebp - 0x14]
call ebx
add esp, 4
cmp eax, 0x64
je 0x44b960
mov esi, dword [ebp - 0x28]
push dword [edi + 0x18]
call dword [sym.imp.WS2_32.dll_htonl]
lea ebx, [esi + 4]
mov dword [esi], eax
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0xd], 0
call esi
mov word [ebx], ax
xor ecx, ecx
mov eax, dword [ebp - 0x34]
add ebx, 2
sub eax, dword [ebp - 0x38]
sar eax, 2
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x44bc7a
nop dword [eax]
cmp ecx, 0x78
jae 0x44bc73
inc dword [ebp - 0x1c]
push 0
call esi
mov ecx, dword [ebp - 0x18]
lea edi, [ebx + 2]
mov word [ebx], ax
mov eax, dword [ebp - 0x38]
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
push dword [eax + ecx*4]
call ebx
push 0
mov dword [edi], eax
call ebx
mov ebx, dword [sym.imp.WS2_32.dll_htons]
mov dword [edi + 4], eax
add edi, 8
push 0
call ebx
mov word [edi], ax
lea esi, [edi + 2]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, dword [ebp - 0x38]
push dword [eax + ecx*4]
call dword [sym.imp.WS2_32.dll_htonl]
push 0
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_htonl]
push 0
mov dword [esi + 8], eax
call ebx
push 0
mov word [esi + 0xc], ax
call ebx
push 0
mov word [esi + 0xe], ax
call ebx
push 0
mov word [esi + 0x10], ax
call ebx
push 0
mov word [esi + 0x12], ax
call ebx
push 0
mov word [esi + 0x14], ax
call ebx
push 0
mov word [esi + 0x16], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0
mov dword [esi + 0x18], eax
call dword [sym.imp.WS2_32.dll_htonl]
push 0
mov dword [esi + 0x1c], eax
call dword [sym.imp.WS2_32.dll_htonl]
push 0
mov dword [esi + 0x20], eax
call dword [sym.imp.WS2_32.dll_htonl]
push 0
mov dword [esi + 0x24], eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + 0x28], eax
add esi, 0x2c
push 0
call ebx
mov word [esi], ax
lea ebx, [esi + 2]
lea eax, [ebx + 8]
mov dword [ebx], 0
sub eax, esi
mov dword [ebx + 4], 0
push eax
mov eax, dword [sym.imp.WS2_32.dll_htons]
call eax
push 0
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebx + 8], eax
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0
call esi
push 0
mov word [ebx + 0xc], ax
call esi
push 0
mov word [ebx + 0xe], ax
call esi
push 0
mov word [ebx + 0x10], ax
call esi
push 0
mov word [ebx + 0x12], ax
call esi
push 0
mov word [ebx + 0x14], ax
call esi
push 0
mov word [ebx + 0x16], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebx + 0x18], eax
push 0
mov byte [ebx + 0x1c], 0
call dword [sym.imp.WS2_32.dll_htonl]
push 0
mov dword [ebx + 0x1d], eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebx + 0x21], eax
lea eax, [ebx + 0x25]
sub eax, edi
push eax
call esi
push 0
mov word [edi], ax
call esi
push 0
mov word [ebx + 0x25], ax
lea edi, [ebx + 0x27]
call dword [sym.imp.WS2_32.dll_htonl]
push 0
mov dword [edi], eax
call dword [sym.imp.WS2_32.dll_htonl]
push 0xa
mov dword [edi + 4], eax
call esi
push 0
mov word [ebx + 0x25], ax
call esi
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
push 0
mov word [edi + 8], ax
call ebx
push 0
mov dword [edi + 0xa], eax
call ebx
push 0
mov dword [edi + 0xe], eax
call ebx
mov dword [edi + 0x12], eax
mov eax, esi
push 0xe
call eax
mov ebx, dword [ebp - 0x24]
mov word [edi + 8], ax
lea eax, [edi + 0x16]
sub eax, ebx
push eax
call esi
mov ecx, dword [ebp - 0x18]
mov word [ebx], ax
inc ecx
mov eax, dword [ebp - 0x34]
lea ebx, [edi + 0x16]
sub eax, dword [ebp - 0x38]
sar eax, 2
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ecx
cmp ecx, eax
jb 0x44ba80
jmp 0x44bc77
mov byte [ebp - 0xd], 1
mov edi, dword [ebp - 0x20]
push dword [ebp - 0x1c]
call esi
mov ecx, dword [ebp - 0x2c]
mov edx, 0x358a
mov esi, dword [ebp - 0x28]
push 1
push 2
mov word [ecx], ax
mov ecx, edi
mov al, byte [ebp - 0xd]
mov byte [ebx], al
inc ebx
movzx eax, word [edi + 0x10]
sub ebx, esi
push eax
push 1
push eax
push ebx
push esi
call fcn.00437370
add esp, 0x1c
cmp byte [ebp - 0xd], 0
je 0x44bcd9
sub esp, 0xc
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call fcn.00453760
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x1c]
call fcn.0044b580
add esp, 0xc
push esi
call fcn.00462046
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0042c1b0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret