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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx ecx, word [eax + 4]
mov edx, dword [eax + 6]
push ebx
push esi
lea esi, [eax + 6]
mov eax, dword [esi + 4]
mov word [ebp - 0x18], cx
movzx ecx, word [esi + 8]
push edi
mov dword [ebp - 0x16], edx
mov dl, byte [esi + 0xa]
mov word [ebp - 0xe], cx
push esi
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
mov ecx, 0x424ee0
mov dword [ebp - 0x1c], 0x1a18c1
mov dword [ebp - 0x12], eax
mov byte [ebp - 0xc], dl
mov byte [ebp - 0xb], 0
call fcn.00417790
add esp, 8
test al, al
je 0x4151f8
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4151f8
push str.LuckyCoin
call fcn.00417950
cmp eax, 0xffffffff
jne 0x4151c5
or eax, eax
jmp 0x4151d7
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 0x415262
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_LuckyCoin__AccountID_LuckyCoin__VALUES___s_0_
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
jne 0x415247
mov edx, dword [0x424eec]
push edx
call edi
mov eax, dword [0x424eec]
push 2
push eax
call ebx
mov byte [ebp - 0xb], 1
jmp 0x415262
mov ecx, dword [0x424eec]
push ecx
call edi
mov edx, dword [0x424eec]
push 2
push edx
call ebx
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
push ecx
mov ebx, 0x18
call fcn.004198e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x415280
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ax, word [ecx + 4]
mov edx, dword [ecx + 6]
mov word [ebp - 0x18], ax
lea eax, [ecx + 6]
mov cl, byte [ecx + 0x11]
mov dword [ebp - 0x16], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x12], edx
mov dx, word [eax + 8]
push ebx
mov word [ebp - 0xe], dx
mov dl, byte [eax + 0xa]
push eax
mov byte [ebp - 0xa], cl
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
mov ecx, 0x424ee0
mov bl, 1
mov dword [ebp - 0x1c], 0x11a18c1
mov byte [ebp - 0xc], dl
mov byte [ebp - 0xb], 0
call fcn.00417790
add esp, 8
test al, al
je 0x41532e
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41532e
push str.LuckyCoin
call fcn.00417950
cmp eax, 0xffffffff
jne 0x4152fc
or eax, eax
jmp 0x41530e
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov dword [ebp - 8], eax
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]
jmp 0x41534c
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0xb], bl
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
push edx
mov ebx, 0x18
call fcn.004198e0
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415370
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ax, word [ecx + 4]
mov edx, dword [ecx + 6]
mov word [ebp - 0x18], ax
lea eax, [ecx + 6]
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 0x16], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x12], edx
mov dx, word [eax + 8]
push ebx
mov word [ebp - 0xe], dx
mov dl, byte [eax + 0xa]
push eax
mov dword [ebp - 8], ecx
push str.SELECT__FROM_LuckyCoin_WHERE_AccountID_s
mov ecx, 0x424ee0
mov ebx, 0x1c
mov dword [ebp - 0x1c], 0x21a1cc1
mov byte [ebp - 0xc], dl
mov byte [ebp - 0xb], 0
call fcn.00417790
add esp, 8
test al, al
je 0x415433
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x415433
push str.LuckyCoin
call fcn.00417950
cmp eax, 0xffffffff
jne 0x4153ef
or eax, eax
jmp 0x415401
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov dword [ebp - 4], eax
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 edx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
push edx
call fcn.004198e0
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ecx
push edx
mov byte [ebp - 0xb], 1
call fcn.004198e0
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x415470
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
lea eax, [esi + 6]
push edi
push eax
push str.SELECT_LuckyCoin_FROM_LuckyCoin_WHERE_AccountID_s
mov ecx, 0x424ee0
mov dword [ebp - 8], eax
call fcn.00417790
add esp, 8
test al, al
je 0x41550e
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41550e
push str.LuckyCoin
call fcn.00417950
cmp eax, 0xffffffff
jne 0x4154bb
mov dword [ebp - 4], eax
jmp 0x4154d0
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [0x424eec]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call edi
mov edx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push edx
call ebx
mov eax, dword [esi + 0x14]
add eax, dword [ebp - 4]
cmp eax, 0x7fffffff
jbe 0x415502
mov eax, bind
mov edx, dword [ebp - 8]
push edx
push eax
push str.UPDATE_LuckyCoin_SET_LuckyCoin_d_WHERE_AccountID_s
jmp 0x41553a
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 ecx, dword [esi + 0x14]
mov edx, dword [ebp - 8]
push ecx
push edx
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s__d_
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 0xc
push eax
call edi
mov ecx, dword [0x424eec]
push 2
push ecx
call ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415560
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
add ebx, 6
push ebx
push str.SELECT_LuckyCoin_FROM_LuckyCoin_WHERE_AccountID_s
mov ecx, 0x424ee0
mov dword [ebp - 4], ebx
call fcn.00417790
add esp, 8
test al, al
je 0x41562b
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41562b
push str.LuckyCoin
call fcn.00417950
cmp eax, 0xffffffff
jne 0x4155b4
or esi, eax
jmp 0x4155c8
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]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call edi
mov edx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push edx
call ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
cmp eax, esi
jbe 0x4155f6
xor esi, esi
jmp 0x4155f8
sub esi, eax
mov ecx, dword [ebp - 4]
push ecx
push esi
push str.UPDATE_LuckyCoin_SET_LuckyCoin_d_WHERE_AccountID_s
mov ecx, 0x424ee0
call fcn.00417790
mov edx, dword [0x424eec]
add esp, 0xc
push edx
call edi
mov eax, dword [0x424eec]
push 2
push eax
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x424eec]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call esi
mov edx, dword [0x424eec]
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push edx
call edi
push 0
push 0
push 0
push ebx
push str.INSERT_INTO_LuckyCoin__AccountID_LuckyCoin__VALUES___s__d_
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 0x14
push eax
call esi
mov ecx, dword [0x424eec]
push 2
push ecx
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4156b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.0041b840
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp byte [ebx + 0x13], 0
mov cx, word [ebx + 6]
mov edx, dword [ebx + 8]
mov word [ebp - 0x1016], cx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x1014], edx
mov dx, word [ebx + 0x10]
mov dword [ebp - 0x1010], ecx
mov cl, byte [ebx + 0x12]
mov eax, 0x14
mov byte [ebp - 0x101c], 0xc2
mov word [ebp - 0x1019], 0x22
mov dword [ebp - 0x1008], eax
mov word [ebp - 0x100c], dx
mov byte [ebp - 0x100a], cl
mov byte [ebp - 0x1009], 0
mov dword [ebp - 0x1020], 0
jbe 0x41586c
push esi
push edi
lea edi, [ebp - 0xff0]
lea esi, [ebx + 0x18]
lea esp, [esp]
mov edx, dword [esi]
push edx
push str.SELECT_DurabilitySmall_FROM_LuckyItem_WHERE_ItemSerial_d
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x4157d0
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4157d0
mov cl, byte [esi - 4]
mov edx, dword [esi]
push str.DurabilitySmall
mov byte [ebp - 0x102c], cl
mov dword [ebp - 0x1028], edx
call fcn.00417950
cmp eax, 0xffffffff
jne 0x41578f
or eax, eax
jmp 0x4157a1
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov dword [ebp - 0x1024], eax
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 - 0x1024]
mov eax, dword [ebp - 0x1028]
jmp 0x41582a
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [esi]
push 0
push ecx
push str.INSERT_INTO_LuckyItem__ItemSerial_DurabilitySmall__VALUES___d__d_
mov ecx, 0x424ee0
call fcn.00417790
mov edx, dword [0x424eec]
add esp, 0xc
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov cl, byte [esi - 4]
mov eax, dword [esi]
mov byte [ebp - 0x102c], cl
xor ecx, ecx
mov edx, dword [ebp - 0x102c]
add dword [ebp - 0x1008], 0xc
inc byte [ebp - 0x1009]
mov dword [edi], edx
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x1020]
mov dword [edi + 8], ecx
movzx ecx, byte [ebx + 0x13]
inc eax
add edi, 0xc
add esi, 8
mov dword [ebp - 0x1020], eax
cmp eax, ecx
jl 0x415740
mov eax, dword [ebp - 0x1008]
pop edi
pop esi
mov edx, eax
shr edx, 8
mov byte [ebp - 0x101b], dl
mov edx, dword [ebp - 0x1018]
mov byte [ebp - 0x101a], al
mov ecx, dword [ebp - 0x101c]
mov dword [ebp - 0x1004], ecx
mov ecx, dword [ebp - 0x1014]
mov dword [ebp - 0x1000], edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0xffc], ecx
mov ecx, dword [ebp - 0x100c]
mov dword [ebp - 0xff8], edx
lea edx, [ebp - 0x1004]
mov dword [ebp - 0xff4], ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
mov ebx, eax
call fcn.004198e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret 4
Function at 0x4158e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x13], 0
mov dword [ebp - 4], 0
jbe 0x4159b7
push ebx
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
add esi, 0x14
lea ebx, [ebx]
mov eax, dword [esi]
push eax
push str.SELECT_ItemSerial_FROM_LuckyItem_WHERE_ItemSerial_d
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x41595d
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41595d
mov edx, dword [0x424eec]
push edx
call edi
mov eax, dword [0x424eec]
push 2
push eax
call ebx
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push ecx
push edx
push str.UPDATE_LuckyItem_SET_DurabilitySmall_d_WHERE_ItemSerial_d
jmp 0x41597c
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]
push ecx
push edx
push str.INSERT_INTO_LuckyItem__ItemSerial_DurabilitySmall__VALUES___d__d_
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 0xc
push eax
call edi
mov ecx, dword [0x424eec]
push 2
push ecx
call ebx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
movzx ecx, byte [edx + 0x13]
inc eax
add esi, 8
mov dword [ebp - 4], eax
cmp eax, ecx
jl 0x415910
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4159f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
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]
mov word [ebp - 0x19a], cx
mov ecx, dword [eax + 0xa]
mov dword [ebp - 0x194], ecx
movzx ecx, byte [eax + 0x10]
mov dword [ebp - 0x198], edx
movzx edx, word [eax + 0xe]
add eax, 0x11
push ebx
mov byte [ebp - 0x18e], cl
mov ecx, dword [eax + 4]
mov word [ebp - 0x190], dx
mov edx, dword [eax]
push esi
mov dword [ebp - 0x189], ecx
movzx ecx, byte [eax + 0xa]
push edi
mov dword [ebp - 0x18d], edx
movzx edx, word [eax + 8]
push eax
mov byte [ebp - 0x183], cl
xor ebx, ebx
push str.SELECT__FROM_MasterSkillTree_WHERE_Name_s
mov ecx, 0x424ee0
mov dword [ebp - 0x1a0], 0xd9801c2
mov byte [ebp - 0x19c], bl
mov word [ebp - 0x185], dx
call fcn.00417790
add esp, 8
test al, al
je 0x415b8e
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x415b8e
push str.MasterLevel
call fcn.00417950
mov esi, dword [sym.imp.MSVCR100.dll_atoi]
cmp eax, 0xffffffff
jne 0x415ac2
or eax, 0xffffffff
jmp 0x415ad0
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.MasterPoint
mov dword [ebp - 0x180], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x415ae9
or eax, eax
jmp 0x415af7
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.MasterExperience
mov dword [ebp - 0x17c], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x415b13
or eax, eax
or edx, 0xffffffff
jmp 0x415b25
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll__atoi64]
add esp, 4
push str.MasterSkill
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], edx
call fcn.00417950
cmp eax, 0xffffffff
jne 0x415b57
push 0x168
lea eax, [ebp - 0x170]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x415b70
shl eax, 0xd
add eax, 0x425b0e
push eax
mov ebx, 0x168
lea edi, [ebp - 0x170]
call fcn.00417ab0
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]
jmp 0x415bda
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]
push 0x168
lea edx, [ebp - 0x170]
push 0xff
push edx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x174], ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x1a0]
push eax
push ecx
mov ebx, 0x198
call fcn.004198e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret 8
Function at 0x415c10
Capabilities:
Reference sql statements

Disassembly:
push ebx
push edi
lea edi, [esi + 0x13]
push edi
push str.SELECT_Name_FROM_MasterSkillTree_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x415cd2
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x415cd2
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 + 0x30]
push eax
push 0
push 0x168
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push ecx
mov dword [0x4edca0], 0x168
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
push edi
push edx
mov edx, dword [esi + 0x20]
push eax
push ecx
push edx
push str.UPDATE_MasterSkillTree_SET_MasterLevel_d_MasterPoint_d_MasterExperience_I64d_MasterSkill__WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 0x18
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 + 0x30]
push ecx
push 0
push 0x168
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push edx
mov dword [0x4edca0], 0x168
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
push eax
mov eax, dword [esi + 0x20]
push ecx
push edx
push eax
push edi
push str.INSERT_INTO_MasterSkillTree__Name_MasterLevel_MasterPoint_MasterExperience_MasterSkill__VALUES___s__d__d__I64d___
mov ecx, 0x424ee0
call fcn.00417790
mov ecx, dword [0x424eec]
add esp, 0x18
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 0x415db0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push eax
mov esi, ecx
lea ebx, [esi + 0xc]
push 0x100
push ebx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push SQLBindCol
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x415e08
push ebx
push str.__s__Could_not_open_file
add esi, 0x218
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x415e2c
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [esi + 4], 0
mov ecx, dword [esi + 8]
push ecx
call fcn.0041ae51
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x415e65
push ebx
push str.__s__Could_not_alloc_file_buffer
add esi, 0x218
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
push 0
lea edx, [ebp - 4]
push edx
push ecx
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415e8a
push ebx
push str.__s__Could_not_read_file
jmp 0x415e45
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x214], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416380
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 6]
mov cl, 1
mov byte [ebp - 0x120], cl
mov cx, word [eax + 4]
mov word [ebp - 0x11e], cx
mov ecx, dword [eax + 0xa]
mov dword [ebp - 0x118], ecx
movzx ecx, byte [eax + 0x10]
mov dword [ebp - 0x11c], edx
movzx edx, word [eax + 0xe]
add eax, 0x11
mov byte [ebp - 0x112], cl
mov ecx, dword [eax + 4]
mov word [ebp - 0x114], dx
mov edx, dword [eax]
mov dword [ebp - 0x10d], ecx
movzx ecx, byte [eax + 0xa]
push ebx
mov dword [ebp - 0x111], edx
movzx edx, word [eax + 8]
push eax
mov byte [ebp - 0x107], cl
push str.SELECT_Items_FROM_EquipInventory_WHERE_AccountID_s
mov ecx, 0x424ee0
mov dword [ebp - 0x124], 0x271e01c2
mov word [ebp - 0x109], dx
call fcn.00417790
add esp, 8
test al, al
je 0x41648e
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41648e
push str.Items
call fcn.00417950
cmp eax, 0xffffffff
jne 0x416455
push 0x100
lea eax, [ebp - 0x106]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x416470
shl eax, 0xd
push edi
add eax, 0x425b0e
push eax
mov ebx, 0x100
lea edi, [ebp - 0x106]
call fcn.00417ab0
pop edi
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]
jmp 0x4164c2
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]
push 0x100
lea edx, [ebp - 0x106]
push 0xff
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x124]
push eax
push ecx
mov ebx, 0x11e
call fcn.004198e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret 8
Function at 0x4164f0
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
push edi
mov edi, eax
lea esi, [edi + 0x13]
push esi
push str.SELECT_AccountID_FROM_EquipInventory_WHERE_AccountID_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x4165a2
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4165a2
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 [0x424eec]
push 0x4edca0
push 0
add edi, 0x1e
push edi
push 0
push 0x100
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push eax
mov dword [0x4edca0], 0x100
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push esi
push str.UPDATE_EquipInventory_SET_Items__WHERE_AccountID_s
mov ecx, 0x424ee0
call fcn.00417790
mov ecx, dword [0x424eec]
add esp, 8
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [0x424eec]
push 0x4edca0
push 0
add edi, 0x1e
push edi
push 0
push 0x100
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push edx
mov dword [0x4edca0], 0x100
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push esi
push str.INSERT_INTO_EquipInventory__AccountID__Items__VALUES___s___
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 8
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
pop ebx
ret