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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, dword [ebp + 8]
movq xmm0, qword [ecx + 6]
push ebx
push esi
movzx eax, word [ecx + 4]
lea esi, [ecx + 6]
push edi
mov word [ebp - 0x1c], ax
movzx eax, word [esi + 8]
push esi
mov word [ebp - 0x12], ax
mov al, byte [esi + 0xa]
push str.SELECT__FROM_CashShopData_WHERE_AccountID_s
push 0x422408
mov dword [ebp - 0x20], 0x1820c1
movq qword [ebp - 0x1a], xmm0
mov byte [ebp - 0x10], al
mov byte [ebp - 0xf], 0
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40250a
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40250a
push str.WCoinC
call fcn.00415100
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x402495
or eax, 0xffffffff
jmp 0x4024a3
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.WCoinP
mov dword [ebp - 0xc], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4024b9
or eax, eax
jmp 0x4024c7
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.GoblinPoint
mov dword [ebp - 8], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4024dd
or eax, eax
jmp 0x4024eb
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push dword [0x422414]
mov dword [ebp - 4], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x402578
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call ebx
push esi
push str.INSERT_INTO_CashShopData__AccountID_WCoinC_WCoinP_GoblinPoint__VALUES___s_0_0_0_
push 0x422408
call fcn.00414eb0
add esp, 0xc
push dword [0x422414]
test al, al
jne 0x402557
call edi
push 2
push dword [0x422414]
call ebx
mov byte [ebp - 0xf], 1
jmp 0x402578
call edi
push 2
push dword [0x422414]
call ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x20
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
call fcn.004163f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402590
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov ecx, dword [ebp + 8]
movq xmm0, qword [ecx + 6]
lea edx, [ecx + 6]
push ebx
push esi
movzx eax, word [ecx + 4]
mov word [ebp - 0x38], ax
movzx eax, word [edx + 8]
mov word [ebp - 0x2e], ax
mov al, byte [edx + 0xa]
mov byte [ebp - 0x2c], al
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x20], eax
movzx eax, word [ecx + 0x20]
push edi
mov word [ebp - 0x1c], ax
mov eax, dword [ecx + 0x24]
push edx
mov dword [ebp - 0x18], eax
mov al, byte [ecx + 0x28]
push str.SELECT__FROM_CashShopData_WHERE_AccountID_s
push 0x422408
mov dword [ebp - 0x3c], 0x1183cc1
mov dword [ebp + 8], edx
movq qword [ebp - 0x36], xmm0
mov byte [ebp - 0x2b], 0
mov byte [ebp - 0x14], al
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x402717
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x402717
push str.WCoinC
call fcn.00415100
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x40263e
or eax, 0xffffffff
jmp 0x40264c
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.WCoinP
mov dword [ebp - 0x10], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x402662
or eax, eax
jmp 0x402670
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.GoblinPoint
mov dword [ebp - 0xc], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x402686
or eax, eax
jmp 0x402694
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov dword [ebp - 8], eax
call edi
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call ebx
push 0x53
push dword [ebp + 8]
push str.SELECT_count___FROM_CashShopInventory_WHERE_AccountID_s_AND_InventoryType_d
push 0x422408
call fcn.00414eb0
add esp, 0x10
test al, al
je 0x402703
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x402703
push 0x423036
call esi
add esp, 4
mov dword [ebp - 4], eax
push dword [0x422414]
call edi
push 2
push dword [0x422414]
call ebx
jmp 0x402735
push dword [0x422414]
call edi
push 2
push dword [0x422414]
call ebx
jmp 0x402731
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x2b], 1
push 0x3c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0xc]
call fcn.004163f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4030d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x422008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x11
mov ecx, 6
push esi
push edi
cmp byte [ebx + 0x11], 0
cmovne ecx, eax
mov ax, word [ecx + ebx + 8]
movq xmm0, qword [ecx + ebx]
mov word [ebp - 0xc], ax
mov al, byte [ecx + ebx + 0xa]
mov byte [ebp - 0xa], al
lea eax, [ebp - 0x14]
push eax
push str.SELECT_WCoinC_WCoinP_GoblinPoint_FROM_CashShopData_WHERE_AccountID_s
push 0x422408
movq qword [ebp - 0x14], xmm0
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x403218
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x403218
push str.WCoinC
call fcn.00415100
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x403163
mov dword [ebp - 0x20], 0xffffffff
jmp 0x403174
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
mov dword [ebp - 0x20], eax
push str.WCoinP
call fcn.00415100
cmp eax, 0xffffffff
jne 0x403188
mov dword [ebp - 0x1c], eax
jmp 0x403199
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
mov dword [ebp - 0x1c], eax
push str.GoblinPoint
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4031ad
mov dword [ebp - 0x18], eax
jmp 0x4031be
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
mov dword [ebp - 0x18], eax
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
mov edx, dword [ebx + 0x24]
mov eax, bind
add edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
cmp edx, eax
cmova edx, eax
add ecx, dword [ebx + 0x20]
cmp ecx, eax
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
add eax, dword [ebp - 0x20]
mov ebx, bind
cmp eax, 0x7fffffff
cmova eax, ebx
lea ebx, [ebp - 0x14]
push ebx
push edx
push ecx
push eax
push str.UPDATE_CashShopData_SET_WCoinC_d_WCoinP_d_GoblinPoint_d_WHERE_AccountID_s
jmp 0x403248
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call esi
push dword [ebx + 0x24]
lea eax, [ebp - 0x14]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push eax
push str.INSERT_INTO_CashShopData__AccountID_WCoinC_WCoinP_GoblinPoint__VALUES___s__d__d__d_
push 0x422408
call fcn.00414eb0
add esp, 0x18
push dword [0x422414]
call edi
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417e1d
mov esp, ebp
pop ebp
ret 4
Function at 0x403280
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x422008]
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 0x422408
movq qword [ebp - 0x14], xmm0
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x4033fc
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4033fc
push str.WCoinC
call fcn.00415100
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x403312
mov dword [ebp - 0x20], 0xffffffff
jmp 0x403323
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
mov dword [ebp - 0x20], eax
push str.WCoinP
call fcn.00415100
cmp eax, 0xffffffff
jne 0x403337
mov dword [ebp - 0x1c], eax
jmp 0x403348
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
mov dword [ebp - 0x1c], eax
push str.GoblinPoint
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40335c
mov dword [ebp - 0x18], eax
jmp 0x40336d
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
mov dword [ebp - 0x18], eax
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
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 0x422408
call fcn.00414eb0
add esp, 0x18
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417e1d
mov esp, ebp
pop ebp
ret 4
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
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 0x422408
call fcn.00414eb0
add esp, 0x18
push dword [0x422414]
call edi
push 2
push dword [0x422414]
call esi
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00417e1d
mov esp, ebp
pop ebp
ret 4
Function at 0x406670
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x422008]
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 edi, [eax + 8]
push edi
push str.SELECT_GUID_FROM_T_FriendMain_WHERE_Name_s
push 0x422408
call fcn.00414eb0
add esp, 0xc
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.GUID
call fcn.00415100
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x4066d0
or ebx, 0xffffffff
jmp 0x4066e0
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
mov ebx, eax
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x424]
movq xmm0, qword [edi]
push ebx
mov dword [ebp - 0x420], 0x721204c2
movzx eax, word [ecx + 4]
mov word [ebp - 0x41c], ax
movzx eax, word [edi + 8]
mov word [ebp - 0x412], ax
mov al, byte [edi + 0xa]
mov byte [ebp - 0x410], al
movzx eax, word [ecx + 6]
push eax
push str.SELECT_Memo_Photo_Dir_Act_FROM_T_FriendMail_WHERE_MemoIndex_d_AND_GUID_d
push 0x422408
movq qword [ebp - 0x41a], xmm0
mov word [ebp - 0x40e], ax
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
push 0x12
lea eax, [ebp - 0x40a]
push eax
push str.Photo
call fcn.00415160
push 0x41b8b4
call fcn.00415100
cmp eax, 0xffffffff
jne 0x406786
or eax, eax
jmp 0x406794
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push 0x41b8b8
mov byte [ebp - 0x3f8], al
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4067ad
or eax, eax
jmp 0x4067bb
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
mov byte [ebp - 0x3f7], al
lea eax, [ebp - 0x3f6]
push 0x3e8
push eax
push str.Memo
call fcn.00415160
lea ecx, [ebp - 0x3f6]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4067e0
push dword [0x422414]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
sub ecx, edx
mov word [ebp - 0x40c], cx
call esi
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call edi
mov eax, dword [ebp - 0x424]
push ebx
movzx eax, word [eax + 6]
push eax
push str.UPDATE_T_FriendMail_SET_bRead1_WHERE_MemoIndex_d_AND_GUID_d
push 0x422408
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call esi
push 2
push dword [0x422414]
call edi
mov ecx, dword [ebp - 0x428]
lea edx, [ebp - 0x420]
push 0x412
call fcn.004053e0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00417e1d
mov esp, ebp
pop ebp
ret
Function at 0x406870
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x422008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 0x25], dl
push edi
push str.SELECT_GUID_FROM_T_FriendMain_WHERE_Name_s
push 0x422408
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x406a6c
push dword [0x422414]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
call ebx
cmp ax, 0x64
je 0x406a6c
push str.GUID
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4068ce
or esi, eax
jmp 0x4068e2
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
mov esi, eax
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push esi
push str.SELECT_FriendName_Del_FROM_T_FriendList_WHERE_GUID_d
push 0x422408
call fcn.00414eb0
add esp, 0x10
test al, al
je 0x406a6c
push dword [0x422414]
call ebx
cmp ax, 0x64
je 0x406a6c
nop dword [eax + eax]
push str.FriendName
mov word [ebp - 0x24], 0x1ec1
mov byte [ebp - 0x22], 0x62
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40695d
xorps xmm0, xmm0
mov word [ebp - 0x16], 0
movq qword [ebp - 0x1e], xmm0
mov byte [ebp - 0x14], 0
jmp 0x406977
shl eax, 0xd
push 0xa
add eax, 0x423036
push eax
lea eax, [ebp - 0x1e]
push 0xb
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
add esp, 0x10
lea eax, [ebp - 0x1e]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00404510
test al, al
je 0x406a5a
cmp byte [ebp - 0x25], 0
movzx eax, word [ebp - 0x2e]
movq xmm0, qword [edi]
mov word [ebp - 0x20], ax
movzx eax, word [edi + 8]
mov word [ebp - 0xb], ax
mov al, byte [edi + 0xa]
movq qword [ebp - 0x13], xmm0
mov byte [ebp - 9], al
jne 0x4069f9
push 0x41b6d4
call fcn.00415100
cmp eax, 0xffffffff
jne 0x4069c4
or eax, eax
jmp 0x4069d6
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
test eax, eax
jne 0x4069f9
lea eax, [ebp - 0x13]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00404510
test al, al
mov eax, 0xffff
je 0x4069f4
movzx eax, word [ebp - 0x48]
mov byte [ebp - 8], al
jmp 0x4069fd
mov byte [ebp - 8], 0xff
mov si, word [ebp - 0x2c]
xor edx, edx
xor eax, eax
mov ecx, dword [eax + 0x4ec6b4]
test ecx, ecx
js 0x406a2f
cmp ecx, 0x14
jge 0x406a2f
cmp dword [eax + 0x4ec6b8], 0
je 0x406a2f
cmp dword [eax + 0x4ec6cc], 0xffffffff
je 0x406a2f
cmp word [eax + 0x4ec70c], si
je 0x406a3c
add eax, 0x68
inc edx
cmp eax, 0x820
jl 0x406a05
jmp 0x406a5a
imul ecx, edx, 0x68
add ecx, 0x4ec6b0
je 0x406a5a
movzx eax, byte [ebp - 0x23]
lea edx, [ebp - 0x24]
mov ecx, dword [ecx + 4]
push eax
call fcn.004053e0
add esp, 4
push dword [0x422414]
call ebx
cmp ax, 0x64
jne 0x406930
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417e1d
mov esp, ebp
pop ebp
ret
Function at 0x406aa0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x422008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
push str.SELECT_MemoIndex_FriendName_wDate_Subject_bRead_FROM_T_FriendMail_WHERE_GUID_d
push 0x422408
mov dword [ebp - 0x6c], ecx
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x406c40
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x406c40
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
nop word [eax + eax]
mov ax, word [ebp + 8]
push str.MemoIndex
mov dword [ebp - 0x68], 0x715e00c2
mov word [ebp - 0x64], ax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x406b22
or eax, eax
jmp 0x406b30
shl eax, 0xd
add eax, 0x423036
push eax
call ebx
add esp, 4
push str.FriendName
mov word [ebp - 0x62], ax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x406b57
xorps xmm0, xmm0
mov word [ebp - 0x58], 0
movq qword [ebp - 0x60], xmm0
mov byte [ebp - 0x56], 0
jmp 0x406b6d
shl eax, 0xd
push 0xa
add eax, 0x423036
push eax
lea eax, [ebp - 0x60]
push 0xb
push eax
call esi
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.00415100
cmp eax, 0xffffffff
jne 0x406bae
xorps xmm0, xmm0
mov dword [ebp - 0x32], 0
movups xmmword [ebp - 0x4a], xmm0
mov word [ebp - 0x2e], 0
movq qword [ebp - 0x3a], xmm0
jmp 0x406bc4
shl eax, 0xd
push 0x1d
add eax, 0x423036
push eax
lea eax, [ebp - 0x4a]
push 0x1e
push eax
call esi
add esp, 0x10
push str.Subject
call fcn.00415100
cmp eax, 0xffffffff
jne 0x406be0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x1c], xmm0
jmp 0x406bf6
shl eax, 0xd
push 0x1f
add eax, 0x423036
push eax
lea eax, [ebp - 0x2c]
push 0x20
push eax
call esi
add esp, 0x10
push str.bRead
call fcn.00415100
cmp eax, 0xffffffff
jne 0x406c09
or eax, eax
jmp 0x406c17
shl eax, 0xd
add eax, 0x423036
push eax
call ebx
add esp, 4
mov ecx, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
push 0x5e
mov byte [ebp - 0xc], al
call fcn.004053e0
add esp, 4
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x406b00
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417e1d
mov esp, ebp
pop ebp
ret
Function at 0x40f380
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
push edi
push str.EXEC_WZ_GetItemSerial
push 0x422408
movzx eax, word [esi + 4]
movq xmm0, qword [esi + 6]
mov word [ebp - 0x30], ax
movzx eax, word [esi + 0xe]
mov word [ebp - 0x26], ax
mov al, byte [esi + 0x10]
mov byte [ebp - 0x24], al
mov al, byte [esi + 0x11]
mov byte [ebp - 0x23], al
mov al, byte [esi + 0x12]
mov byte [ebp - 0x22], al
mov al, byte [esi + 0x13]
mov word [ebp - 0x34], 0x30c1
mov byte [ebp - 0x32], 7
movq qword [ebp - 0x2e], xmm0
mov byte [ebp - 0x21], al
call fcn.00414eb0
add esp, 8
test al, al
je 0x40f426
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40f426
push 0x423036
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
add esp, 4
mov dword [ebp - 0x20], eax
push dword [0x422414]
call edi
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call ebx
mov eax, dword [ebp - 0x20]
jmp 0x40f449
push dword [0x422414]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call ebx
xor eax, eax
mov dword [ebp - 0x20], eax
movzx ecx, word [esi + 0x14]
mov edx, 0x1a04
cmp cx, dx
je 0x40f461
mov edx, 0x1a05
cmp cx, dx
jne 0x40f4c8
push eax
push str.SELECT_ItemSerial_FROM_T_PetItem_Info_WHERE_ItemSerial_d
push 0x422408
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40f48a
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x40f4b6
push dword [0x422414]
call edi
push 2
push dword [0x422414]
call ebx
mov eax, dword [ebp - 0x20]
push 0
push 1
push eax
push str.INSERT_INTO_T_PetItem_Info__ItemSerial_Pet_Level_Pet_Exp__VALUES___d__d__d_
push 0x422408
call fcn.00414eb0
add esp, 0x14
push dword [0x422414]
call edi
push 2
push dword [0x422414]
call ebx
movzx eax, word [esi + 0x14]
mov word [ebp - 0x1c], ax
mov al, byte [esi + 0x16]
mov byte [ebp - 0x1a], al
mov al, byte [esi + 0x17]
mov byte [ebp - 0x19], al
mov al, byte [esi + 0x18]
mov byte [ebp - 0x18], al
mov al, byte [esi + 0x19]
mov byte [ebp - 0x17], al
mov al, byte [esi + 0x1a]
mov byte [ebp - 0x16], al
mov al, byte [esi + 0x1b]
mov byte [ebp - 0x15], al
movzx eax, word [esi + 0x1c]
mov word [ebp - 0x14], ax
mov al, byte [esi + 0x1e]
mov byte [ebp - 0x12], al
mov al, byte [esi + 0x1f]
mov byte [ebp - 0x11], al
mov al, byte [esi + 0x20]
mov byte [ebp - 0x10], al
mov eax, dword [esi + 0x21]
mov dword [ebp - 0xf], eax
mov al, byte [esi + 0x25]
mov byte [ebp - 0xb], al
mov al, byte [esi + 0x26]
mov byte [ebp - 0xa], al
mov eax, dword [esi + 0x28]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push 0x30
push eax
push dword [ebp - 4]
call fcn.004163f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f540
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x422008]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
mov word [ebp - 0x3c], ax
movzx eax, word [ecx + 0xe]
push ebx
mov word [ebp - 0x32], ax
mov bl, 0x3c
mov al, byte [ecx + 0x10]
add ecx, 0x11
push esi
push edi
mov byte [ebp - 0x30], al
mov edi, edx
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 0x422408
mov word [ebp - 0x40], 0x3cc1
mov byte [ebp - 0x3e], 8
movq qword [ebp - 0x2f], xmm0
mov byte [ebp - 0x25], al
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x40f6fe
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40f6fe
push 0x14
lea eax, [ebp - 0x24]
push eax
push str.SkillKey
call fcn.00415160
push str.GameOption
call fcn.00415100
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x40f5f6
or eax, 0xffffffff
jmp 0x40f604
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Qkey
mov byte [ebp - 0x10], al
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f61a
or eax, eax
jmp 0x40f628
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Wkey
mov byte [ebp - 0xf], al
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f63e
or eax, eax
jmp 0x40f64c
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Ekey
mov byte [ebp - 0xe], al
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f662
or eax, eax
jmp 0x40f670
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.ChatWindow
mov byte [ebp - 0xd], al
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f686
or eax, eax
jmp 0x40f694
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.Rkey
mov byte [ebp - 0xc], al
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f6aa
or eax, eax
jmp 0x40f6b8
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push str.QWERLevel
mov byte [ebp - 0xb], al
call fcn.00415100
cmp eax, 0xffffffff
jne 0x40f6ce
or eax, eax
jmp 0x40f6dc
shl eax, 0xd
add eax, 0x423036
push eax
call esi
add esp, 4
push dword [0x422414]
mov dword [ebp - 8], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov bl, byte [ebp - 0x3f]
jmp 0x40f73e
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movaps xmm0, xmmword [0x41f380]
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.004163f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417e1d
mov esp, ebp
pop ebp
ret