joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403320
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0x11
mov ecx, 6
cmp byte [edi + 0x11], 0
cmovne ecx, eax
mov ax, word [ecx + edi + 8]
movq xmm0, qword [ecx + edi]
mov word [ebp - 0xc], ax
mov al, byte [ecx + edi + 0xa]
mov byte [ebp - 0xa], al
lea eax, [ebp - 0x14]
push eax
push str.SELECT_WCoinC_WCoinP_GoblinPoint_FROM_CashShopData_WHERE_AccountID_s
push 0x446e50
movq qword [ebp - 0x14], xmm0
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40349b
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40349b
push str.WCoinC
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4033a8
mov dword [ebp - 0x20], eax
jmp 0x4033bc
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov dword [ebp - 0x20], eax
push str.WCoinP
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4033d0
mov dword [ebp - 0x1c], eax
jmp 0x4033e4
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov dword [ebp - 0x1c], eax
push str.GoblinPoint
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4033f8
mov dword [ebp - 0x18], eax
jmp 0x40340c
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov dword [ebp - 0x18], eax
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [edi + 0x24]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov esi, dword [edi + 0x20]
sub ecx, edx
mov edi, dword [edi + 0x1c]
push eax
xor eax, eax
cmp edx, dword [ebp - 0x18]
cmovbe eax, ecx
mov ecx, dword [ebp - 0x1c]
push eax
sub ecx, esi
xor eax, eax
cmp esi, dword [ebp - 0x1c]
cmovbe eax, ecx
mov ecx, dword [ebp - 0x20]
push eax
sub ecx, edi
xor eax, eax
cmp edi, dword [ebp - 0x20]
cmovbe eax, ecx
push eax
push str.UPDATE_CashShopData_SET_WCoinC_d_WCoinP_d_GoblinPoint_d_WHERE_AccountID_s
push 0x446e50
call fcn.0041ad10
add esp, 0x18
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041dc7d
mov esp, ebp
pop ebp
ret 4
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push str.INSERT_INTO_CashShopData__AccountID_WCoinC_WCoinP_GoblinPoint__VALUES___s__d__d__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x18
push dword [0x446e5c]
call edi
push 2
push dword [0x446e5c]
call esi
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0041dc7d
mov esp, ebp
pop ebp
ret 4
Function at 0x406430
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x428], edx
push esi
push edi
mov dword [ebp - 0x424], eax
lea esi, [eax + 8]
push esi
push str.SELECT_GUID_FROM_T_FriendMain_WHERE_Name_s
push 0x446e50
call fcn.0041ad10
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
add esp, 0xc
push dword [0x446e5c]
call ebx
push str.GUID
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40648b
or edi, eax
jmp 0x40649e
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov edi, eax
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x411
lea eax, [ebp - 0x41f]
push 0
push eax
call fcn.0041f490
mov ecx, dword [ebp - 0x424]
add esp, 0xc
movq xmm0, qword [esi]
mov dword [ebp - 0x420], 0x721204c2
movq qword [ebp - 0x41a], xmm0
movzx eax, word [ecx + 4]
mov word [ebp - 0x41c], ax
movzx eax, word [esi + 8]
mov word [ebp - 0x412], ax
mov al, byte [esi + 0xa]
mov byte [ebp - 0x410], al
movzx eax, word [ecx + 6]
push edi
push eax
push str.SELECT_Memo_Photo_Dir_Act_FROM_T_FriendMail_WHERE_MemoIndex_d_AND_GUID_d
push 0x446e50
mov word [ebp - 0x40e], ax
call fcn.0041ad10
add esp, 0x10
push dword [0x446e5c]
call ebx
push 0x12
lea eax, [ebp - 0x40a]
push eax
push str.Photo
call fcn.0041afb0
push 0x43d184
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x406556
or eax, eax
jmp 0x406567
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push 0x43d188
mov byte [ebp - 0x3f8], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x406580
or eax, eax
jmp 0x406591
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov byte [ebp - 0x3f7], al
lea eax, [ebp - 0x3f6]
push 0x3e8
push eax
push str.Memo
call fcn.0041afb0
lea ecx, [ebp - 0x3f6]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4065b6
push dword [0x446e5c]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
sub ecx, edx
mov word [ebp - 0x40c], cx
call esi
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call ebx
mov eax, dword [ebp - 0x424]
push edi
movzx eax, word [eax + 6]
push eax
push str.UPDATE_T_FriendMail_SET_bRead1_WHERE_MemoIndex_d_AND_GUID_d
push 0x446e50
call fcn.0041ad10
add esp, 0x10
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call ebx
mov ecx, dword [ebp - 0x428]
lea edx, [ebp - 0x420]
push 0x412
call fcn.004052c0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041dc7d
mov esp, ebp
pop ebp
ret
Function at 0x406640
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 0x25], dl
push esi
push str.SELECT_GUID_FROM_T_FriendMain_WHERE_Name_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x40680f
push dword [0x446e5c]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
call ebx
cmp ax, 0x64
je 0x40680f
push str.GUID
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x40669e
or edi, eax
jmp 0x4066b1
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov edi, eax
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push edi
push str.SELECT_FriendName_Del_FROM_T_FriendList_WHERE_GUID_d
push 0x446e50
call fcn.0041ad10
add esp, 0x10
test al, al
je 0x40680f
push dword [0x446e5c]
call ebx
cmp ax, 0x64
je 0x40680f
nop word [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0xb], 0
movups xmmword [ebp - 0x23], xmm0
push str.FriendName
movq qword [ebp - 0x13], xmm0
mov byte [ebp - 7], 0
mov word [ebp - 0x24], 0x1ec1
mov byte [ebp - 0x22], 0x62
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x406744
xorps xmm0, xmm0
mov word [ebp - 0x16], 0
movq qword [ebp - 0x1e], xmm0
mov byte [ebp - 0x14], 0
jmp 0x40675d
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x1e]
push 0xb
push eax
call fcn.0042752d
add esp, 0x10
lea eax, [ebp - 0x1e]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00404310
test al, al
je 0x4067fd
cmp byte [ebp - 0x25], 0
movzx eax, word [ebp - 0x2e]
movq xmm0, qword [esi]
mov word [ebp - 0x20], ax
movzx eax, word [esi + 8]
mov word [ebp - 0xb], ax
mov al, byte [esi + 0xa]
movq qword [ebp - 0x13], xmm0
mov byte [ebp - 9], al
jne 0x4067da
push 0x43cfac
call fcn.0041af60
cmp eax, 0xffffffff
je 0x4067da
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
test eax, eax
jne 0x4067da
lea eax, [ebp - 0x13]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00404310
test al, al
mov eax, 0xffff
je 0x4067d5
movzx eax, word [ebp - 0x48]
mov byte [ebp - 8], al
jmp 0x4067de
mov byte [ebp - 8], 0xff
mov ecx, dword [ebp - 0x2c]
call fcn.0041d0e0
test eax, eax
je 0x4067fd
movzx ecx, byte [ebp - 0x23]
lea edx, [ebp - 0x24]
push ecx
mov ecx, dword [eax + 4]
call fcn.004052c0
add esp, 4
push dword [0x446e5c]
call ebx
cmp ax, 0x64
jne 0x406700
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc7d
mov esp, ebp
pop ebp
ret
Function at 0x406840
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push edx
push str.SELECT_MemoIndex_FriendName_wDate_Subject_bRead_FROM_T_FriendMail_WHERE_GUID_d
push 0x446e50
mov dword [ebp - 0x6c], ecx
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x406a1f
push dword [0x446e5c]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
call ebx
cmp ax, 0x64
je 0x406a1f
nop
push 0x5d
lea eax, [ebp - 0x67]
push 0
push eax
call fcn.0041f490
mov ax, word [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x68], 0x715e00c2
mov word [ebp - 0x64], ax
push str.MemoIndex
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4068c2
or eax, eax
jmp 0x4068d3
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.FriendName
mov word [ebp - 0x62], ax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4068fa
xorps xmm0, xmm0
mov word [ebp - 0x58], 0
movq qword [ebp - 0x60], xmm0
mov byte [ebp - 0x56], 0
jmp 0x406913
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x60]
push 0xb
push eax
call fcn.0042752d
add esp, 0x10
mov ax, word [edi + 8]
movq xmm0, qword [edi]
mov word [ebp - 0x4d], ax
mov al, byte [edi + 0xa]
push str.wDate
movq qword [ebp - 0x55], xmm0
mov byte [ebp - 0x4b], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x406954
xorps xmm0, xmm0
mov dword [ebp - 0x32], 0
movups xmmword [ebp - 0x4a], xmm0
mov word [ebp - 0x2e], 0
movq qword [ebp - 0x3a], xmm0
jmp 0x40696d
shl eax, 0xd
push 0x1d
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x4a]
push 0x1e
push eax
call fcn.0042752d
add esp, 0x10
push str.Subject
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x406989
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x1c], xmm0
jmp 0x4069a2
shl eax, 0xd
push 0x1f
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.0042752d
add esp, 0x10
push str.bRead
call fcn.0041af60
cmp esi, 1
jne 0x4069d3
cmp eax, 0xffffffff
jne 0x4069bd
or eax, eax
mov byte [ebp - 0xc], al
jmp 0x4069fd
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov byte [ebp - 0xc], al
jmp 0x4069fd
cmp eax, 0xffffffff
jne 0x4069dc
or eax, eax
jmp 0x4069ed
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
mov byte [ebp - 0xc], al
test al, al
jne 0x4069fd
mov byte [ebp - 0xc], 2
mov esi, 1
mov ecx, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
push 0x5e
call fcn.004052c0
add esp, 4
push dword [0x446e5c]
call ebx
cmp ax, 0x64
jne 0x406890
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc7d
mov esp, ebp
pop ebp
ret
Function at 0x4116c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push 0x2f
lea eax, [ebp - 0x33]
mov dword [ebp - 4], edx
push 0
push eax
mov edi, ecx
call fcn.0041f490
movzx eax, word [edi + 4]
add esp, 0xc
movq xmm0, qword [edi + 6]
mov edx, dword [0x446b54]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov word [ebp - 0x30], ax
movzx eax, word [edi + 0xe]
mov word [ebp - 0x26], ax
mov al, byte [edi + 0x10]
mov byte [ebp - 0x24], al
mov al, byte [edi + 0x11]
mov byte [ebp - 0x23], al
mov al, byte [edi + 0x12]
mov byte [ebp - 0x22], al
mov al, byte [edi + 0x13]
mov byte [ebp - 0x21], al
mov eax, dword [0x446b50]
mov word [ebp - 0x34], 0x30c1
mov byte [ebp - 0x32], 7
movq qword [ebp - 0x2e], xmm0
cmp eax, edx
je 0x41174c
mov esi, dword [eax]
lea ecx, [eax + 4]
sub edx, ecx
push edx
push ecx
push eax
call fcn.00420a60
sub dword [0x446b54], 4
add esp, 0xc
test esi, esi
jne 0x4117b6
push str.EXEC_WZ_GetItemSerial
push 0x446e50
call fcn.0041ad10
add esp, 8
test al, al
je 0x41179e
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41179e
push 0x447a7e
call fcn.0042417e
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
push dword [0x446e5c]
call ebx
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x4117b9
push dword [0x446e5c]
call ebx
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
xor esi, esi
mov dword [ebp - 0x20], esi
movzx eax, word [edi + 0x14]
mov ecx, 0x1a04
cmp ax, cx
je 0x4117d1
mov ecx, 0x1a05
cmp ax, cx
jne 0x41183d
push esi
push str.SELECT_ItemSerial_FROM_T_PetItem_Info_WHERE_ItemSerial_d
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x4117fa
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x411827
push dword [0x446e5c]
call ebx
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push 1
push esi
push str.INSERT_INTO_T_PetItem_Info__ItemSerial_Pet_Level_Pet_Exp__VALUES___d__d__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x14
push dword [0x446e5c]
call ebx
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [edi + 0x14]
mov word [ebp - 0x1c], ax
mov al, byte [edi + 0x16]
mov byte [ebp - 0x1a], al
mov al, byte [edi + 0x17]
mov byte [ebp - 0x19], al
mov al, byte [edi + 0x18]
mov byte [ebp - 0x18], al
mov al, byte [edi + 0x19]
mov byte [ebp - 0x17], al
mov al, byte [edi + 0x1a]
mov byte [ebp - 0x16], al
mov al, byte [edi + 0x1b]
mov byte [ebp - 0x15], al
movzx eax, word [edi + 0x1c]
mov word [ebp - 0x14], ax
mov al, byte [edi + 0x1e]
mov byte [ebp - 0x12], al
mov al, byte [edi + 0x1f]
mov byte [ebp - 0x11], al
mov al, byte [edi + 0x20]
mov byte [ebp - 0x10], al
mov eax, dword [edi + 0x21]
mov dword [ebp - 0xf], eax
mov al, byte [edi + 0x25]
mov byte [ebp - 0xb], al
mov al, byte [edi + 0x26]
mov byte [ebp - 0xa], al
mov eax, dword [edi + 0x28]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push 0x30
push eax
push dword [ebp - 4]
call fcn.0041c350
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4118b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3b
lea eax, [ebp - 0x3f]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.0041f490
movzx eax, word [esi + 4]
lea ecx, [esi + 0x11]
movq xmm0, qword [esi + 6]
add esp, 0xc
mov word [ebp - 0x3c], ax
mov bl, 0x3c
movzx eax, word [esi + 0xe]
mov word [ebp - 0x32], ax
mov al, byte [esi + 0x10]
mov byte [ebp - 0x30], al
movzx eax, word [ecx + 8]
push ecx
movq qword [ebp - 0x3a], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x27], ax
mov al, byte [ecx + 0xa]
push str.SELECT__FROM_OptionData_WHERE_Name_s
push 0x446e50
mov word [ebp - 0x40], 0x3cc1
mov byte [ebp - 0x3e], 8
movq qword [ebp - 0x2f], xmm0
mov byte [ebp - 0x25], al
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x411a8e
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x411a8e
push 0x14
lea eax, [ebp - 0x24]
push eax
push str.SkillKey
call fcn.0041afb0
push str.GameOption
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x411971
or eax, eax
jmp 0x411982
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.Qkey
mov byte [ebp - 0x10], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x411998
or eax, eax
jmp 0x4119a9
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.Wkey
mov byte [ebp - 0xf], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4119bf
or eax, eax
jmp 0x4119d0
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.Ekey
mov byte [ebp - 0xe], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x4119e6
or eax, eax
jmp 0x4119f7
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.ChatWindow
mov byte [ebp - 0xd], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x411a0d
or eax, eax
jmp 0x411a1e
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.Rkey
mov byte [ebp - 0xc], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x411a34
or eax, eax
jmp 0x411a45
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.QWERLevel
mov byte [ebp - 0xb], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x411a5b
or eax, eax
jmp 0x411a6c
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 8], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov bl, byte [ebp - 0x3f]
jmp 0x411ace
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movaps xmm0, xmmword [0x442de0]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov word [ebp - 0xc], 0xffff
mov dword [ebp - 8], 0xffffffff
movzx eax, bl
push eax
lea eax, [ebp - 0x40]
push eax
push edi
call fcn.0041c350
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc7d
mov esp, ebp
pop ebp
ret
Function at 0x411af0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x103c
call fcn.00435200
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ecx + 0x12], 0
xorps xmm0, xmm0
movzx eax, word [ecx + 4]
movups xmmword [ebp - 0x101b], xmm0
mov word [ebp - 0x1018], ax
movzx eax, word [ecx + 0xe]
movq xmm0, qword [ecx + 6]
mov word [ebp - 0x100e], ax
mov al, byte [ecx + 0x10]
push ebx
mov byte [ebp - 0x100c], al
mov ebx, 0x14
mov al, byte [ecx + 0x11]
push esi
mov word [ebp - 0x100b], 0
push edi
mov dword [ebp - 0x1038], edx
mov dword [ebp - 0x1034], ecx
mov word [ebp - 0x100a], 0
mov byte [ebp - 0x101c], 0xc2
mov byte [ebp - 0x1019], 9
movq qword [ebp - 0x1016], xmm0
mov byte [ebp - 0x100b], al
mov dword [ebp - 0x1020], 0
jbe 0x411cf9
lea edi, [ebp - 0xff4]
lea esi, [ecx + 0x18]
nop word [eax + eax]
push dword [esi]
push str.SELECT_Pet_Level_Pet_Exp_FROM_T_PetItem_Info_WHERE_ItemSerial_d
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x411c53
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x411c53
mov al, byte [esi - 4]
mov byte [ebp - 0x1030], al
mov eax, dword [esi]
push str.Pet_Level
mov dword [ebp - 0x102c], eax
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x411bf6
or eax, eax
jmp 0x411c07
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push str.Pet_Exp
mov byte [ebp - 0x1028], al
call fcn.0041af60
cmp eax, 0xffffffff
jne 0x411c20
or eax, eax
jmp 0x411c31
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042417e
add esp, 4
push dword [0x446e5c]
mov dword [ebp - 0x1024], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x411cc1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push 1
push dword [esi]
push str.INSERT_INTO_T_PetItem_Info__ItemSerial_Pet_Level_Pet_Exp__VALUES___d__d__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x14
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [ebp - 0x1030], al
mov eax, dword [esi]
mov dword [ebp - 0x102c], eax
mov byte [ebp - 0x1028], 1
mov dword [ebp - 0x1024], 0
mov eax, dword [ebp - 0x1034]
add ebx, 0x10
movups xmm0, xmmword [ebp - 0x1030]
mov ecx, dword [ebp - 0x1020]
add esi, 8
inc byte [ebp - 0x100a]
inc ecx
movzx eax, byte [eax + 0x12]
movups xmmword [edi], xmm0
add edi, 0x10
mov dword [ebp - 0x1020], ecx
cmp ecx, eax
jl 0x411ba0
mov eax, ebx
mov byte [ebp - 0x101a], bl
shr eax, 8
mov byte [ebp - 0x101b], al
mov eax, dword [ebp - 0x100c]
movups xmm0, xmmword [ebp - 0x101c]
mov dword [ebp - 0xff8], eax
lea eax, [ebp - 0x1008]
push ebx
push eax
push dword [ebp - 0x1038]
movups xmmword [ebp - 0x1008], xmm0
call fcn.0041c350
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc7d
mov esp, ebp
pop ebp
ret
Function at 0x412080
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 0x11]
push eax
push str.SELECT_Name_FROM_OptionData_WHERE_Name_s
push 0x446e50
call fcn.0041ad10
add esp, 0xc
test al, al
je 0x41212c
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41212c
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
push 0x50fc10
push 0
lea eax, [ebx + 0x1c]
mov dword [0x50fc10], 0x14
push eax
push 0
push 0x14
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
lea eax, [ebx + 0x11]
push eax
push dword [ebx + 0x38]
movzx eax, byte [ebx + 0x35]
push eax
movzx eax, byte [ebx + 0x34]
push eax
movzx eax, byte [ebx + 0x33]
push eax
movzx eax, byte [ebx + 0x32]
push eax
movzx eax, byte [ebx + 0x31]
push eax
movzx eax, byte [ebx + 0x30]
push eax
push str.UPDATE_OptionData_SET_SkillKey__GameOption_d_Qkey_d_Wkey_d_Ekey_d_ChatWindow_d_Rkey_d_QWERLevel_d_WHERE_Name_s
jmp 0x4121a1
push dword [0x446e5c]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call esi
push 0x50fc10
push 0
lea eax, [ebx + 0x1c]
mov dword [0x50fc10], 0x14
push eax
push 0
push 0x14
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebx + 0x38]
movzx eax, byte [ebx + 0x35]
push eax
movzx eax, byte [ebx + 0x34]
push eax
movzx eax, byte [ebx + 0x33]
push eax
movzx eax, byte [ebx + 0x32]
push eax
movzx eax, byte [ebx + 0x31]
push eax
movzx eax, byte [ebx + 0x30]
push eax
lea eax, [ebx + 0x11]
push eax
push str.INSERT_INTO_OptionData__Name_SkillKey_GameOption_Qkey_Wkey_Ekey_ChatWindow_Rkey_QWERLevel__VALUES___s____d__d__d__d__d__d__d_
push 0x446e50
call fcn.0041ad10
add esp, 0x28
push dword [0x446e5c]
call edi
push 2
push dword [0x446e5c]
call esi
pop edi
pop esi
pop ebx
ret