Function at 0x436760
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2618
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe4
mov eax, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], eax
movzx eax, al
xor eax, 0x811c9dc5
mov dword [ebp - 0x24], 0
imul edx, eax, 0x1000193
mov eax, dword [ebp - 0x28]
movzx eax, ah
push esi
xor esi, esi
xor edx, eax
movzx eax, byte [ebp - 0x26]
imul ecx, edx, 0x1000193
xor ecx, eax
movzx eax, byte [ebp - 0x25]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.004454e0
mov edx, dword [0x4d2c38]
mov eax, dword [eax + 4]
test eax, eax
cmovne edx, eax
cmp edx, dword [0x4d2c38]
je 0x43706d
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x43706d
mov eax, dword [ecx + 4]
mov dword [ebp - 0x84], eax
test eax, eax
je 0x43706d
mov eax, dword [ecx + 8]
push edi
xor edi, edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x40], ecx
test eax, eax
jle 0x436a8a
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0x20]
push eax
push 0xffffffffffffffff
push str.select_LuckyValue_from_BoxBaoDi_where_Uin__and_BoxID__
push dword [edi + 0x1a0]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x436922
push dword [edi + 0x18]
push 1
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebp - 0x28]
push 2
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x1c
cmp eax, 0x64
jne 0x4368b1
push esi
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
push dword [ebp - 0x10]
mov edi, eax
mov eax, dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov dword [ebp - 0x14], edi
call eax
add esp, 0xc
jmp 0x436933
push dword [ebp - 0x10]
mov eax, dword [sym.imp.sqlite3.dll_sqlite3_finalize]
call eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0xffffffffffffffff
push str.INSERT_INTO_BoxBaoDi_Uin_BoxID_LuckyValue__VALUES________
push dword [0x4d1304]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x18
test eax, eax
jne 0x436911
push dword [edi + 0x18]
mov edi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push 1
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x28]
push 2
push dword [ebp - 0x10]
call edi
push 0
push 3
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x28
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov edi, dword [ebp - 0x14]
add esp, 4
jmp 0x436930
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
xor edi, edi
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x48], edi
mov eax, dword [eax]
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x30], ecx
lea edi, [eax*8]
sub edi, eax
shl edi, 2
mov dword [ebp - 0x1c], edi
test eax, eax
je 0x436983
push eax
lea ecx, [ebp - 0x3c]
call fcn.00445700
push edi
push dword [ebp - 0x30]
push dword [ebp - 0x3c]
call fcn.004760e0
mov eax, dword [ebp - 0x3c]
add esp, 0xc
add edi, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x38], edi
jmp 0x436995
push edi
push ecx
push 0
call fcn.004760e0
mov dword [ebp - 0x38], edi
add esp, 0xc
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], ecx
mov ecx, edi
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x436a8a
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
lea esi, [edi + 0x1c]
nop dword [eax]
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
push 0xffffffffffffffff
push str.SELECT_1_FROM_Item_Where_Uin__and_ItemID__and_AvailPeriod___1_
push dword [eax + 0x1a0]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x436a47
mov eax, dword [ebp - 0x20]
push dword [eax + 0x18]
push 1
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [edi]
push 2
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x1c
cmp eax, 0x64
jne 0x436a47
mov eax, dword [ebp - 0x1c]
sub eax, esi
push eax
push esi
push edi
call fcn.004760e0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
dec dword [ebp - 0x18]
sub eax, 0x1c
sub edi, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x38], eax
sub esi, 0x1c
push dword [ebp - 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov ecx, dword [ebp - 0x1c]
mov eax, 0x92492493
sub ecx, dword [ebp - 0x3c]
add esp, 4
inc dword [ebp - 0x18]
add edi, 0x1c
imul ecx
add esi, 0x1c
mov dword [ebp - 0x10], 0
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x18], eax
jb 0x4369d0
mov edi, dword [ebp - 0x1c]
xor esi, esi
movsx eax, word [ebp + 8]
xor ecx, ecx
mov edx, 0x1c
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004622fd
mov edx, eax
movsx eax, word [ebp + 8]
mov dword [ebp - 0x30], edx
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 2
push ecx
push 0
push edx
call fcn.00476670
movsx ecx, word [ebp + 8]
add esp, 0x10
mov dword [ebp - 0x80], 0
test ecx, ecx
jle 0x436fd7
mov eax, dword [ebp - 0x14]
add eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
add eax, 8
mov dword [ebp - 0x10], eax
nop dword [eax]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
movups xmm0, xmmword [eax + 0x18]
movups xmmword [ebp - 0xd4], xmm0
movups xmmword [ebp - 0xa0], xmm0
movq xmm0, qword [eax + 0x28]
movq qword [ebp - 0x90], xmm0
call fcn.0048046a
movd xmm2, eax
cvtdq2pd xmm2, xmm2
divsd xmm2, qword [0x4bf080]
mulsd xmm2, qword [0x4bf078]
addsd xmm2, qword [0x4bf068]
comisd xmm2, xmmword [ebp - 0xd4]
jbe 0x436ba4
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
jle 0x436b5c
mov edx, dword [ebp - 0x2c]
cmp edx, ecx
jl 0x436b5c
mov eax, dword [ebp - 0x3c]
cmp eax, edi
jne 0x436bf9
inc esi
cmp esi, dword [ebp - 0x84]
jne 0x436b7d
xor esi, esi
call fcn.0048046a
cdq
mov ecx, 0x64
idiv ecx
inc edx
movd xmm2, edx
cvtdq2pd xmm2, xmm2
mov eax, dword [ebp - 0x40]
lea ecx, [esi + esi*2]
mov eax, dword [eax]
movups xmm1, xmmword [eax + ecx*8]
movq xmm0, qword [eax + ecx*8 + 0x10]
comisd xmm2, xmm1
movups xmmword [ebp - 0xa0], xmm1
movq qword [ebp - 0x90], xmm0
ja 0x436b43
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
jle 0x436c03
mov eax, dword [ebp - 0x3c]
cmp eax, edi
je 0x436c03
movsx eax, word [ebp + 8]
add eax, dword [ebp - 0x48]
cmp eax, ecx
jl 0x436c03
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x3c]
lea edi, [edx - 8]
lea ecx, [edx - 4]
add edx, 0x10
mov dword [ebp - 0x18], edx
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [ecx], eax
mov eax, dword [ebp - 0x98]
mov dword [edx], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 8]
mov dword [edx], eax
mov eax, dword [esi + 0x10]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
jmp 0x436d0b
sub dword [ebp - 0x14], ecx
sub edx, ecx
mov dword [ebp - 0x2c], edx
jmp 0x436bae
mov edi, dword [ebp - 0x90]
test edi, edi
je 0x436fcf
call fcn.0048046a
cdq
idiv edi
mov eax, dword [ebp - 0x94]
lea ecx, [edx*8]
sub ecx, edx
mov edx, dword [ebp - 0x10]
lea edi, [edx - 8]
movups xmm1, xmmword [eax + ecx*4]
movq xmm0, qword [eax + ecx*4 + 0x10]
lea ecx, [edx - 4]
mov eax, dword [ebp - 0x98]
add edx, 0x10
movq qword [ebp - 0xe0], xmm0
movaps xmm0, xmm1
mov dword [ebp - 0x18], edx
movd dword [edi], xmm1
mov dword [edx], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xe0]
psrldq xmm0, 4
psrldq xmm1, 8
mov dword [ebp - 0x44], ecx
movd dword [ecx], xmm0
movd dword [edx], xmm1
mov dword [edx + 8], eax
test esi, esi
jne 0x436d0b
push esi
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push eax
push 0xffffffffffffffff
push str.SELECT_1_FROM_Item_Where_ItemID__and_Uin__and_AvailPeriod___1_
push dword [esi + 0x1a0]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x436cef
push dword [edi]
push 1
push dword [ebp - 0x24]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [esi + 0x18]
push 2
push dword [ebp - 0x24]
call dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push dword [ebp - 0x24]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x1c
cmp eax, 0x64
jne 0x436cef
push dword [ebp - 0x24]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov edi, dword [ebp - 0x1c]
add esp, 4
mov dword [ebp - 0x24], 0
mov esi, 1
jmp 0x436af0
push dword [ebp - 0x24]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
push 0
push dword [esi]
lea edx, [eax + 0x18]
push dword [ecx]
mov dword [ebp - 0x44], edx
mov ecx, eax
push dword [edi]
mov edx, dword [edx]
call fcn.00412360
mov eax, dword [ebp - 0x18]
add esp, 0x10
xor esi, esi
cmp dword [eax], 2
jne 0x436fb1
xorps xmm0, xmm0
mov dword [ebp - 0x6c], esi
push 0x20
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x68], esi
call fcn.0046204b
mov ecx, eax
add esp, 4
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x6c], 0x16
mov dword [ebp - 0x68], 0x1f
movups xmm0, xmmword [0x4b9fcc]
movups xmmword [ecx], xmm0
mov eax, dword [0x4b9fdc]
mov dword [ecx + 0x10], eax
mov ax, word [0x4b9fe0]
mov word [ecx + 0x14], ax
mov byte [ecx + 0x16], 0
mov byte [ebp - 4], 1
push edi
call fcn.00424b50
mov eax, dword [eax]
test eax, eax
je 0x436e0e
cmp dword [eax + 0x14], esi
je 0x436e0e
add eax, 4
lea ecx, [ebp - 0x7c]
cmp ecx, eax
je 0x436db7
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x436dad
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.00409a60
mov eax, dword [ebp - 0x6c]
inc eax
push eax
call fcn.004622fd
add esp, 4
lea ecx, [ebp - 0x7c]
cmp dword [ebp - 0x68], 0xf
mov edi, eax
mov edx, edi
cmova ecx, dword [ebp - 0x7c]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x436dd5
mov ecx, edi
call fcn.0042c870
mov edx, eax
lea ecx, [edx + 1]
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x436df1
sub edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x7c]
push edx
push eax
call fcn.00409a60
push edi
call fcn.00462046
add esp, 4
lea eax, [ebp - 0x7c]
mov edx, str._C01
push eax
lea ecx, [ebp - 0xbc]
call fcn.00443840
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xbc]
cmp dword [ebp - 0xa8], 0xf
mov edx, dword [ebp - 0x20]
cmova ecx, dword [ebp - 0xbc]
add edx, 0x104
mov dword [ebp - 0x18], ecx
lea edi, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x436e50
sub edx, edi
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x436e60
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x50], 0
sub ecx, edi
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], al
mov byte [ebp - 4], 3
lea eax, [ecx + 0x37]
mov edi, dword [ebp - 0x54]
add eax, edx
cmp edi, eax
ja 0x436ebf
cmp dword [ebp - 0x50], eax
jae 0x436ebf
mov byte [ebp - 0x88], 0
lea ecx, [ebp - 0x64]
push dword [ebp - 0x88]
sub eax, edi
push eax
call fcn.00443d60
mov dword [ebp - 0x54], edi
push 0x4b9fec
lea ecx, [ebp - 0x64]
call fcn.00408350
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x64]
lea eax, [edi + 0x104]
push eax
call fcn.00408350
push str._C09
lea ecx, [ebp - 0x64]
call fcn.00408350
push dword [ebp - 0x18]
lea ecx, [ebp - 0x64]
call fcn.00408350
cmp dword [ebp - 0x50], 0xf
lea edx, [ebp - 0x64]
push dword [ebp - 0x54]
cmova edx, dword [ebp - 0x64]
mov ecx, edi
call fcn.00436560
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x50]
cmp ecx, 0xf
jbe 0x436f46
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x436f3c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43707e
push ecx
push edx
call fcn.0046207b
add esp, 8
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xbc]
call fcn.004099e0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x68]
cmp ecx, 0xf
jbe 0x436f9f
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x436f95
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43707e
push ecx
push edx
call fcn.0046207b
add esp, 8
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x80]
movsx ecx, word [ebp + 8]
inc eax
add dword [ebp - 0x10], 0x1c
mov dword [ebp - 0x80], eax
cmp eax, ecx
jge 0x436fdd
mov edi, dword [ebp - 0x1c]
jmp 0x436af0
mov edi, dword [ebp - 0x20]
add edi, 0x18
jmp 0x436fb4
mov edi, dword [ebp - 0x20]
add edi, 0x18
mov eax, dword [ebp - 0x4c]
test eax, eax
jle 0x43704b
mov esi, dword [ebp - 0x14]
add esi, ecx
xor ecx, ecx
push ecx
cmp esi, eax
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push str.update_BoxBaoDi_set_LuckyValue____where_Uin____and_BoxID___
push dword [0x4d1304]
cmovge esi, ecx
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x43703f
push esi
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
push 1
push dword [ebp - 0x14]
call esi
push dword [edi]
push 2
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x28]
push 3
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 0x28
push dword [ebp - 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00424c60
mov eax, dword [ebp - 0x30]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.00480419
int3