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

Disassembly:
push ebx
push esi
lea esi, [edi + 0x11]
push esi
push str.SELECT_Name_FROM_RankingBloodCastle_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x40b6ce
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40b6ce
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [edi + 0x1c]
push esi
push eax
push str.UPDATE_RankingBloodCastle_SET_ScoreScore_d_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov ecx, dword [0x4ed8cc]
add esp, 0xc
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret
mov eax, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [edi + 0x1c]
push edx
push esi
push str.INSERT_INTO_RankingBloodCastle__Name_Score__VALUES___s__d_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 0xc
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret

Function at 0x40b720
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
lea esi, [edi + 0x11]
push esi
push str.SELECT_Name_FROM_RankingChaosCastle_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x40b79e
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40b79e
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [edi + 0x1c]
push esi
push eax
push str.UPDATE_RankingChaosCastle_SET_ScoreScore_d_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov ecx, dword [0x4ed8cc]
add esp, 0xc
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret
mov eax, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [edi + 0x1c]
push edx
push esi
push str.INSERT_INTO_RankingChaosCastle__Name_Score__VALUES___s__d_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 0xc
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret
Function at 0x40b7f0
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
lea esi, [edi + 0x11]
push esi
push str.SELECT_Name_FROM_RankingDevilSquare_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x40b86e
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40b86e
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [edi + 0x1c]
push esi
push eax
push str.UPDATE_RankingDevilSquare_SET_ScoreScore_d_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov ecx, dword [0x4ed8cc]
add esp, 0xc
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret
mov eax, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [edi + 0x1c]
push edx
push esi
push str.INSERT_INTO_RankingDevilSquare__Name_Score__VALUES___s__d_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 0xc
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret

Function at 0x40b8c0
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
lea esi, [edi + 0x11]
push esi
push str.SELECT_Name_FROM_RankingIllusionTemple_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x40b93e
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40b93e
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [edi + 0x1c]
push esi
push eax
push str.UPDATE_RankingIllusionTemple_SET_ScoreScore_d_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov ecx, dword [0x4ed8cc]
add esp, 0xc
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret
mov eax, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [edi + 0x1c]
push edx
push esi
push str.INSERT_INTO_RankingIllusionTemple__Name_Score__VALUES___s__d_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 0xc
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret
Function at 0x40c940
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea edi, [esi + 6]
push edi
push str.SELECT_GUID_FROM_T_FriendMain_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 8
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.GUID
mov ebx, 0x4ed8c0
call fcn.00415000
mov ecx, dword [0x4ed8cc]
push ecx
mov ebx, eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [esi + 4]
mov ecx, dword [ebp + 8]
push eax
push ebx
push ecx
call fcn.0040cea0
pop edi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x40c9b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea esi, [edi + 8]
push esi
push str.SELECT_GUID_FROM_T_FriendMain_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 8
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.GUID
mov ebx, 0x4ed8c0
call fcn.00415000
mov ecx, dword [0x4ed8cc]
mov ebx, eax
push ecx
mov dword [ebp - 0x41c], ebx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [edi + 4]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov word [ebp - 0x412], ax
movzx eax, word [esi + 8]
mov word [ebp - 0x408], ax
movzx eax, word [edi + 6]
mov dword [ebp - 0x410], ecx
mov cl, byte [esi + 0xa]
push ebx
push eax
mov byte [ebp - 0x406], cl
push str.SELECT_Memo_Photo_Dir_Act_FROM_T_FriendMail_WHERE_MemoIndex_d_AND_GUID_d
mov ecx, 0x4ed8c0
mov dword [ebp - 0x418], 0xb01404c2
mov byte [ebp - 0x414], 7
mov dword [ebp - 0x40c], edx
mov word [ebp - 0x404], ax
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 0xc
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
push 0x12
lea ecx, [ebp - 0x400]
push ecx
push str.Photo
call fcn.00415200
push 0x41cb5c
mov ebx, 0x4ed8c0
call fcn.00415000
push 0x41cb60
mov byte [ebp - 0x3ee], al
call fcn.00415000
push 0x3e8
lea edx, [ebp - 0x3ec]
push edx
push str.Memo
mov byte [ebp - 0x3ed], al
call fcn.00415200
lea eax, [ebp - 0x3ec]
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40cae0
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
sub eax, ecx
mov word [ebp - 0x402], ax
mov eax, dword [0x4ed8cc]
push eax
call esi
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call ebx
mov edx, dword [ebp - 0x41c]
movzx eax, word [edi + 6]
push edx
push eax
push str.UPDATE_T_FriendMail_SET_bRead1_WHERE_MemoIndex_d_AND_GUID_d
mov ecx, 0x4ed8c0
call fcn.00414e40
mov ecx, dword [0x4ed8cc]
add esp, 0xc
push ecx
call esi
mov edx, dword [0x4ed8cc]
push 2
push edx
call ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x418]
push eax
push ecx
mov ebx, 0x414
call fcn.00416c00
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00417d4a
mov esp, ebp
pop ebp
ret 4
Function at 0x40cc10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x421018]
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, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x40ccac
mov ecx, dword [0x4ed8cc]
push edi
mov edi, dword [sym.imp.ODBC32.dll_SQLFetch]
push ecx
call edi
cmp ax, 0x64
je 0x40ccab
push ebx
mov ebx, 0x1c
mov ecx, dword [esi + 4]
mov dx, word [ebp + 0x10]
mov eax, dword [esi]
mov dword [ebp - 0x16], ecx
push 0xb
mov word [ebp - 0x1c], dx
movzx edx, word [esi + 8]
lea ecx, [ebp - 0xf]
mov dword [ebp - 0x1a], eax
mov al, byte [esi + 0xa]
push ecx
push str.FriendName
mov dword [ebp - 0x20], 0x1b01cc1
mov word [ebp - 0x12], dx
mov byte [ebp - 0x10], al
call fcn.00415170
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x20]
push edx
push eax
call fcn.00416c00
mov ecx, dword [0x4ed8cc]
push ecx
call edi
cmp ax, 0x64
jne 0x40cc56
pop ebx
pop edi
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d4a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40cce0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push str.SELECT_GUID_FROM_T_FriendMain_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x40ce63
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40ce63
push ebx
push esi
push str.GUID
mov ebx, 0x4ed8c0
call fcn.00415000
mov ecx, dword [0x4ed8cc]
push ecx
mov esi, eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
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, ebx
call fcn.00414e40
add esp, 0xc
test al, al
je 0x40ce35
mov eax, dword [0x4ed8cc]
mov esi, dword [sym.imp.ODBC32.dll_SQLFetch]
push eax
call esi
cmp ax, 0x64
je 0x40ce35
push 0xb
lea ecx, [ebp - 0x1e]
push ecx
push str.FriendName
mov dword [ebp - 0x24], 0x2b01ec1
call fcn.00415170
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x1e]
call fcn.00406460
test al, al
je 0x40ce23
cmp dword [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 0x40ce01
push 0x41c97c
mov ebx, 0x4ed8c0
call fcn.00415000
test eax, eax
jne 0x40ce01
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x13]
call fcn.00406460
test al, al
mov eax, 0xffff
je 0x40cdfc
movzx eax, word [ebp - 0x44]
mov byte [ebp - 8], al
jmp 0x40ce05
mov byte [ebp - 8], 0xff
mov edx, dword [ebp - 0x28]
call fcn.00417720
test eax, eax
je 0x40ce23
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x24]
push ecx
push edx
mov ebx, 0x1e
call fcn.00416c00
mov eax, dword [0x4ed8cc]
push eax
call esi
cmp ax, 0x64
jne 0x40cd82
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
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.00417d4a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d4a
mov esp, ebp
pop ebp
ret 4
Function at 0x40cea0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push eax
push str.SELECT_MemoIndex_FriendName_wDate_Subject_bRead_FROM_T_FriendMail_WHERE_GUID_d
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x40d023
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d023
mov dx, word [ebp + 0x10]
xor eax, eax
xor esi, esi
mov dword [ebp - 0x6c], 0xb06000c2
mov byte [ebp - 0x68], 6
mov word [ebp - 0x66], dx
cmp ax, word [0x4ed934]
jge 0x40cf3c
mov ebx, 0x4ed936
lea esp, [esp]
push ebx
push str.MemoIndex
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x40cf37
movsx ecx, word [0x4ed934]
inc esi
add ebx, 0x1e
cmp esi, ecx
jl 0x40cf10
or eax, 0xffffffff
jmp 0x40cf54
cmp esi, 0xffffffff
jne 0x40cf41
or eax, 0xffffffff
jmp 0x40cf54
shl esi, 0xd
add esi, 0x4ee4ee
push esi
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
push 0xb
lea edx, [ebp - 0x62]
push edx
push str.FriendName
mov word [ebp - 0x64], ax
call fcn.00415170
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dx, word [edi + 8]
mov dword [ebp - 0x53], ecx
push 0x1e
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x57], eax
mov al, byte [edi + 0xa]
push ecx
push str.wDate
mov word [ebp - 0x4f], dx
mov byte [ebp - 0x4d], al
call fcn.00415170
push 0x20
lea edx, [ebp - 0x2e]
push edx
push str.Subject
call fcn.00415170
xor eax, eax
xor esi, esi
cmp ax, word [0x4ed934]
jge 0x40cfdf
mov ebx, 0x4ed936
push ebx
push str.bRead
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x40cfda
movsx ecx, word [0x4ed934]
inc esi
add ebx, 0x1e
cmp esi, ecx
jl 0x40cfb3
or eax, 0xffffffff
jmp 0x40cff7
cmp esi, 0xffffffff
jne 0x40cfe4
or eax, 0xffffffff
jmp 0x40cff7
shl esi, 0xd
add esi, 0x4ee4ee
push esi
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
lea edx, [ebp - 0x6c]
mov byte [ebp - 0xe], al
mov eax, dword [ebp + 8]
push edx
push eax
mov ebx, 0x60
call fcn.00416c00
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x40cee7
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.00417d4a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d2a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx ecx, word [eax + 4]
mov edx, dword [eax + 6]
mov word [ebp - 0x28], cx
mov ecx, dword [eax + 0xa]
push ebx
mov dword [ebp - 0x22], ecx
mov cl, byte [eax + 0x10]
push esi
lea esi, [eax + 0x11]
mov dword [ebp - 0x26], edx
mov dx, word [eax + 0xe]
mov eax, dword [esi + 4]
mov byte [ebp - 0x1c], cl
movzx ecx, word [esi + 8]
mov word [ebp - 0x1e], dx
mov edx, dword [esi]
push edi
mov dword [ebp - 0x1b], edx
mov dl, byte [esi + 0xa]
mov dword [ebp - 0x17], eax
xor eax, eax
mov word [ebp - 0x13], cx
push esi
push str.SELECT_Family_FROM_Gens_Rank_WHERE_Name_s
mov ecx, 0x4ed8c0
mov dword [ebp - 0x2c], 0x21128c1
mov byte [ebp - 0x11], dl
mov word [ebp - 0x10], ax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.00414e40
add esp, 8
test al, al
je 0x40d3d7
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d3d7
push str.Family
mov ebx, 0x4ed8c0
call fcn.00415000
mov ecx, dword [0x4ed8cc]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov bl, al
push ecx
mov byte [ebp - 0xf], bl
call edi
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, bl
push eax
push esi
push str.EXEC_WZ_GetCharacterGensInfo__s__d
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 0xc
test al, al
je 0x40d3c3
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d3c3
push str.Rank
mov ebx, 0x4ed8c0
call fcn.00415000
push str.Contribution
mov dword [ebp - 0xc], eax
call fcn.00415000
mov edx, dword [0x4ed8cc]
push edx
mov dword [ebp - 8], eax
call edi
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40d3f6
mov ecx, dword [0x4ed8cc]
push ecx
call edi
mov edx, dword [0x4ed8cc]
push 2
push edx
jmp 0x40d3ec
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x10], 1
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x2c]
push edx
push eax
mov ebx, 0x28
call fcn.00416c00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40d5c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx eax, word [esi + 4]
mov ecx, dword [esi + 6]
mov edx, dword [esi + 0xa]
mov dword [ebp - 0x26], ecx
movzx ecx, byte [esi + 0x10]
mov word [ebp - 0x28], ax
movzx eax, word [esi + 0xe]
mov byte [ebp - 0x1c], cl
mov ecx, dword [esi + 0x15]
mov word [ebp - 0x1e], ax
lea eax, [esi + 0x11]
mov dword [ebp - 0x17], ecx
movzx ecx, byte [eax + 0xa]
mov dword [ebp - 0x22], edx
mov edx, dword [eax]
mov byte [ebp - 0x11], cl
xor ecx, ecx
push ebx
mov dword [ebp - 0x1b], edx
mov dx, word [eax + 8]
push eax
mov word [ebp - 0x10], cx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
push str.SELECT_Rank_Status_FROM_Gens_Reward_WHERE_Name_s
mov ecx, 0x4ed8c0
mov dword [ebp - 0x2c], 0x41128c1
mov word [ebp - 0x13], dx
call fcn.00414e40
add esp, 8
test al, al
je 0x40d687
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d687
mov al, byte [esi + 0x1c]
push str.Rank
mov ebx, 0x4ed8c0
mov byte [ebp - 0xf], al
call fcn.00415000
push str.Status
mov dword [ebp - 0xc], eax
call fcn.00415000
mov ecx, dword [0x4ed8cc]
push ecx
mov dword [ebp - 8], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40d6a6
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x10], 1
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x2c]
push edx
push eax
mov ebx, 0x28
call fcn.00416c00
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d6c0
Capabilities:
Reference sql statements

Disassembly:
push ebx
push edi
lea edi, [esi + 0x11]
push edi
push str.SELECT_Name_FROM_Gens_Reward_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x40d725
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d725
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esi + 0x24]
push edi
push eax
push str.UPDATE_Gens_Reward_SET_Status_d_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 0xc
jmp 0x40d75d
mov eax, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
push edx
push eax
push edi
push str.INSERT_INTO_Gens_Reward__Name_Rank_Status__VALUES___s__d__d_
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 0x10
mov ecx, dword [0x4ed8cc]
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
ret
Function at 0x40d820
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dx, word [eax + 4]
push ebx
push esi
lea esi, [eax + 6]
mov eax, dword [esi]
mov word [ebp - 0x18], dx
mov edx, dword [esi + 4]
push edi
xor ecx, ecx
mov dword [ebp - 0x16], eax
mov ax, word [esi + 8]
mov dword [ebp - 0x12], edx
mov dl, byte [esi + 0xa]
mov dword [ebp - 8], ecx
push esi
push str.SELECT__FROM_EventGoldenArcher_WHERE_Account_s
mov ecx, 0x4ed8c0
mov dword [ebp - 0x1c], 0x9418c1
mov word [ebp - 0xe], ax
mov byte [ebp - 0xc], dl
call fcn.00414e40
add esp, 8
test al, al
je 0x40d8b2
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40d8b2
push str.RenaCount
mov ebx, 0x4ed8c0
call fcn.00415000
mov ecx, dword [0x4ed8cc]
push ecx
mov dword [ebp - 8], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40d8f7
mov eax, dword [0x4ed8cc]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call edi
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call ebx
push esi
push str.INSERT_INTO_EventGoldenArcher__Account_RenaCount_StoneCount__VALUES___s_0_0_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov edx, dword [0x4ed8cc]
add esp, 8
push edx
call edi
mov eax, dword [0x4ed8cc]
push 2
push eax
call ebx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
push edx
mov ebx, 0x18
call fcn.00416c00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40d920
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
movzx eax, word [esi + 4]
mov ecx, dword [esi + 6]
mov edx, dword [esi + 0xa]
push edi
lea edi, [esi + 6]
mov dword [ebp - 0xe], ecx
mov cl, byte [edi + 0xa]
mov word [ebp - 0x10], ax
movzx eax, word [edi + 8]
mov dword [ebp - 0xa], edx
mov dl, byte [esi + 0x11]
mov byte [ebp - 4], cl
push edi
push str.SELECT__FROM_EventGoldenArcher_WHERE_Account_s
mov ecx, 0x4ed8c0
mov dword [ebp - 0x14], 0x19414c1
mov word [ebp - 6], ax
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0
call fcn.00414e40
add esp, 8
test al, al
je 0x40da7c
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40da7c
push str.RenaCount
mov ebx, 0x4ed8c0
call fcn.00415000
mov ecx, dword [0x4ed8cc]
push ecx
mov ebx, eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp ebx, dword [esi + 0x14]
jl 0x40da97
push edi
push str.SELECT__FROM_EventGoldenArcher_WHERE_Account_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x40da30
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40da30
mov esi, 0x4ed8c0
call fcn.00414fe0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x14]
cmp eax, ebx
jle 0x40da0a
xor ebx, ebx
jmp 0x40da0c
sub ebx, eax
push edi
push ebx
push str.UPDATE_EventGoldenArcher_SET_RenaCount_d_WHERE_Account_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 0xc
mov esi, 0x4ed8c0
call fcn.00414fe0
mov byte [ebp - 2], 1
jmp 0x40da97
mov edx, dword [0x4ed8cc]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call esi
mov eax, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push eax
call ebx
push edi
push str.INSERT_INTO_EventGoldenArcher__Account_RenaCount_StoneCount__VALUES___s_0_0_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov ecx, dword [0x4ed8cc]
add esp, 8
push ecx
call esi
mov edx, dword [0x4ed8cc]
push 2
push edx
call ebx
mov byte [ebp - 2], 0
jmp 0x40da97
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
push edx
push eax
mov ebx, 0x14
call fcn.00416c00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8