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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ax, word [esi + 4]
push ebx
push edi
lea edi, [esi + 6]
push edi
push str.SELECT__FROM_Character_WHERE_Name_s
mov ecx, 0x424ee0
mov dword [ebp - 0xc], 0x70f08c1
mov word [ebp - 8], ax
mov byte [ebp - 6], 0
call fcn.00417790
add esp, 8
test al, al
je 0x408282
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x408282
mov edx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call ebx
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx ecx, word [esi + 0x12]
push edi
push ecx
push str.UPDATE_CHARACTER_SET_CTLCODE1_BLOC_EXPIRE_getdate___d__WHERE_NAME_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 0xc
test al, al
jne 0x408264
mov edx, dword [0x424eec]
push edx
call ebx
mov eax, dword [0x424eec]
push 2
push eax
jmp 0x408297
mov ecx, dword [0x424eec]
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 6], 1
jmp 0x40829d
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xc]
push edx
push eax
mov ebx, 8
call fcn.004198e0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4082c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
mov ax, word [esi + 4]
push edi
add esi, 6
push esi
push str.SELECT__FROM_CustomGift_WHERE_AccountID_s
mov ecx, 0x424ee0
mov dword [ebp - 0xc], 0x80f08c1
mov word [ebp - 8], ax
call fcn.00417790
add esp, 8
test al, al
je 0x40837d
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40837d
push str.Quantity
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40831e
or eax, eax
jmp 0x408330
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov edx, dword [0x424eec]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
inc al
push edx
mov byte [ebp - 6], al
call edi
mov eax, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push eax
call ebx
push esi
push str.UPDATE_CustomGift_SET_QuantityQuantity1_WHERE_AccountID_s
mov ecx, 0x424ee0
call fcn.00417790
mov ecx, dword [0x424eec]
add esp, 8
push ecx
call edi
mov edx, dword [0x424eec]
push 2
push edx
call ebx
jmp 0x4083e4
mov eax, dword [0x424eec]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call edi
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call ebx
push esi
push str.INSERT_INTO_CustomGift__AccountID_Quantity__VALUES___s_1_
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
jne 0x4083cc
mov edx, dword [0x424eec]
push edx
call edi
mov eax, dword [0x424eec]
push 2
push eax
call ebx
mov byte [ebp - 6], 0
jmp 0x4083e4
mov ecx, dword [0x424eec]
push ecx
call edi
mov edx, dword [0x424eec]
push 2
push edx
call ebx
mov byte [ebp - 6], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push ecx
mov ebx, 8
call fcn.004198e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409760
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
lea esi, [ebx + 6]
push esi
push str.SELECT_GUID_FROM_T_FriendMain_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 8
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.GUID
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40979a
or edi, eax
jmp 0x4097ae
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov edi, eax
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [ebx + 4]
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
mov ecx, edi
call fcn.00409e50
add esp, 0xc
pop edi
pop esi
pop ebp
ret
Function at 0x409b00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
push str.SELECT_FriendName_FROM_T_WaitFriend_WHERE_GUID_d
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x409c13
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x409c13
push esi
push edi
mov dx, word [ebp + 0x10]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov word [ebp - 0x1c], dx
movzx edx, word [ebx + 8]
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x1a], eax
mov al, byte [ebx + 0xa]
xor ecx, ecx
xor edi, edi
mov word [ebp - 0x20], 0x1cc1
mov byte [ebp - 0x1e], 0x61
mov word [ebp - 0x12], dx
mov byte [ebp - 0x10], al
cmp cx, word [0x424f54]
jge 0x409bbc
mov esi, 0x424f56
push esi
push str.FriendName
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x409bb7
movsx edx, word [0x424f54]
inc edi
add esi, 0x1e
cmp edi, edx
jl 0x409b84
xor eax, eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
jmp 0x409be8
cmp edi, 0xffffffff
jne 0x409bcd
xor eax, eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
jmp 0x409be8
push 0xa
shl edi, 0xd
add edi, 0x425b0e
push edi
lea eax, [ebp - 0xf]
push 0xb
push eax
call dword [sym.imp.MSVCR100.dll_strncpy_s]
add esp, 0x10
movzx ecx, byte [ebp - 0x1f]
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x20]
push edx
call fcn.004086c0
mov eax, dword [0x424eec]
add esp, 4
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x409b47
pop edi
pop esi
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret
Function at 0x409c40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push str.SELECT_GUID_FROM_T_FriendMain_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x409e23
mov eax, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
push eax
call ebx
cmp ax, 0x64
je 0x409e23
push esi
push str.GUID
call fcn.00417950
cmp eax, 0xffffffff
jne 0x409c98
or esi, eax
jmp 0x409cac
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov esi, eax
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push esi
push str.SELECT_FriendName_Del_FROM_T_FriendList_WHERE_GUID_d
mov ecx, 0x424ee0
call fcn.00417790
add esp, 0xc
test al, al
je 0x409df7
mov eax, dword [0x424eec]
push eax
call ebx
cmp ax, 0x64
je 0x409df7
mov ebx, dword [sym.imp.MSVCR100.dll_strncpy_s]
lea ecx, [ecx]
push str.FriendName
mov word [ebp - 0x24], 0x1ec1
mov byte [ebp - 0x22], 0x62
call fcn.00417950
cmp eax, 0xffffffff
jne 0x409d2a
xor eax, eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
mov byte [ebp - 0x14], al
jmp 0x409d40
shl eax, 0xd
push 0xa
add eax, 0x425b0e
push eax
lea ecx, [ebp - 0x1e]
push 0xb
push ecx
call ebx
add esp, 0x10
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x1e]
call fcn.00406be0
test al, al
je 0x409de1
cmp byte [ebp + 8], 0
movzx eax, word [ebp - 0x2a]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov word [ebp - 0x20], ax
movzx eax, word [edi + 8]
mov dword [ebp - 0x13], ecx
mov cl, byte [edi + 0xa]
mov dword [ebp - 0xf], edx
mov word [ebp - 0xb], ax
mov byte [ebp - 9], cl
jne 0x409dbe
push 0x41e5f4
call fcn.00417950
cmp eax, 0xffffffff
je 0x409dbe
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
test eax, eax
jne 0x409dbe
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x13]
call fcn.00406be0
test al, al
mov eax, 0xffff
je 0x409db9
movzx eax, word [ebp - 0x44]
mov byte [ebp - 8], al
jmp 0x409dc2
mov byte [ebp - 8], 0xff
mov edx, dword [ebp - 0x28]
call fcn.0041a480
test eax, eax
je 0x409de1
movzx ecx, byte [ebp - 0x23]
mov esi, dword [eax + 4]
lea edx, [ebp - 0x24]
push edx
call fcn.004086c0
add esp, 4
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x409d00
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret
Function at 0x40b590
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
push edi
xor eax, eax
push str.SELECT_ItemCount_FROM_GameServerInfo_WHERE_Number0
mov ecx, 0x424ee0
mov dword [ebp - 0xc], 0x10008c1
mov dword [ebp - 8], eax
call fcn.00417790
add esp, 4
test al, al
je 0x40b615
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40b615
push str.ItemCount
call fcn.00417950
cmp eax, 0xffffffff
jne 0x40b5e2
or eax, eax
jmp 0x40b5f4
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov ecx, dword [0x424eec]
push ecx
mov dword [ebp - 8], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40b659
mov eax, dword [0x424eec]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call edi
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call ebx
push str.INSERT_INTO_GameServerInfo__Number_ItemCount_ZenCount_AceItemCount__VALUES__0_0_0_0_
mov ecx, 0x424ee0
call fcn.00417790
mov edx, dword [0x424eec]
add esp, 4
push edx
call edi
mov eax, dword [0x424eec]
push 2
push eax
call ebx
lea ecx, [ebp - 0xc]
push ecx
push esi
mov ebx, 8
call fcn.004198e0
imul esi, esi, 0x68
mov eax, dword [ebp + 8]
movzx ebx, word [eax + 0x38]
movzx edi, word [eax + 4]
add eax, 6
push eax
add esi, 0x4ee808
lea ecx, [esi + 0x28]
push 0x32
push ecx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
mov ecx, dword [esi + 4]
push ebx
push edi
lea eax, [esi + 0x28]
push eax
push ecx
push str._ServerManager___d__ServerInfo___s____d____d_
push 0
mov word [esi + 0x5a], di
mov word [esi + 0x5c], bx
call fcn.0041a270
add esp, 0x24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c170
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov cx, word [eax + 4]
mov edx, dword [eax + 6]
push ebx
lea ebx, [eax + 6]
mov word [ebp - 0x50], cx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x4e], edx
mov dx, word [ebx + 8]
mov dword [ebp - 0x4a], ecx
mov cl, byte [ebx + 0xa]
add eax, 0x11
mov word [ebp - 0x46], dx
push esi
mov word [ebp - 0x54], 0x12c1
mov byte [ebp - 0x52], 3
mov byte [ebp - 0x44], cl
mov dword [ebp - 0x58], eax
xor edx, edx
lea esp, [esp]
mov cl, byte [eax + edx]
cmp cl, 0x20
je 0x40c31c
cmp cl, 0x22
je 0x40c31c
cmp cl, 0x27
je 0x40c31c
inc edx
cmp edx, 0xb
jl 0x40c1c0
push eax
push ebx
push str.EXEC_WZ_DeleteCharacter__s__s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 0xc
test al, al
je 0x40c31c
mov edx, dword [0x424eec]
mov esi, dword [sym.imp.ODBC32.dll_SQLFetch]
push edx
call esi
cmp ax, 0x64
je 0x40c31c
push 0x425b0e
call dword [sym.imp.MSVCR100.dll_atoi]
mov byte [ebp - 0x43], al
mov eax, dword [0x424eec]
add esp, 4
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp byte [ebp - 0x43], 1
jne 0x40c33c
push 0x36
lea edx, [ebp - 0x3b]
push 0
push edx
mov byte [ebp - 0x3c], 0
call sub.MSVCR100.dll_memset
push ebx
push str.SELECT__FROM_AccountCharacter_WHERE_Id_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 0x14
test al, al
je 0x40c311
mov eax, dword [0x424eec]
push eax
call esi
cmp ax, 0x64
je 0x40c311
push edi
mov esi, 0xb
lea edi, [ebp - 0x3c]
mov eax, str.GameID1
call fcn.00417a00
lea edi, [ebp - 0x31]
mov eax, str.GameID2
call fcn.00417a00
lea edi, [ebp - 0x26]
mov eax, str.GameID3
call fcn.00417a00
lea edi, [ebp - 0x1b]
mov eax, str.GameID4
call fcn.00417a00
lea edi, [ebp - 0x10]
mov eax, str.GameID5
call fcn.00417a00
call fcn.00417930
mov edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x3d]
push ecx
push edx
lea eax, [ebp - 0x3c]
call fcn.0041a340
add esp, 8
pop edi
test al, al
je 0x40c33c
movzx eax, byte [ebp - 0x3d]
push ebx
inc eax
push eax
push str.UPDATE_AccountCharacter_SET_GameID_dNULL_WHERE_Id_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 0xc
call fcn.00417930
jmp 0x40c33c
call fcn.00417930
mov byte [ebp - 0x43], 1
jmp 0x40c33c
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x43], 0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push eax
push ecx
mov ebx, 0x12
call fcn.004198e0
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret
Function at 0x40ce40
Capabilities:
Enumerate pe sections
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov ecx, dword [esi + 6]
movzx eax, word [esi + 4]
mov edx, dword [esi + 0xa]
mov dword [ebp - 0x2e], ecx
movzx ecx, byte [esi + 0x10]
mov word [ebp - 0x30], ax
movzx eax, word [esi + 0xe]
mov byte [ebp - 0x24], cl
movzx ecx, byte [esi + 0x13]
push ebx
mov dword [ebp - 0x2a], edx
mov dl, byte [esi + 0x11]
mov word [ebp - 0x26], ax
mov al, byte [esi + 0x12]
push edi
mov byte [ebp - 0x21], cl
push str.EXEC_WZ_GetItemSerial
mov ecx, 0x424ee0
mov word [ebp - 0x34], 0x30c1
mov byte [ebp - 0x32], 7
mov byte [ebp - 0x23], dl
mov byte [ebp - 0x22], al
call fcn.00417790
add esp, 4
test al, al
je 0x40cee3
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40cee3
push 0x425b0e
call dword [sym.imp.MSVCR100.dll_atoi]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov dword [ebp - 0x20], eax
mov eax, dword [0x424eec]
add esp, 4
push eax
call edi
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call ebx
jmp 0x40cf09
mov edx, dword [0x424eec]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call edi
mov eax, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push eax
call ebx
mov dword [ebp - 0x20], 0
movzx eax, word [esi + 0x14]
mov ecx, 0x1a04
cmp ax, cx
je 0x40cf25
mov edx, 0x1a05
cmp ax, dx
jne 0x40cfa7
mov eax, dword [ebp - 0x20]
push eax
push str.SELECT_ItemSerial_FROM_T_PetItem_Info_WHERE_ItemSerial_d
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x40cf65
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40cf65
mov edx, dword [0x424eec]
push edx
call edi
mov eax, dword [0x424eec]
push 2
push eax
jmp 0x40cfa5
mov ecx, dword [0x424eec]
push ecx
call edi
mov edx, dword [0x424eec]
push 2
push edx
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_
mov ecx, 0x424ee0
call fcn.00417790
mov ecx, dword [0x424eec]
add esp, 0x10
push ecx
call edi
mov edx, dword [0x424eec]
push 2
push edx
call ebx
mov ax, word [esi + 0x14]
movzx ecx, byte [esi + 0x16]
movzx edx, byte [esi + 0x17]
mov word [ebp - 0x1c], ax
movzx eax, byte [esi + 0x18]
mov byte [ebp - 0x1a], cl
movzx ecx, byte [esi + 0x19]
mov byte [ebp - 0x18], al
movzx eax, byte [esi + 0x1b]
mov byte [ebp - 0x17], cl
mov cx, word [esi + 0x1c]
mov byte [ebp - 0x19], dl
movzx edx, byte [esi + 0x1a]
mov byte [ebp - 0x15], al
movzx eax, byte [esi + 0x1f]
mov word [ebp - 0x14], cx
movzx ecx, byte [esi + 0x20]
mov byte [ebp - 0x16], dl
movzx edx, byte [esi + 0x1e]
mov byte [ebp - 0x11], al
movzx eax, byte [esi + 0x25]
mov byte [ebp - 0x10], cl
movzx ecx, byte [esi + 0x26]
mov byte [ebp - 0x12], dl
mov edx, dword [esi + 0x21]
mov byte [ebp - 0xb], al
lea eax, [ebp - 0x34]
mov byte [ebp - 0xa], cl
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xf], edx
mov edx, dword [esi + 0x28]
push eax
push ecx
mov ebx, 0x30
mov dword [ebp - 8], edx
call fcn.004198e0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dd00
Capabilities:
Reference sql statements

Disassembly:
push ebx
push edi
lea edi, [esi + 0x11]
push edi
push str.SELECT_Name_FROM_OptionData_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x40ddd1
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40ddd1
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [0x424eec]
push 0x4edca0
push 0
lea eax, [esi + 0x1c]
push eax
push 0
push 0x14
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push ecx
mov dword [0x4edca0], 0x14
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov edx, dword [esi + 0x38]
movzx eax, byte [esi + 0x35]
movzx ecx, byte [esi + 0x34]
push edi
push edx
movzx edx, byte [esi + 0x33]
push eax
movzx eax, byte [esi + 0x32]
push ecx
movzx ecx, byte [esi + 0x31]
push edx
movzx edx, byte [esi + 0x30]
push eax
push ecx
push edx
push str.UPDATE_OptionData_SET_SkillKey__GameOption_d_Qkey_d_Wkey_d_Ekey_d_ChatWindow_d_Rkey_d_QWERLevel_d_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 0x24
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
ret
mov edx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call ebx
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [0x424eec]
push 0x4edca0
push 0
lea ecx, [esi + 0x1c]
push ecx
push 0
push 0x14
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push edx
mov dword [0x4edca0], 0x14
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov eax, dword [esi + 0x38]
movzx ecx, byte [esi + 0x35]
movzx edx, byte [esi + 0x34]
push eax
movzx eax, byte [esi + 0x33]
push ecx
movzx ecx, byte [esi + 0x32]
push edx
movzx edx, byte [esi + 0x31]
push eax
movzx eax, byte [esi + 0x30]
push ecx
push edx
push eax
push edi
push str.INSERT_INTO_OptionData__Name_SkillKey_GameOption_Qkey_Wkey_Ekey_ChatWindow_Rkey_QWERLevel__VALUES___s____d__d__d__d__d__d__d_
mov ecx, 0x424ee0
call fcn.00417790
mov ecx, dword [0x424eec]
add esp, 0x24
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
ret
Function at 0x40de70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x11], 0
mov dword [ebp - 4], 0
jbe 0x40df71
push ebx
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
add esi, 0x16
lea ebx, [ebx]
mov eax, dword [esi - 4]
push eax
push str.SELECT_ItemSerial_FROM_T_PetItem_Info_WHERE_ItemSerial_d
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x40df12
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40df12
mov edx, dword [0x424eec]
push edx
call edi
mov eax, dword [0x424eec]
push 2
push eax
call ebx
mov ecx, dword [esi - 4]
mov edx, dword [esi + 4]
movzx eax, byte [esi]
push ecx
push edx
push eax
push str.UPDATE_T_PetItem_Info_SET_Pet_Level_d_Pet_Exp_d_WHERE_ItemSerial_d
mov ecx, 0x424ee0
call fcn.00417790
mov ecx, dword [0x424eec]
add esp, 0x10
push ecx
call edi
mov edx, dword [0x424eec]
push 2
push edx
jmp 0x40df54
mov eax, dword [0x424eec]
push eax
call edi
mov ecx, dword [0x424eec]
push 2
push ecx
call ebx
mov edx, dword [esi + 4]
movzx eax, byte [esi]
mov ecx, dword [esi - 4]
push edx
push eax
push ecx
push str.INSERT_INTO_T_PetItem_Info__ItemSerial_Pet_Level_Pet_Exp__VALUES___d__d__d_
mov ecx, 0x424ee0
call fcn.00417790
mov edx, dword [0x424eec]
add esp, 0x10
push edx
call edi
mov eax, dword [0x424eec]
push 2
push eax
call ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
movzx edx, byte [ecx + 0x11]
inc eax
add esi, 0xc
mov dword [ebp - 4], eax
cmp eax, edx
jl 0x40dea0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40e050
Capabilities:
Reference sql statements

Disassembly:
push ebx
push edi
lea edi, [esi + 0x11]
push edi
push str.SELECT_Name_FROM_RankingDuel_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x40e0ad
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40e0ad
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
push edi
push ecx
push eax
push eax
push str.UPDATE_RankingDuel_SET_WinScoreWinScore_d_WinScore_semanalWinScore_semanal_d_LoseScoreLoseScore_d_WHERE_Name_s
jmp 0x40e0da
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
push eax
push ecx
push eax
push edi
push str.INSERT_INTO_RankingDuel__Name_WinScore_LoseScore_WinScore_semanal__VALUES___s__d__d__d_
mov ecx, 0x424ee0
call fcn.00417790
mov edx, dword [0x424eec]
add esp, 0x14
push edx
call ebx
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
ret