joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402460
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 0x43ddd8
mov dword [ebp - 0x20], 0x1820c1
movq qword [ebp - 0x1a], xmm0
mov byte [ebp - 0x10], al
mov byte [ebp - 0xf], 0
call fcn.00414560
add esp, 0xc
test al, al
je 0x40255c
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40255c
push str.WCoinC
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4024de
or eax, eax
jmp 0x4024ef
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
push str.WCoinP
mov dword [ebp - 0xc], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x402505
or eax, eax
jmp 0x402516
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
push str.GoblinPoint
mov dword [ebp - 8], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40252c
or eax, eax
jmp 0x40253d
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
push dword [0x43dde4]
mov dword [ebp - 4], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x4025ca
push dword [0x43dde4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43dde4]
call ebx
push esi
push str.INSERT_INTO_CashShopData__AccountID_WCoinC_WCoinP_GoblinPoint__VALUES___s_0_0_0_
push 0x43ddd8
call fcn.00414560
add esp, 0xc
push dword [0x43dde4]
test al, al
jne 0x4025a9
call edi
push 2
push dword [0x43dde4]
call ebx
mov byte [ebp - 0xf], 1
jmp 0x4025ca
call edi
push 2
push dword [0x43dde4]
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.00415e20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4025f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov ecx, dword [ebp + 8]
movq xmm0, qword [ecx + 6]
lea edx, [ecx + 6]
push esi
push edi
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]
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 0x43ddd8
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.00414560
add esp, 0xc
test al, al
je 0x40277b
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40277b
push str.WCoinC
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x402696
or eax, eax
jmp 0x4026a7
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
push str.WCoinP
mov dword [ebp - 0x10], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4026bd
or eax, eax
jmp 0x4026ce
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
push str.GoblinPoint
mov dword [ebp - 0xc], eax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4026e4
or eax, eax
jmp 0x4026f5
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
push dword [0x43dde4]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov dword [ebp - 8], eax
call esi
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43dde4]
call edi
push 0x53
push dword [ebp + 8]
push str.SELECT_count___FROM_CashShopInventory_WHERE_AccountID_s_AND_InventoryType_d
push 0x43ddd8
call fcn.00414560
add esp, 0x10
test al, al
je 0x402767
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x402767
push 0x43f5be
call fcn.0041d99e
add esp, 4
mov dword [ebp - 4], eax
push dword [0x43dde4]
call esi
push 2
push dword [0x43dde4]
call edi
jmp 0x402799
push dword [0x43dde4]
call esi
push 2
push dword [0x43dde4]
call edi
jmp 0x402795
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43dde4]
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.00415e20
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x403120
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x43d040]
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 0x43ddd8
movq qword [ebp - 0x14], xmm0
call fcn.00414560
add esp, 0xc
test al, al
je 0x403267
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x403267
push str.WCoinC
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4031a9
mov dword [ebp - 0x20], eax
jmp 0x4031bd
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
mov dword [ebp - 0x20], eax
push str.WCoinP
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4031d1
mov dword [ebp - 0x1c], eax
jmp 0x4031e5
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
mov dword [ebp - 0x1c], eax
push str.GoblinPoint
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4031f9
mov dword [ebp - 0x18], eax
jmp 0x40320d
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
mov dword [ebp - 0x18], eax
push dword [0x43dde4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43dde4]
call esi
mov edx, dword [ebx + 0x24]
mov eax, closesocket
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, closesocket
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 0x403297
push dword [0x43dde4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43dde4]
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 0x43ddd8
call fcn.00414560
add esp, 0x18
push dword [0x43dde4]
call edi
push 2
push dword [0x43dde4]
call esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417427
mov esp, ebp
pop ebp
ret 4
Function at 0x4032d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43d040]
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 0x43ddd8
movq qword [ebp - 0x14], xmm0
call fcn.00414560
add esp, 0xc
test al, al
je 0x40344b
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40344b
push str.WCoinC
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x403358
mov dword [ebp - 0x20], eax
jmp 0x40336c
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
mov dword [ebp - 0x20], eax
push str.WCoinP
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x403380
mov dword [ebp - 0x1c], eax
jmp 0x403394
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
mov dword [ebp - 0x1c], eax
push str.GoblinPoint
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4033a8
mov dword [ebp - 0x18], eax
jmp 0x4033bc
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
mov dword [ebp - 0x18], eax
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43dde4]
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 0x43ddd8
call fcn.00414560
add esp, 0x18
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00417427
mov esp, ebp
pop ebp
ret 4
push dword [0x43dde4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43dde4]
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 0x43ddd8
call fcn.00414560
add esp, 0x18
push dword [0x43dde4]
call edi
push 2
push dword [0x43dde4]
call esi
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00417427
mov esp, ebp
pop ebp
ret 4
Function at 0x404260
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea esi, [ebx + 0x13]
push esi
lea edi, [ebx + 8]
push edi
push str.SELECT__FROM_CHAOS_BOX_GENESIS_WHERE_Account_s_and_Name_s
push 0x43ddd8
call fcn.00414560
add esp, 0x10
test al, al
je 0x404355
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x404355
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp byte [ebx + 0x79f], 0
jne 0x4042fb
push esi
push edi
push str.DELETE_FROM_CHAOS_BOX_GENESIS_WHERE_Account_s_and_Name_s
push 0x43ddd8
call fcn.00414560
add esp, 0x10
push dword [0x43dde4]
mov eax, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call eax
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43dde4]
call eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x5cf8e0
push 0
lea eax, [ebx + 0x1e]
mov dword [0x5cf8e0], 0x780
push eax
push 0
push 0x780
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
movzx eax, byte [ebx + 0x79e]
push esi
push edi
push dword [ebx + 0x7a4]
push dword [ebx + 0x7a0]
push eax
push str.UPDATE_CHAOS_BOX_GENESIS_SET_Items___State_d__SelectedKey_d__SelectedComb_d_WHERE_Account_s_and_Name_s
push 0x43ddd8
call fcn.00414560
add esp, 0x1c
jmp 0x4042d8
push dword [0x43dde4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43dde4]
call esi
push dword [ebx + 0x7a4]
movzx eax, byte [ebx + 0x79e]
push dword [ebx + 0x7a0]
push eax
lea eax, [ebx + 0x13]
push eax
lea eax, [ebx + 8]
push eax
push str.INSERT_INTO_CHAOS_BOX_GENESIS__Account_Name__State__SelectedKey__SelectedComb__VALUES___s___s___d___d___d_
push 0x43ddd8
call fcn.00414560
add esp, 0x1c
push dword [0x43dde4]
call edi
push 2
push dword [0x43dde4]
call esi
lea eax, [ebx + 0x13]
push eax
lea eax, [ebx + 8]
push eax
push 0x780
push 0x780
push str.UPDATE_CHAOS_BOX_GENESIS_SET_ItemsCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_Account_s_AND_Name_s
push 0x43ddd8
call fcn.00414560
add esp, 0x18
push dword [0x43dde4]
call edi
push 2
push dword [0x43dde4]
call esi
push 0x5cf8e0
push 0
lea eax, [ebx + 0x1e]
mov dword [0x5cf8e0], 0x780
push eax
push 0
push 0x780
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
lea eax, [ebx + 0x13]
push eax
lea eax, [ebx + 8]
push eax
push str.UPDATE_CHAOS_BOX_GENESIS_SET_Items__WHERE_Account_s_and_Name_s
push 0x43ddd8
call fcn.00414560
add esp, 0x10
push dword [0x43dde4]
call edi
push 2
push dword [0x43dde4]
call esi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x406990
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x43d040]
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 0x43ddd8
call fcn.00414560
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
add esp, 0xc
push dword [0x43dde4]
call ebx
push str.GUID
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x4069eb
or edi, eax
jmp 0x4069fe
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
mov edi, eax
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x424]
movq xmm0, qword [esi]
push edi
mov dword [ebp - 0x420], 0x721204c2
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 eax
push str.SELECT_Memo_Photo_Dir_Act_FROM_T_FriendMail_WHERE_MemoIndex_d_AND_GUID_d
push 0x43ddd8
movq qword [ebp - 0x41a], xmm0
mov word [ebp - 0x40e], ax
call fcn.00414560
add esp, 0x10
push dword [0x43dde4]
call ebx
push 0x12
lea eax, [ebp - 0x40a]
push eax
push str.Photo
call fcn.00414800
push 0x43710c
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x406aa0
or eax, eax
jmp 0x406ab1
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
push 0x437110
mov byte [ebp - 0x3f8], al
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x406aca
or eax, eax
jmp 0x406adb
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
mov byte [ebp - 0x3f7], al
lea eax, [ebp - 0x3f6]
push 0x3e8
push eax
push str.Memo
call fcn.00414800
lea ecx, [ebp - 0x3f6]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406b00
push dword [0x43dde4]
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 [0x43dde4]
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 0x43ddd8
call fcn.00414560
add esp, 0x10
push dword [0x43dde4]
call esi
push 2
push dword [0x43dde4]
call ebx
mov ecx, dword [ebp - 0x428]
lea edx, [ebp - 0x420]
push 0x412
call fcn.004058e0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00417427
mov esp, ebp
pop ebp
ret
Function at 0x406b90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x43d040]
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 0x43ddd8
call fcn.00414560
add esp, 0xc
test al, al
je 0x406d48
push dword [0x43dde4]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
call ebx
cmp ax, 0x64
je 0x406d48
push str.GUID
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x406bee
or esi, eax
jmp 0x406c01
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
mov esi, eax
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push esi
push str.SELECT_FriendName_Del_FROM_T_FriendList_WHERE_GUID_d
push 0x43ddd8
call fcn.00414560
add esp, 0x10
test al, al
je 0x406d48
push dword [0x43dde4]
call ebx
cmp ax, 0x64
je 0x406d48
nop word [eax + eax]
push str.FriendName
mov word [ebp - 0x24], 0x1ec1
mov byte [ebp - 0x22], 0x62
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x406c7d
xorps xmm0, xmm0
mov word [ebp - 0x16], 0
movq qword [ebp - 0x1e], xmm0
mov byte [ebp - 0x14], 0
jmp 0x406c96
shl eax, 0xd
push 0xa
add eax, 0x43f5be
push eax
lea eax, [ebp - 0x1e]
push 0xb
push eax
call fcn.00420d4d
add esp, 0x10
lea eax, [ebp - 0x1e]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004044b0
test al, al
je 0x406d36
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 0x406d13
push 0x436f30
call fcn.004147b0
cmp eax, 0xffffffff
je 0x406d13
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
test eax, eax
jne 0x406d13
lea eax, [ebp - 0x13]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004044b0
test al, al
mov eax, 0xffff
je 0x406d0e
movzx eax, word [ebp - 0x48]
mov byte [ebp - 8], al
jmp 0x406d17
mov byte [ebp - 8], 0xff
mov ecx, dword [ebp - 0x2c]
call fcn.00416dd0
test eax, eax
je 0x406d36
movzx ecx, byte [ebp - 0x23]
lea edx, [ebp - 0x24]
push ecx
mov ecx, dword [eax + 4]
call fcn.004058e0
add esp, 4
push dword [0x43dde4]
call ebx
cmp ax, 0x64
jne 0x406c50
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417427
mov esp, ebp
pop ebp
ret
Function at 0x406d80
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x43d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push edx
push str.SELECT_MemoIndex_FriendName_wDate_Subject_bRead_FROM_T_FriendMail_WHERE_GUID_d
push 0x43ddd8
mov dword [ebp - 0x6c], ecx
call fcn.00414560
add esp, 0xc
test al, al
je 0x406f17
push dword [0x43dde4]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
call ebx
cmp ax, 0x64
je 0x406f17
mov di, word [ebp + 8]
push str.MemoIndex
mov dword [ebp - 0x68], 0x715e00c2
mov word [ebp - 0x64], di
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x406dee
or eax, eax
jmp 0x406dff
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
push str.FriendName
mov word [ebp - 0x62], ax
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x406e26
xorps xmm0, xmm0
mov word [ebp - 0x58], 0
movq qword [ebp - 0x60], xmm0
mov byte [ebp - 0x56], 0
jmp 0x406e3f
shl eax, 0xd
push 0xa
add eax, 0x43f5be
push eax
lea eax, [ebp - 0x60]
push 0xb
push eax
call fcn.00420d4d
add esp, 0x10
mov ax, word [esi + 8]
movq xmm0, qword [esi]
mov word [ebp - 0x4d], ax
mov al, byte [esi + 0xa]
push str.wDate
movq qword [ebp - 0x55], xmm0
mov byte [ebp - 0x4b], al
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x406e80
xorps xmm0, xmm0
mov dword [ebp - 0x32], 0
movups xmmword [ebp - 0x4a], xmm0
mov word [ebp - 0x2e], 0
movq qword [ebp - 0x3a], xmm0
jmp 0x406e99
shl eax, 0xd
push 0x1d
add eax, 0x43f5be
push eax
lea eax, [ebp - 0x4a]
push 0x1e
push eax
call fcn.00420d4d
add esp, 0x10
push str.Subject
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x406eb5
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x1c], xmm0
jmp 0x406ece
shl eax, 0xd
push 0x1f
add eax, 0x43f5be
push eax
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.00420d4d
add esp, 0x10
push str.bRead
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x406ee1
or eax, eax
jmp 0x406ef2
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
mov ecx, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
push 0x5e
mov byte [ebp - 0xc], al
call fcn.004058e0
add esp, 4
push dword [0x43dde4]
call ebx
cmp ax, 0x64
jne 0x406dd0
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417427
mov esp, ebp
pop ebp
ret
Function at 0x40e9f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x43d040]
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]
mov word [ebp - 0x32], ax
mov al, byte [ecx + 0x10]
add ecx, 0x11
push ebx
push esi
mov byte [ebp - 0x30], al
mov esi, edx
movzx eax, word [ecx + 8]
mov bl, 0x3c
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 0x43ddd8
mov word [ebp - 0x40], 0x3cc1
mov byte [ebp - 0x3e], 8
movq qword [ebp - 0x2f], xmm0
mov byte [ebp - 0x25], al
call fcn.00414560
add esp, 0xc
test al, al
je 0x40ebbb
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40ebbb
push 0x14
lea eax, [ebp - 0x24]
push eax
push str.SkillKey
call fcn.00414800
push str.GameOption
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40ea9e
or eax, eax
jmp 0x40eaaf
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
push str.Qkey
mov byte [ebp - 0x10], al
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40eac5
or eax, eax
jmp 0x40ead6
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
push str.Wkey
mov byte [ebp - 0xf], al
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40eaec
or eax, eax
jmp 0x40eafd
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
push str.Ekey
mov byte [ebp - 0xe], al
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40eb13
or eax, eax
jmp 0x40eb24
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
push str.ChatWindow
mov byte [ebp - 0xd], al
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40eb3a
or eax, eax
jmp 0x40eb4b
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
push str.Rkey
mov byte [ebp - 0xc], al
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40eb61
or eax, eax
jmp 0x40eb72
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
push str.QWERLevel
mov byte [ebp - 0xb], al
call fcn.004147b0
cmp eax, 0xffffffff
jne 0x40eb88
or eax, eax
jmp 0x40eb99
shl eax, 0xd
add eax, 0x43f5be
push eax
call fcn.0041d99e
add esp, 4
push dword [0x43dde4]
mov dword [ebp - 8], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov bl, byte [ebp - 0x3f]
jmp 0x40ebfb
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43dde4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movaps xmm0, xmmword [0x43a440]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x10], 0xffffff15
mov word [ebp - 0xc], 0xff0f
mov dword [ebp - 8], 0xffffffff
movzx eax, bl
push eax
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.00415e20
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00417427
mov esp, ebp
pop ebp
ret