joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bca0
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, 0x4eb8c0
mov dword [ebp - 0x14], 0x19414c1
mov word [ebp - 6], ax
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0
call fcn.00412e90
add esp, 8
test al, al
je 0x40bdfc
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40bdfc
push str.RenaCount
mov ebx, 0x4eb8c0
call fcn.00413050
mov ecx, dword [0x4eb8cc]
push ecx
mov ebx, eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
cmp ebx, dword [esi + 0x14]
jl 0x40be17
push edi
push str.SELECT__FROM_EventGoldenArcher_WHERE_Account_s
mov ecx, 0x4eb8c0
call fcn.00412e90
add esp, 8
test al, al
je 0x40bdb0
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40bdb0
mov esi, 0x4eb8c0
call fcn.00413030
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x14]
cmp eax, ebx
jle 0x40bd8a
xor ebx, ebx
jmp 0x40bd8c
sub ebx, eax
push edi
push ebx
push str.UPDATE_EventGoldenArcher_SET_RenaCount_d_WHERE_Account_s
mov ecx, 0x4eb8c0
call fcn.00412e90
add esp, 0xc
mov esi, 0x4eb8c0
call fcn.00413030
mov byte [ebp - 2], 1
jmp 0x40be17
mov edx, dword [0x4eb8cc]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call esi
mov eax, dword [0x4eb8cc]
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, 0x4eb8c0
call fcn.00412e90
mov ecx, dword [0x4eb8cc]
add esp, 8
push ecx
call esi
mov edx, dword [0x4eb8cc]
push 2
push edx
call ebx
mov byte [ebp - 2], 0
jmp 0x40be17
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4eb8cc]
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.00414a90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40be40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [esi + 6]
push edi
push eax
push str.SELECT__FROM_EventGoldenArcher_WHERE_Account_s
mov ecx, 0x4eb8c0
mov dword [ebp - 4], eax
call fcn.00412e90
add esp, 8
test al, al
je 0x40beed
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40beed
push str.RenaCount
mov ebx, 0x4eb8c0
call fcn.00413050
mov ecx, dword [0x4eb8cc]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
mov ebx, eax
call edi
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esi + 0x14]
add eax, ebx
cmp eax, 0x7fffffff
jbe 0x40beb9
mov eax, bind
mov ecx, dword [ebp - 4]
push ecx
push eax
push str.UPDATE_EventGoldenArcher_SET_RenaCount_d_WHERE_Account_s
mov ecx, 0x4eb8c0
call fcn.00412e90
mov edx, dword [0x4eb8cc]
add esp, 0xc
push edx
call edi
mov eax, dword [0x4eb8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4eb8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4eb8cc]
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push edx
call edi
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 4]
push eax
push ecx
push str.INSERT_INTO_EventGoldenArcher__Account_RenaCount_StoneCount__VALUES___s__d_0_
mov ecx, 0x4eb8c0
call fcn.00412e90
mov edx, dword [0x4eb8cc]
add esp, 0xc
push edx
call ebx
mov eax, dword [0x4eb8cc]
push 2
push eax
call edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d850
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ebx
call fcn.0040d610
test eax, eax
je 0x40d86e
pop edi
mov al, 3
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d873
sub eax, edx
xor edx, edx
test eax, eax
jle 0x40d8a5
mov cl, byte [edx + ebx]
cmp cl, 0x20
je 0x40d95b
cmp cl, 0x22
je 0x40d95b
cmp cl, 0x27
je 0x40d95b
inc edx
cmp edx, eax
jl 0x40d882
mov edi, dword [ebp + 0xc]
push edi
push ebx
push str.WZ_GuildCreate__s__s
mov ecx, 0x4eb8c0
call fcn.00412e90
add esp, 0xc
test al, al
je 0x40da4e
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40da4e
push esi
push 0x4ec4ee
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov esi, 0x4eb8c0
test eax, eax
jne 0x40da3e
call fcn.00413030
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, 0x20
lea edx, [ecx - 0x1f]
call fcn.004132d0
push ebx
push str.UPDATE_Guild_SET_G_Mark__WHERE_G_Name_s
mov ecx, esi
call fcn.00412e90
add esp, 8
call fcn.00413030
push edi
push 0x80
push str.UPDATE_GuildMember_SET_G_Status_d_WHERE_Name_s
mov ecx, esi
call fcn.00412e90
add esp, 0xc
call fcn.00413030
push 0x6c4
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x40d965
mov esi, eax
call fcn.0040ce40
mov edi, eax
mov dword [ebp - 4], edi
jmp 0x40d96f
pop edi
mov al, 4
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp - 4], 0
mov edi, dword [ebp - 4]
push ebx
push str.SELECT_Number_FROM_Guild_WHERE_G_Name_s
mov ecx, 0x4eb8c0
call fcn.00412e90
mov edx, dword [0x4eb8cc]
add esp, 8
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
push str.Number
mov ebx, 0x4eb8c0
call fcn.00413050
mov esi, ebx
mov dword [edi], eax
call fcn.00413030
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [edi + 8], ecx
mov edx, dword [eax + 4]
mov dword [edi + 0xc], edx
movzx eax, byte [eax + 8]
mov byte [edi + 0x10], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov esi, dword [ebp + 0x10]
mov dword [edi + 0x11], ecx
mov edx, dword [eax + 4]
mov dword [edi + 0x15], edx
movzx ecx, word [eax + 8]
mov word [edi + 0x19], cx
movzx edx, byte [eax + 0xa]
mov al, byte [ebp + 0x14]
mov byte [edi + 0x1b], dl
add edi, 0x58
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
mov byte [esi + 0x6b8], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [esi + 0x78], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x7c], edx
movzx ecx, word [eax + 8]
mov word [esi + 0x80], cx
movzx edx, byte [eax + 0xa]
mov eax, dword [esi]
mov byte [esi + 0x82], dl
mov dword [ebp + 0xc], eax
lea edx, [ebp + 0xc]
mov eax, 0x420704
mov dword [esi + 0x88], 0x80
call fcn.0040e590
mov dword [eax], esi
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.00413030
pop esi
pop edi
mov al, 2
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x4eb8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40db70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
call fcn.0040d610
mov edi, eax
test edi, edi
jne 0x40db89
xor al, al
pop edi
pop ebp
ret 8
push ebx
call fcn.0040d770
test eax, eax
je 0x40db9a
mov al, 3
pop edi
pop ebp
ret 8
push ebx
push str.SELECT__FROM_GuildMember_WHERE_Name_s
mov ecx, 0x4eb8c0
call fcn.00412e90
add esp, 8
test al, al
je 0x40dbe6
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40dbe6
mov ecx, dword [0x4eb8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, 4
pop edi
pop ebp
ret 8
mov eax, dword [0x4eb8cc]
push esi
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4eb8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov esi, 1
lea eax, [edi + 0x8c]
lea ecx, [ecx]
cmp byte [eax], 0
je 0x40dc26
inc esi
add eax, 0x14
cmp esi, 0x50
jl 0x40dc10
pop esi
mov al, 2
pop edi
pop ebp
ret 8
push ebx
lea edx, [esi + esi*4 + 0x1e]
lea eax, [edi + edx*4]
push 0xb
push eax
call dword [sym.imp.MSVCR100.dll_strcpy_s]
mov edx, dword [ebp + 0xc]
lea ecx, [esi + esi*4]
lea eax, [edi + ecx*4]
mov dword [eax + 0x84], edx
mov dword [eax + 0x88], 0
mov eax, dword [ebp + 8]
push 0
push eax
push ebx
push str.INSERT_INTO_GuildMember__Name_G_Name_G_Level_G_Status__VALUES___s__s_1__d_
mov ecx, 0x4eb8c0
call fcn.00412e90
mov ecx, dword [0x4eb8cc]
add esp, 0x1c
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
mov al, 1
pop edi
pop ebp
ret 8
Function at 0x40fa30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41f018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x420930]
push ebx
push esi
push edi
test eax, eax
js 0x40fb3d
cmp eax, 1
jge 0x40fb3d
mov esi, eax
imul esi, esi, 0x214
add esi, 0x42071c
push 0x41b698
inc eax
lea ebx, [esi + 4]
push 0x100
mov dword [0x420930], eax
push ebx
mov dword [esi], 1
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
cmp dword [esi], 0
je 0x40fb3d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
movzx ecx, word [ebp - 0x12]
movzx edx, word [ebp - 0x14]
push eax
push ecx
push edx
push ebx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x40fb18
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415bda
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40fb3d
mov ecx, dword [esi + 0x210]
push ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415bda
mov esp, ebp
pop ebp
ret
Function at 0x40fb50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x41f018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
js 0x40fd49
cmp eax, dword [ecx + 0x218]
jge 0x40fd49
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
push esi
lea esi, [eax + ecx + 4]
je 0x40fd48
push ebx
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x80e]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
cmp ecx, dword [esi + 0x104]
jne 0x40fbd5
movzx edx, word [ebp - 0x812]
cmp edx, dword [esi + 0x108]
jne 0x40fbd5
movzx eax, word [ebp - 0x814]
cmp eax, dword [esi + 0x10c]
je 0x40fc92
mov ecx, dword [esi + 0x210]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x80e]
movzx ecx, word [ebp - 0x812]
movzx edx, word [ebp - 0x814]
push eax
push ecx
push edx
mov dword [esi + 0x10c], edx
lea edx, [esi + 4]
push edx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.txt
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
call ebx
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
pop edi
cmp eax, 0xffffffff
jne 0x40fc5d
pop ebx
mov dword [esi], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415bda
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40fc92
mov eax, dword [esi + 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415bda
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x803]
push 0
push ecx
mov byte [ebp - 0x804], 0
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
push 0x3ff
lea edx, [ebp - 0x403]
push 0
push edx
mov byte [ebp - 0x404], 0
call sub.MSVCR100.dll_memset
movzx ecx, word [ebp - 0x808]
movzx edx, word [ebp - 0x80a]
lea eax, [ebp - 0x804]
push eax
movzx eax, word [ebp - 0x80c]
push ecx
push edx
push eax
lea ecx, [ebp - 0x404]
push str._02d:_02d:_02d__s_r_n
push ecx
call ebx
lea eax, [ebp - 0x404]
add esp, 0x40
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fd20
mov ecx, dword [esi + 0x210]
sub eax, edx
push 0
lea edx, [ebp - 0x818]
push edx
push eax
lea eax, [ebp - 0x404]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415bda
mov esp, ebp
pop ebp
ret
Function at 0x40fdf0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov cx, word [eax + 4]
mov edx, dword [eax + 6]
mov word [ebp - 0x2e], cx
mov ecx, dword [eax + 0xa]
mov dword [ebp - 0x28], ecx
movzx ecx, byte [eax + 0x10]
mov dword [ebp - 0x2c], edx
movzx edx, word [eax + 0xe]
add eax, 0x11
mov byte [ebp - 0x22], cl
mov ecx, dword [eax + 4]
mov word [ebp - 0x24], dx
mov edx, dword [eax]
mov dword [ebp - 0x1d], ecx
movzx ecx, byte [eax + 0xa]
push ebx
mov dword [ebp - 0x21], edx
movzx edx, word [eax + 8]
push eax
mov byte [ebp - 0x17], cl
xor ebx, ebx
push str.SELECT__FROM_MasterSkillTree_WHERE_Name_s
mov ecx, 0x4eb8c0
mov dword [ebp - 0x34], 0xd3000c2
mov byte [ebp - 0x30], bl
mov word [ebp - 0x19], dx
call fcn.00412e90
add esp, 8
test al, al
je 0x40feb9
mov edx, dword [0x4eb8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40feb9
push str.MasterLevel
mov ebx, 0x4eb8c0
call fcn.00413050
push str.MasterPoint
mov dword [ebp - 0x14], eax
call fcn.00413050
push str.MasterExperience
mov dword [ebp - 0x10], eax
call fcn.00413140
mov dword [ebp - 0xc], eax
mov eax, dword [0x4eb8cc]
push eax
mov dword [ebp - 8], edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4eb8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40fee0
mov edx, dword [0x4eb8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x4eb8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x34]
push ecx
push edx
mov ebx, 0x30
call fcn.00414a90
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ff00
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, 0x4eb8c0
call fcn.00412e90
add esp, 8
test al, al
je 0x40ff8a
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40ff8a
mov ecx, dword [0x4eb8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
push edi
push eax
mov eax, dword [esi + 0x20]
push ecx
push edx
push eax
push str.UPDATE_MasterSkillTree_SET_MasterLevel_d_MasterPoint_d_MasterExperience_I64d_WHERE_Name_s
mov ecx, 0x4eb8c0
call fcn.00412e90
mov ecx, dword [0x4eb8cc]
add esp, 0x18
push ecx
call ebx
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
ret
mov eax, dword [0x4eb8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x4eb8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
push edx
mov edx, dword [esi + 0x20]
push eax
push ecx
push edx
push edi
push str.INSERT_INTO_MasterSkillTree__Name_MasterLevel_MasterPoint_MasterExperience__VALUES___s__d__d__I64d_
mov ecx, 0x4eb8c0
call fcn.00412e90
mov eax, dword [0x4eb8cc]
add esp, 0x18
push eax
call ebx
mov ecx, dword [0x4eb8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
ret
Function at 0x410040
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 0x410098
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 0x4100bc
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.00415bcf
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x4100f5
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 0x41011a
push ebx
push str.__s__Could_not_read_file
jmp 0x4100d5
mov eax, dword [esi + 4]
cmp byte [eax], 0xef
jne 0x410147
cmp byte [eax + 1], 0xbb
jne 0x410147
cmp byte [eax + 2], 0xbf
jne 0x410147
mov edx, dword [esi + 8]
sub edx, 3
push edx
lea ecx, [eax + 3]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
add dword [esi + 8], 0xfffffffd
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 0x410670
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx ecx, word [eax + 4]
mov edx, dword [eax + 6]
mov word [ebp - 0x1c], cx
mov ecx, dword [eax + 0xa]
push ebx
mov dword [ebp - 0x16], ecx
mov cl, byte [eax + 0x10]
mov dword [ebp - 0x1a], edx
mov dx, word [eax + 0xe]
push esi
lea esi, [eax + 0x11]
mov eax, dword [esi + 4]
mov byte [ebp - 0x10], cl
movzx ecx, word [esi + 8]
mov word [ebp - 0x12], dx
mov edx, dword [esi]
mov dword [ebp - 0xf], edx
mov dl, byte [esi + 0xa]
mov word [ebp - 7], cx
push esi
push str.SELECT_Status_FROM_EventLeoTheHelper_WHERE_Name_s
mov ecx, 0x4eb8c0
mov dword [ebp - 0x20], 0xe1ec1
mov dword [ebp - 0xb], eax
mov byte [ebp - 5], dl
call fcn.00412e90
add esp, 8
test al, al
je 0x410716
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x410716
push str.Status
mov ebx, 0x4eb8c0
call fcn.00413050
mov ecx, dword [0x4eb8cc]
push ecx
mov byte [ebp - 4], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x410761
mov eax, dword [0x4eb8cc]
push edi
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call edi
mov ecx, dword [0x4eb8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call ebx
push esi
push str.INSERT_INTO_EventLeoTheHelper__Name_Status__VALUES___s_0_
mov ecx, 0x4eb8c0
call fcn.00412e90
mov edx, dword [0x4eb8cc]
add esp, 8
push edx
call edi
mov eax, dword [0x4eb8cc]
push 2
push eax
call ebx
mov byte [ebp - 4], 0
pop edi
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
push edx
mov ebx, 0x1e
call fcn.00414a90
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x410780
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx ecx, word [eax + 4]
mov edx, dword [eax + 6]
mov word [ebp - 0x1c], cx
mov ecx, dword [eax + 0xa]
push ebx
mov dword [ebp - 0x16], ecx
mov cl, byte [eax + 0x10]
mov dword [ebp - 0x1a], edx
mov dx, word [eax + 0xe]
push esi
lea esi, [eax + 0x11]
mov eax, dword [esi + 4]
mov byte [ebp - 0x10], cl
movzx ecx, word [esi + 8]
mov word [ebp - 0x12], dx
mov edx, dword [esi]
mov dword [ebp - 0xf], edx
mov dl, byte [esi + 0xa]
mov word [ebp - 7], cx
push esi
push str.SELECT_Status_FROM_EventSantaClaus_WHERE_Name_s
mov ecx, 0x4eb8c0
mov dword [ebp - 0x20], 0x10e1ec1
mov dword [ebp - 0xb], eax
mov byte [ebp - 5], dl
call fcn.00412e90
add esp, 8
test al, al
je 0x410826
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x410826
push str.Status
mov ebx, 0x4eb8c0
call fcn.00413050
mov ecx, dword [0x4eb8cc]
push ecx
mov byte [ebp - 4], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x410871
mov eax, dword [0x4eb8cc]
push edi
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call edi
mov ecx, dword [0x4eb8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call ebx
push esi
push str.INSERT_INTO_EventSantaClaus__Name_Status__VALUES___s_0_
mov ecx, 0x4eb8c0
call fcn.00412e90
mov edx, dword [0x4eb8cc]
add esp, 8
push edx
call edi
mov eax, dword [0x4eb8cc]
push 2
push eax
call ebx
mov byte [ebp - 4], 0
pop edi
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
push edx
mov ebx, 0x1e
call fcn.00414a90
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x410890
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
lea esi, [edi + 0x11]
push esi
push str.SELECT_Name_FROM_EventLeoTheHelper_WHERE_Name_s
mov ecx, 0x4eb8c0
call fcn.00412e90
add esp, 8
test al, al
je 0x41090f
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41090f
mov ecx, dword [0x4eb8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, byte [edi + 0x1c]
push esi
push eax
push str.UPDATE_EventLeoTheHelper_SET_Status_d_WHERE_Name_s
mov ecx, 0x4eb8c0
call fcn.00412e90
mov ecx, dword [0x4eb8cc]
add esp, 0xc
push ecx
call ebx
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret
mov eax, dword [0x4eb8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x4eb8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx edx, byte [edi + 0x1c]
push edx
push esi
push str.INSERT_INTO_EventLeoTheHelper__Name_Status__VALUES___s__d_
mov ecx, 0x4eb8c0
call fcn.00412e90
mov eax, dword [0x4eb8cc]
add esp, 0xc
push eax
call ebx
mov ecx, dword [0x4eb8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret