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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x43e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
mov dword [ebp - 0x428], edx
push esi
push edi
mov dword [ebp - 0x424], eax
lea esi, [eax + 8]
push esi
push str.SELECT_GUID_FROM_T_FriendMain_WHERE_Name_s
push 0x43edd8
call fcn.00414960
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
add esp, 0xc
push dword [0x43ede4]
call ebx
push str.GUID
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x40697b
or edi, eax
jmp 0x40698e
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
mov edi, eax
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x424]
movq xmm0, qword [esi]
push edi
mov dword [ebp - 0x420], 0x721204c2
movzx eax, word [ecx + 4]
mov word [ebp - 0x41c], ax
movzx eax, word [esi + 8]
mov word [ebp - 0x412], ax
mov al, byte [esi + 0xa]
mov byte [ebp - 0x410], al
movzx eax, word [ecx + 6]
push eax
push str.SELECT_Memo_Photo_Dir_Act_FROM_T_FriendMail_WHERE_MemoIndex_d_AND_GUID_d
push 0x43edd8
movq qword [ebp - 0x41a], xmm0
mov word [ebp - 0x40e], ax
call fcn.00414960
add esp, 0x10
push dword [0x43ede4]
call ebx
push 0x12
lea eax, [ebp - 0x40a]
push eax
push str.Photo
call fcn.00414c00
push 0x43710c
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x406a30
or eax, eax
jmp 0x406a41
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
push 0x437110
mov byte [ebp - 0x3f8], al
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x406a5a
or eax, eax
jmp 0x406a6b
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
mov byte [ebp - 0x3f7], al
lea eax, [ebp - 0x3f6]
push 0x3e8
push eax
push str.Memo
call fcn.00414c00
lea ecx, [ebp - 0x3f6]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406a90
push dword [0x43ede4]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
sub ecx, edx
mov word [ebp - 0x40c], cx
call esi
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call ebx
mov eax, dword [ebp - 0x424]
push edi
movzx eax, word [eax + 6]
push eax
push str.UPDATE_T_FriendMail_SET_bRead1_WHERE_MemoIndex_d_AND_GUID_d
push 0x43edd8
call fcn.00414960
add esp, 0x10
push dword [0x43ede4]
call esi
push 2
push dword [0x43ede4]
call ebx
mov ecx, dword [ebp - 0x428]
lea edx, [ebp - 0x420]
push 0x412
call fcn.00405870
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004178c7
mov esp, ebp
pop ebp
ret
Function at 0x406b20
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x43e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 0x25], dl
push edi
push str.SELECT_GUID_FROM_T_FriendMain_WHERE_Name_s
push 0x43edd8
call fcn.00414960
add esp, 0xc
test al, al
je 0x406cd8
push dword [0x43ede4]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
call ebx
cmp ax, 0x64
je 0x406cd8
push str.GUID
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x406b7e
or esi, eax
jmp 0x406b91
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
mov esi, eax
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push esi
push str.SELECT_FriendName_Del_FROM_T_FriendList_WHERE_GUID_d
push 0x43edd8
call fcn.00414960
add esp, 0x10
test al, al
je 0x406cd8
push dword [0x43ede4]
call ebx
cmp ax, 0x64
je 0x406cd8
nop word [eax + eax]
push str.FriendName
mov word [ebp - 0x24], 0x1ec1
mov byte [ebp - 0x22], 0x62
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x406c0d
xorps xmm0, xmm0
mov word [ebp - 0x16], 0
movq qword [ebp - 0x1e], xmm0
mov byte [ebp - 0x14], 0
jmp 0x406c26
shl eax, 0xd
push 0xa
add eax, 0x4405be
push eax
lea eax, [ebp - 0x1e]
push 0xb
push eax
call fcn.004211ed
add esp, 0x10
lea eax, [ebp - 0x1e]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004044f0
test al, al
je 0x406cc6
cmp byte [ebp - 0x25], 0
movzx eax, word [ebp - 0x2e]
movq xmm0, qword [edi]
mov word [ebp - 0x20], ax
movzx eax, word [edi + 8]
mov word [ebp - 0xb], ax
mov al, byte [edi + 0xa]
movq qword [ebp - 0x13], xmm0
mov byte [ebp - 9], al
jne 0x406ca3
push 0x436f30
call fcn.00414bb0
cmp eax, 0xffffffff
je 0x406ca3
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
test eax, eax
jne 0x406ca3
lea eax, [ebp - 0x13]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004044f0
test al, al
mov eax, 0xffff
je 0x406c9e
movzx eax, word [ebp - 0x48]
mov byte [ebp - 8], al
jmp 0x406ca7
mov byte [ebp - 8], 0xff
mov ecx, dword [ebp - 0x2c]
call fcn.00417270
test eax, eax
je 0x406cc6
movzx ecx, byte [ebp - 0x23]
lea edx, [ebp - 0x24]
push ecx
mov ecx, dword [eax + 4]
call fcn.00405870
add esp, 4
push dword [0x43ede4]
call ebx
cmp ax, 0x64
jne 0x406be0
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004178c7
mov esp, ebp
pop ebp
ret
Function at 0x406d10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x43e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push edx
push str.SELECT_MemoIndex_FriendName_wDate_Subject_bRead_FROM_T_FriendMail_WHERE_GUID_d
push 0x43edd8
mov dword [ebp - 0x6c], ecx
call fcn.00414960
add esp, 0xc
test al, al
je 0x406ea7
push dword [0x43ede4]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
call ebx
cmp ax, 0x64
je 0x406ea7
mov di, word [ebp + 8]
push str.MemoIndex
mov dword [ebp - 0x68], 0x715e00c2
mov word [ebp - 0x64], di
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x406d7e
or eax, eax
jmp 0x406d8f
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
push str.FriendName
mov word [ebp - 0x62], ax
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x406db6
xorps xmm0, xmm0
mov word [ebp - 0x58], 0
movq qword [ebp - 0x60], xmm0
mov byte [ebp - 0x56], 0
jmp 0x406dcf
shl eax, 0xd
push 0xa
add eax, 0x4405be
push eax
lea eax, [ebp - 0x60]
push 0xb
push eax
call fcn.004211ed
add esp, 0x10
mov ax, word [esi + 8]
movq xmm0, qword [esi]
mov word [ebp - 0x4d], ax
mov al, byte [esi + 0xa]
push str.wDate
movq qword [ebp - 0x55], xmm0
mov byte [ebp - 0x4b], al
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x406e10
xorps xmm0, xmm0
mov dword [ebp - 0x32], 0
movups xmmword [ebp - 0x4a], xmm0
mov word [ebp - 0x2e], 0
movq qword [ebp - 0x3a], xmm0
jmp 0x406e29
shl eax, 0xd
push 0x1d
add eax, 0x4405be
push eax
lea eax, [ebp - 0x4a]
push 0x1e
push eax
call fcn.004211ed
add esp, 0x10
push str.Subject
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x406e45
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x1c], xmm0
jmp 0x406e5e
shl eax, 0xd
push 0x1f
add eax, 0x4405be
push eax
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.004211ed
add esp, 0x10
push str.bRead
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x406e71
or eax, eax
jmp 0x406e82
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
mov ecx, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
push 0x5e
mov byte [ebp - 0xc], al
call fcn.00405870
add esp, 4
push dword [0x43ede4]
call ebx
cmp ax, 0x64
jne 0x406d60
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004178c7
mov esp, ebp
pop ebp
ret
Function at 0x40ee60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x43e040]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
mov word [ebp - 0x3c], ax
movzx eax, word [ecx + 0xe]
mov word [ebp - 0x32], ax
mov al, byte [ecx + 0x10]
add ecx, 0x11
push ebx
push esi
mov byte [ebp - 0x30], al
mov esi, edx
movzx eax, word [ecx + 8]
mov bl, 0x3c
push ecx
movq qword [ebp - 0x3a], xmm0
movq xmm0, qword [ecx]
mov word [ebp - 0x27], ax
mov al, byte [ecx + 0xa]
push str.SELECT__FROM_OptionData_WHERE_Name_s
push 0x43edd8
mov word [ebp - 0x40], 0x3cc1
mov byte [ebp - 0x3e], 8
movq qword [ebp - 0x2f], xmm0
mov byte [ebp - 0x25], al
call fcn.00414960
add esp, 0xc
test al, al
je 0x40f02b
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40f02b
push 0x14
lea eax, [ebp - 0x24]
push eax
push str.SkillKey
call fcn.00414c00
push str.GameOption
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x40ef0e
or eax, eax
jmp 0x40ef1f
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
push str.Qkey
mov byte [ebp - 0x10], al
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x40ef35
or eax, eax
jmp 0x40ef46
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
push str.Wkey
mov byte [ebp - 0xf], al
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x40ef5c
or eax, eax
jmp 0x40ef6d
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
push str.Ekey
mov byte [ebp - 0xe], al
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x40ef83
or eax, eax
jmp 0x40ef94
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
push str.ChatWindow
mov byte [ebp - 0xd], al
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x40efaa
or eax, eax
jmp 0x40efbb
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
push str.Rkey
mov byte [ebp - 0xc], al
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x40efd1
or eax, eax
jmp 0x40efe2
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
push str.QWERLevel
mov byte [ebp - 0xb], al
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x40eff8
or eax, eax
jmp 0x40f009
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 8], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov bl, byte [ebp - 0x3f]
jmp 0x40f06b
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movaps xmm0, xmmword [0x43a5b0]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x10], 0xffffff15
mov word [ebp - 0xc], 0xff0f
mov dword [ebp - 8], 0xffffffff
movzx eax, bl
push eax
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.00416260
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004178c7
mov esp, ebp
pop ebp
ret
Function at 0x40f090
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x103c
call fcn.0042ee60
mov eax, dword [0x43e040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ecx + 0x12], 0
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
mov word [ebp - 0x101c], ax
movzx eax, word [ecx + 0xe]
mov word [ebp - 0x1012], ax
mov al, byte [ecx + 0x10]
push ebx
mov byte [ebp - 0x1010], al
mov ebx, 0x14
mov al, byte [ecx + 0x11]
push esi
push edi
mov dword [ebp - 0x1038], edx
mov dword [ebp - 0x1034], ecx
mov byte [ebp - 0x1020], 0xc2
mov byte [ebp - 0x101d], 9
movq qword [ebp - 0x101a], xmm0
mov byte [ebp - 0x100f], al
mov byte [ebp - 0x100e], 0
mov dword [ebp - 0x100c], 0
jbe 0x40f27b
lea edi, [ebp - 0xff4]
lea esi, [ecx + 0x18]
push dword [esi]
push str.SELECT_Pet_Level_Pet_Exp_FROM_T_PetItem_Info_WHERE_ItemSerial_d
push 0x43edd8
call fcn.00414960
add esp, 0xc
test al, al
je 0x40f1d5
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40f1d5
mov al, byte [esi - 4]
mov byte [ebp - 0x1030], al
mov eax, dword [esi]
push str.Pet_Level
mov dword [ebp - 0x102c], eax
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x40f178
or eax, eax
jmp 0x40f189
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
push str.Pet_Exp
mov byte [ebp - 0x1028], al
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x40f1a2
or eax, eax
jmp 0x40f1b3
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 0x1024], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x40f243
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0
push 1
push dword [esi]
push str.INSERT_INTO_T_PetItem_Info__ItemSerial_Pet_Level_Pet_Exp__VALUES___d__d__d_
push 0x43edd8
call fcn.00414960
add esp, 0x14
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov al, byte [esi - 4]
mov byte [ebp - 0x1030], al
mov eax, dword [esi]
mov dword [ebp - 0x102c], eax
mov byte [ebp - 0x1028], 1
mov dword [ebp - 0x1024], 0
mov eax, dword [ebp - 0x1034]
add ebx, 0x10
movups xmm0, xmmword [ebp - 0x1030]
mov ecx, dword [ebp - 0x100c]
add esi, 8
inc byte [ebp - 0x100e]
inc ecx
movzx eax, byte [eax + 0x12]
movups xmmword [edi], xmm0
add edi, 0x10
mov dword [ebp - 0x100c], ecx
cmp ecx, eax
jl 0x40f122
mov eax, ebx
mov byte [ebp - 0x101e], bl
shr eax, 8
mov byte [ebp - 0x101f], al
mov eax, dword [ebp - 0x1010]
movups xmm0, xmmword [ebp - 0x1020]
mov dword [ebp - 0xff8], eax
lea eax, [ebp - 0x1008]
push ebx
push eax
push dword [ebp - 0x1038]
movups xmmword [ebp - 0x1008], xmm0
call fcn.00416260
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004178c7
mov esp, ebp
pop ebp
ret
Function at 0x40f770
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 0x11]
push eax
push str.SELECT_Name_FROM_OptionData_WHERE_Name_s
push 0x43edd8
call fcn.00414960
add esp, 0xc
test al, al
je 0x40f81c
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40f81c
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call esi
push 0x5d08e0
push 0
lea eax, [ebx + 0x1c]
mov dword [0x5d08e0], 0x14
push eax
push 0
push 0x14
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
lea eax, [ebx + 0x11]
push eax
push dword [ebx + 0x38]
movzx eax, byte [ebx + 0x35]
push eax
movzx eax, byte [ebx + 0x34]
push eax
movzx eax, byte [ebx + 0x33]
push eax
movzx eax, byte [ebx + 0x32]
push eax
movzx eax, byte [ebx + 0x31]
push eax
movzx eax, byte [ebx + 0x30]
push eax
push str.UPDATE_OptionData_SET_SkillKey__GameOption_d_Qkey_d_Wkey_d_Ekey_d_ChatWindow_d_Rkey_d_QWERLevel_d_WHERE_Name_s
jmp 0x40f891
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call esi
push 0x5d08e0
push 0
lea eax, [ebx + 0x1c]
mov dword [0x5d08e0], 0x14
push eax
push 0
push 0x14
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push dword [ebx + 0x38]
movzx eax, byte [ebx + 0x35]
push eax
movzx eax, byte [ebx + 0x34]
push eax
movzx eax, byte [ebx + 0x33]
push eax
movzx eax, byte [ebx + 0x32]
push eax
movzx eax, byte [ebx + 0x31]
push eax
movzx eax, byte [ebx + 0x30]
push eax
lea eax, [ebx + 0x11]
push eax
push str.INSERT_INTO_OptionData__Name_SkillKey_GameOption_Qkey_Wkey_Ekey_ChatWindow_Rkey_QWERLevel__VALUES___s____d__d__d__d__d__d__d_
push 0x43edd8
call fcn.00414960
add esp, 0x28
push dword [0x43ede4]
call edi
push 2
push dword [0x43ede4]
call esi
pop edi
pop esi
pop ebx
ret
Function at 0x4122f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x28], 0x21128c1
movzx eax, word [ecx + 4]
movq xmm0, qword [ecx + 6]
mov word [ebp - 0x24], ax
movzx eax, word [ecx + 0xe]
mov word [ebp - 0x1a], ax
mov al, byte [ecx + 0x10]
add ecx, 0x11
mov byte [ebp - 0x18], al
push ecx
movq qword [ebp - 0x22], xmm0
movzx eax, word [ecx + 8]
movq xmm0, qword [ecx]
mov word [ebp - 0xf], ax
mov al, byte [ecx + 0xa]
push str.SELECT_Family_FROM_Gens_Rank_WHERE_Name_s
push 0x43edd8
mov dword [ebp + 8], ecx
movq qword [ebp - 0x17], xmm0
mov byte [ebp - 0xd], al
mov word [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.00414960
add esp, 0xc
test al, al
je 0x412478
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x412478
push str.Family
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x412397
or ebx, eax
jmp 0x4123aa
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
mov ebx, eax
push dword [0x43ede4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov byte [ebp - 0xb], bl
call edi
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, bl
push eax
push dword [ebp + 8]
push str.EXEC_WZ_GetCharacterGensInfo__s__d
push 0x43edd8
call fcn.00414960
add esp, 0x10
test al, al
je 0x41245f
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41245f
push str.Rank
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x41240b
or eax, eax
jmp 0x41241c
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
push str.Contribution
mov dword [ebp - 8], eax
call fcn.00414bb0
cmp eax, 0xffffffff
jne 0x412432
or eax, eax
jmp 0x412443
shl eax, 0xd
add eax, 0x4405be
push eax
call fcn.0041de3e
add esp, 4
push dword [0x43ede4]
mov dword [ebp - 4], eax
call edi
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call eax
jmp 0x412496
push dword [0x43ede4]
call edi
mov eax, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x43ede4]
call eax
jmp 0x412492
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x43ede4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0xc], 1
push 0x28
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call fcn.00416260
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x413d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x43e040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
test eax, eax
js 0x413f3a
cmp eax, dword [ecx + 0x218]
jge 0x413f3a
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x413f3a
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x816]
cmp eax, dword [edi + 0x108]
jne 0x413dcf
movzx eax, word [ebp - 0x81a]
cmp eax, dword [edi + 0x10c]
jne 0x413dcf
movzx eax, word [ebp - 0x81c]
cmp eax, dword [edi + 0x110]
je 0x413e8e
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, word [ebp - 0x816]
lea esi, [edi + 0x114]
movzx ecx, word [ebp - 0x81a]
movzx eax, word [ebp - 0x81c]
push edx
push ecx
push eax
mov dword [edi + 0x110], eax
lea eax, [edi + 8]
push eax
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + 0x108], edx
mov dword [edi + 0x10c], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x214], eax
cmp eax, 0xffffffff
jne 0x413e59
mov dword [edi + 4], 0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004178c7
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 0x413e8e
push dword [edi + 0x214]
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004178c7
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.004190e0
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.00413f60
add esp, 0x14
lea eax, [ebp - 0x40c]
push 0x400
push 0
push eax
call fcn.004190e0
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
movzx eax, word [ebp - 0x810]
push eax
movzx eax, word [ebp - 0x812]
push eax
movzx eax, word [ebp - 0x814]
push eax
lea eax, [ebp - 0x40c]
push str._02d:_02d:_02d__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x40c]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413f14
push 0
lea eax, [ebp - 0x820]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x40c]
push eax
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004178c7
mov esp, ebp
pop ebp
ret