Function at 0x4309f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x204c
call fcn.00463070
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
mov ebx, ecx
push edi
push dword [edx]
lea edi, [edx + 4]
call esi
mov eax, dword [edi]
push eax
call esi
mov eax, dword [edi + 4]
push eax
call esi
mov dword [esp + 0x1c], eax
mov al, byte [edi + 8]
mov byte [esp + 0x17], al
mov al, byte [edi + 9]
push 0x34
mov byte [esp + 0x19], al
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x1c], 0
call fcn.00476670
add esp, 0xc
lea eax, [esp + 0x10]
push 0
push eax
push 0xffffffffffffffff
push str.SELECT_PetLevel_PetStatus_PetStrengLevel_FROM_PlayerPetInfo_WHERE_Uin____and_PetID___
push dword [ebx + 0x1a0]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
mov edi, dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 0x14
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
test eax, eax
jne 0x430add
push dword [ebx + 0x18]
push 1
push dword [esp + 0x18]
call esi
add esp, 0xc
push dword [esp + 0x1c]
push 2
push dword [esp + 0x18]
call esi
add esp, 0xc
push dword [esp + 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
jne 0x430add
mov eax, dword [esp + 0x1c]
push 0
push dword [esp + 0x14]
mov dword [esp + 0x2c], eax
call edi
push 1
push dword [esp + 0x1c]
mov word [esp + 0x4a], ax
call edi
push 2
push dword [esp + 0x24]
mov word [esp + 0x54], ax
call edi
movzx edi, ax
add esp, 0x18
mov word [esp + 0x3e], di
mov eax, edi
jmp 0x430ae4
mov di, word [esp + 0x3e]
xor eax, eax
push dword [esp + 0x10]
movzx eax, ax
mov dword [esp + 0x24], eax
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 0
push 0
push eax
push 0xffffffffffffffff
push str.SELECT_ItemNum_from_Item_WHERE_Uin__AND_ItemID__
push dword [ebx + 0x1a0]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x430b6c
push dword [ebx + 0x18]
push 1
push dword [esp + 0x18]
call esi
add esp, 0xc
push 0x83ec
push 2
push dword [esp + 0x18]
call esi
add esp, 0xc
push dword [esp + 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
cmp eax, 0x64
jne 0x430b6c
push 0
push dword [esp + 0x14]
call dword [sym.imp.sqlite3.dll_sqlite3_column_int]
add esp, 8
mov dword [esp + 0x18], eax
push dword [esp + 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov eax, dword [esp + 0x24]
add esp, 4
movzx ecx, ax
movsx eax, byte [esp + 0x15]
inc ecx
imul ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], ecx
cmp eax, ecx
jge 0x430bf4
push 0xffff
call dword [sym.imp.WS2_32.dll_htons]
movq xmm0, qword [0x4b8b5c]
mov word [esp + 0x58], ax
mov eax, dword [0x4b8b64]
mov dword [esp + 0x63], eax
mov ax, word [0x4b8b68]
mov word [esp + 0x67], ax
mov al, byte [0x4b8b6a]
push 1
push 1
mov byte [esp + 0x71], al
movzx eax, word [ebx + 0x10]
push eax
movzx eax, word [ebx + 0x34]
push 2
push eax
mov byte [esp + 0x6e], 0xf
movq qword [esp + 0x6f], xmm0
push 0x12
jmp 0x430fa8
mov edx, dword [ebx + 0x128]
imul esi, ecx, 0x64
cmp edx, esi
jae 0x430c44
push 0xffff
call dword [sym.imp.WS2_32.dll_htons]
movq xmm0, qword [0x4b8b6c]
mov word [esp + 0x58], ax
mov al, byte [0x4b8b74]
push 1
push 1
mov byte [esp + 0x6b], al
movzx eax, word [ebx + 0x10]
push eax
movzx eax, word [ebx + 0x34]
push 2
push eax
mov byte [esp + 0x6e], 9
movq qword [esp + 0x6f], xmm0
push 0xc
jmp 0x430fa8
sub eax, ecx
sub edx, esi
mov ecx, ebx
mov dword [esp + 0x18], eax
mov dword [ebx + 0x128], edx
call fcn.00435390
push dword [ebx + 0x18]
mov esi, dword [sym.imp.WS2_32.dll_htonl]
call esi
push 0x83ec
mov dword [esp + 0x5c], eax
call esi
push dword [esp + 0x20]
mov dword [esp + 0x60], eax
call esi
push dword [esp + 0x18]
mov dword [esp + 0x64], eax
call esi
push 1
push 2
mov dword [esp + 0x6c], eax
mov edx, 0x22c
movzx eax, word [ebx + 0x10]
mov ecx, ebx
push eax
push 1
push eax
lea eax, [esp + 0x6c]
push 0x10
push eax
call fcn.00437370
add esp, 0x1c
lea eax, [esp + 0x10]
push 0
push eax
push 0xffffffffffffffff
push str.UPDATE_Item_SET_ItemNum__WHERE_Uin____AND_ItemID____
push dword [0x4d1304]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
add esp, 0x14
test eax, eax
jne 0x430d0a
push dword [esp + 0x18]
push 1
push dword [esp + 0x18]
call esi
add esp, 0xc
push dword [ebx + 0x18]
push 2
push dword [esp + 0x18]
call esi
add esp, 0xc
push 0x83ec
push 3
push dword [esp + 0x18]
call esi
add esp, 0xc
push dword [esp + 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
push 0
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push str.UPDATE_BaseInfo_SET_SuperMoney__WHERE_Uin__
push dword [0x4d1304]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x430d57
push dword [ebx + 0x128]
push 1
push dword [esp + 0x18]
call esi
add esp, 0xc
push dword [ebx + 0x18]
push 2
push dword [esp + 0x18]
call esi
add esp, 0xc
push dword [esp + 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
add esp, 4
mov dword [esp + 0x10], 0
push 0
call fcn.00480067
add esp, 4
mov dword [esp + 0x13dc], 0xffffffff
mov dword [esp + 0x5c], eax
mov edx, 1
nop word [eax + eax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [esp + edx*4 + 0x5c], eax
inc edx
cmp edx, 0x270
jb 0x430d90
mov al, byte [esp + 0x15]
mov dword [esp + 0x58], 0x270
mov byte [esp + 0x16], 0
test al, al
jle 0x430f46
dec al
lea ecx, [esp + 0x58]
mov byte [esp + 0x15], al
call fcn.00445830
mov ecx, 0x65
mul ecx
cmp eax, ecx
jae 0x430dfc
cmp eax, 0x44
jae 0x430dfc
mov esi, ecx
lea ecx, [esp + 0x58]
call fcn.00445830
mul esi
cmp eax, 0x44
jb 0x430de6
mov esi, dword [sym.imp.sqlite3.dll_sqlite3_bind_int]
cmp edx, 0x32
jge 0x430e8e
inc di
mov cl, 1
mov byte [esp + 0x16], cl
mov word [esp + 0x3e], di
cmp di, 0xa
jb 0x430e92
mov edi, 0xa
push 0xffff
mov word [esp + 0x42], di
call dword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [0x4b8be0]
mov word [esp + 0x58], ax
lea edx, [edi + 0x64]
mov eax, dword [0x4b8bf8]
mov ecx, ebx
mov dword [esp + 0x73], eax
mov ax, word [0x4b8bfc]
push 1
mov word [esp + 0x7b], ax
movzx eax, word [ebx + 0x10]
push 1
push eax
movzx eax, word [ebx + 0x34]
push 2
push eax
movups xmmword [esp + 0x6f], xmm0
lea eax, [esp + 0x6c]
mov byte [esp + 0x6e], 0x1e
movq xmm0, qword [0x4b8bf0]
push 0x21
push eax
movq qword [esp + 0x87], xmm0
call fcn.00437370
add esp, 0x1c
jmp 0x430ea6
mov cl, byte [esp + 0x16]
mov al, byte [esp + 0x15]
test al, al
jg 0x430dc5
test cl, cl
je 0x430f46
push 0
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push str.update_PlayerPetInfo_set_PetStrengLevel____where_Uin____and_PetID__
push dword [0x4d1304]
call dword [sym.imp.sqlite3.dll_sqlite3_prepare_v2]
add esp, 0x14
test eax, eax
jne 0x430f00
movzx eax, di
push eax
push 1
push dword [esp + 0x18]
call esi
add esp, 0xc
push dword [ebx + 0x18]
push 2
push dword [esp + 0x18]
call esi
add esp, 0xc
push dword [esp + 0x1c]
push 3
push dword [esp + 0x18]
call esi
add esp, 0xc
push dword [esp + 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_step]
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.sqlite3.dll_sqlite3_finalize]
mov al, byte [esp + 0x42]
add esp, 4
mov dl, byte [esp + 0x17]
mov ecx, ebx
mov byte [ebx + 0xd1], al
lea eax, [esp + 0x24]
mov dword [esp + 0x10], 0
push eax
push 0
call fcn.00430950
add esp, 8
lea edx, [esp + 0x24]
mov ecx, ebx
call fcn.00430710
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dl, byte [esp + 0x17]
lea eax, [esp + 0x24]
push eax
push 1
mov ecx, ebx
call fcn.00430950
add esp, 8
push 0xffff
call dword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [0x4b8c48]
mov word [esp + 0x58], ax
mov ax, word [0x4b8c68]
push 1
push 1
mov word [esp + 0x83], ax
movzx eax, word [ebx + 0x10]
push eax
movzx eax, word [ebx + 0x34]
movups xmmword [esp + 0x67], xmm0
push 2
movups xmm0, xmmword [0x4b8c58]
push eax
mov byte [esp + 0x6e], 0x22
movups xmmword [esp + 0x7f], xmm0
push 0x25
lea eax, [esp + 0x70]
mov edx, 0x6e
push eax
mov ecx, ebx
call fcn.00437370
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret