joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408380
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0xffffffff
je 0x4083a7
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0xffffffff
push 0
push 0
push 0
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0xffffffff
jne 0x4083cc
xor eax, eax
jmp 0x4083d1
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4083e0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov edx, 2
mov eax, dword [ebp - 8]
mov word [eax + 0x84c], dx
movzx ecx, word [ebp + 0xc]
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov edx, dword [ebp - 8]
mov word [edx + 0x84e], ax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x850], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x850], 0xffffffff
jne 0x408477
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x408473
mov ecx, dword [ebp - 4]
movsx edx, word [ecx + 0xa]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
add eax, 0x850
push eax
call fcn.00434160
add esp, 0xc
jmp 0x408477
xor eax, eax
jmp 0x40847c
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x408490
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0x14
push 0
mov eax, dword [ebp - 8]
add eax, 0x28
push eax
call fcn.00433530
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
add eax, 0x44
push eax
call fcn.00434160
add esp, 0xc
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x848], edx
mov eax, dword [ebp - 8]
add eax, 0x44
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x40], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x848]
mov dword [edx + 0x3c], ecx
push 0
mov edx, dword [ebp - 8]
add edx, 0x28
push edx
push 0x10
mov eax, dword [ebp - 8]
add eax, 0x84c
push eax
push 0
lea ecx, [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp - 8]
add edx, 0x3c
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_WSASendTo]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x408535
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x408535
or eax, 0xffffffff
jmp 0x40853a
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x409cf0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 8], 0
xor eax, eax
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
push 8
push 0x90
lea ecx, [ebp - 8]
call fcn.00409d80
mov byte [ebp - 5], 1
push str.SELECT_ItemCount_FROM_GameServerInfo_WHERE_Number0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 8
cmp eax, 1
jne 0x409d59
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
push str.ItemCount
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
movzx edx, byte [ebp - 7]
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407670
mov esp, ebp
pop ebp
ret
Function at 0x40d4a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x454350]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 0x78], 0
push 0x63
push 0
lea ecx, [ebp - 0x77]
push ecx
call fcn.00433530
add esp, 0xc
push 0xa
mov edx, dword [ebp + 0x10]
add edx, 3
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.00434160
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
push str.SELECT_Name_FROM_OptionData_WHERE_Name_s
mov edx, dword [ebp + 8]
add edx, 0x7d80
push edx
call fcn.00408880
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
cwde
cmp eax, 0x64
jne 0x40d58f
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov ecx, dword [ebp + 0x10]
movzx edx, byte [ecx + 0x25]
push edx
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 0x26]
push ecx
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx + 0x24]
push eax
mov ecx, dword [ebp + 0x10]
movzx edx, byte [ecx + 0x23]
push edx
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 0x22]
push ecx
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx + 0x21]
push eax
lea ecx, [ebp - 0x10]
push ecx
push str.INSERT_INTO_OptionData__Name__GameOption__Qkey__Wkey__Ekey__Rkey__ChatWindow__VALUES___s___d___d___d___d___d___d_
mov edx, dword [ebp + 8]
add edx, 0x7d80
push edx
call fcn.00408880
add esp, 0x24
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
jmp 0x40d604
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x10]
movzx edx, byte [ecx + 0x25]
push edx
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 0x26]
push ecx
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx + 0x24]
push eax
mov ecx, dword [ebp + 0x10]
movzx edx, byte [ecx + 0x23]
push edx
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 0x22]
push ecx
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx + 0x21]
push eax
push str.UPDATE_OptionData_SET_GameOption_d__Qkey_d__Wkey_d__Ekey_d__Rkey_d__ChatWindow_d_WHERE_Name_s
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0x24
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
lea edx, [ebp - 0x10]
push edx
push str.UPDATE_OptionData_SET_SkillKey__where_Name_s
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x14
mov ecx, dword [ebp + 0x10]
add ecx, 0xd
push ecx
lea edx, [ebp - 0x78]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408fe0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434051
mov esp, ebp
pop ebp
ret
Function at 0x410310
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x454350]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0x64
mov byte [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
push 0x1c
push 1
push 0xe4
lea ecx, [ebp - 0x20]
push ecx
call fcn.00406300
add esp, 0x10
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
push 0xb
mov ecx, dword [ebp + 0x10]
add ecx, 8
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.00434160
add esp, 0xc
mov byte [ebp - 0xe], 0
mov eax, dword [ebp + 0x10]
add eax, 8
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xf04a
push ecx
push str.SELECT_EventChips__Check_Code__MuttoNumber_FROM__s.dbo.T_MU2003_EVENT_WHERE_AccountID_s
mov edx, dword [ebp + 8]
add edx, 0x7d80
push edx
call fcn.00408880
add esp, 0x10
test eax, eax
jne 0x4103b2
mov byte [ebp - 0xd], 0
jmp 0x410465
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
cwde
cmp eax, 0x64
je 0x410418
push str.Check_Code
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
test eax, eax
je 0x4103e5
xor ecx, ecx
mov word [ebp - 0xc], cx
jmp 0x4103fc
push str.EventChips
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov word [ebp - 0xc], ax
push str.MuttonNumber
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 8], eax
mov byte [ebp - 0xd], 1
jmp 0x410465
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
add eax, 0xf04a
push eax
push str.INSERT_INTO__s.dbo.T_MU2003_EVENT__AccountID__VALUES___s_
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0x10
test eax, eax
jne 0x410454
mov byte [ebp - 0xd], 0
jmp 0x410465
xor edx, edx
mov word [ebp - 0xc], dx
mov dword [ebp - 8], 0
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407670
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434051
mov esp, ebp
pop ebp
ret
Function at 0x4104a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x454350]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
push 0x18
push 2
push 0xe4
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00406300
add esp, 0x10
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
mov dl, byte [ecx + 8]
mov byte [ebp - 0x14], dl
mov eax, dword [ebp + 0x10]
add eax, 9
push eax
lea ecx, [ebp - 0x13]
push ecx
call fcn.00434060
add esp, 8
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov edx, dword [ebp + 0x10]
add edx, 9
push edx
mov eax, dword [ebp + 8]
add eax, 0xf04a
push eax
push str.UPDATE__s.dbo.T_MU2003_EVENT_SET_EventChips__EventChips__1_WHERE_AccountID___s
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0x10
test eax, eax
je 0x4105c3
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov edx, dword [ebp + 0x10]
add edx, 9
push edx
mov eax, dword [ebp + 8]
add eax, 0xf04a
push eax
push str.SELECT_EventChips_FROM__s.dbo.T_MU2003_EVENT_WHERE_AccountID_s
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0x10
test eax, eax
je 0x4105c3
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
movsx edx, ax
cmp edx, 0x64
je 0x4105c3
push str.EventChips
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov word [ebp - 6], ax
movsx eax, word [ebp - 6]
cmp eax, 0xffffffff
je 0x4105c3
mov ecx, 1
mov word [ebp - 6], cx
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
push 0x18
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00407670
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434051
mov esp, ebp
pop ebp
ret
Function at 0x4106d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x454350]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
push 0x18
push 5
push 0xe4
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00406300
add esp, 0x10
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
add ecx, 8
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00434060
add esp, 8
mov byte [ebp - 0xa], 0
mov eax, dword [ebp + 0x10]
add eax, 8
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xf04a
push ecx
push str.SELECT_StoneCount__Check_Code_FROM__s.dbo.T_BLOOD_CASTLE_WHERE_AccountID_s
mov edx, dword [ebp + 8]
add edx, 0x7d80
push edx
call fcn.00408880
add esp, 0x10
test eax, eax
jne 0x410774
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov byte [ebp - 9], 0
jmp 0x410816
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
cwde
cmp eax, 0x64
je 0x4107c4
push str.Check_Code
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
test eax, eax
je 0x4107a8
mov dword [ebp - 8], 0
jmp 0x4107be
push str.StoneCount
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 8], eax
mov byte [ebp - 9], 1
jmp 0x410816
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov ecx, dword [ebp + 0x10]
add ecx, 8
push ecx
mov edx, dword [ebp + 8]
add edx, 0xf04a
push edx
push str.INSERT_INTO__s.dbo.T_BLOOD_CASTLE__AccountID__VALUES___s_
mov eax, dword [ebp + 8]
add eax, 0x7d80
push eax
call fcn.00408880
add esp, 0x10
test eax, eax
je 0x410816
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov byte [ebp - 9], 1
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
push 0x18
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00407670
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434051
mov esp, ebp
pop ebp
ret
Function at 0x410850
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x454350]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
push 0x1c
push 6
push 0xe4
lea ecx, [ebp - 0x20]
push ecx
call fcn.00406300
add esp, 0x10
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x10]
mov dl, byte [ecx + 8]
mov byte [ebp - 0x18], dl
mov eax, dword [ebp + 0x10]
add eax, 9
push eax
lea ecx, [ebp - 0x17]
push ecx
call fcn.00434060
add esp, 8
mov byte [ebp - 0xd], 0
mov edx, dword [ebp + 0x10]
add edx, 9
push edx
mov eax, dword [ebp + 8]
add eax, 0xf04a
push eax
push str.UPDATE__s.dbo.T_BLOOD_CASTLE_SET_StoneCount__StoneCount__1_WHERE_AccountID___s
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0x10
test eax, eax
je 0x410971
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov edx, dword [ebp + 0x10]
add edx, 9
push edx
mov eax, dword [ebp + 8]
add eax, 0xf04a
push eax
push str.SELECT_StoneCount_FROM__s.dbo.T_BLOOD_CASTLE_WHERE_AccountID_s
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0x10
test eax, eax
je 0x41096f
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
movsx edx, ax
cmp edx, 0x64
je 0x41096b
push str.StoneCount
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x410969
mov byte [ebp - 0xc], 1
jmp 0x41096f
mov byte [ebp - 0xc], 0
jmp 0x410975
mov byte [ebp - 0xc], 0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407670
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434051
mov esp, ebp
pop ebp
ret
Function at 0x4109b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x454350]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
push 0x18
push 7
push 0xe4
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00406300
add esp, 0x10
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
add ecx, 8
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00434060
add esp, 8
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov eax, dword [ebp + 0x10]
add eax, 8
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xf04a
push ecx
push str.SELECT_StoneCount_FROM__s.dbo.T_BLOOD_CASTLE_WHERE_AccountID_s
mov edx, dword [ebp + 8]
add edx, 0x7d80
push edx
call fcn.00408880
add esp, 0x10
test eax, eax
je 0x410a55
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
cwde
cmp eax, 0x64
jne 0x410a6c
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov byte [ebp - 9], 0
jmp 0x410aed
push str.StoneCount
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
cmp dword [ebp - 0x20], 0xffffffff
je 0x410aed
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ecx + 0x14]
jl 0x410aed
mov eax, dword [ebp + 0x10]
add eax, 8
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xf04a
push ecx
push str.UPDATE__s.dbo.T_BLOOD_CASTLE_SET_StoneCount__StoneCount____d_WHERE_AccountID_s
mov edx, dword [ebp + 8]
add edx, 0x7d80
push edx
call fcn.00408880
add esp, 0x10
test eax, eax
jne 0x410acf
jmp 0x410aed
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov byte [ebp - 9], 1
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [eax + 0x14]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
push 0x18
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00407670
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434051
mov esp, ebp
pop ebp
ret
Function at 0x411ba0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00422d60
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov ecx, 0x4c6ddc
call fcn.004188a0
push str.SELECT__FROM_Guild_WHERE_Number__G_Union
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411510
add esp, 8
push str.SELECT__FROM_Guild_WHERE_Number____G_Union
mov edx, dword [ebp + 8]
push edx
call fcn.00411510
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
push eax
push str._MuOnlineDB__GuildData_Loaded_in__d_msec
push 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ecx + 4]
call eax
add esp, 0x10
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x421ba0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x65d4
call fcn.004357f0
mov eax, dword [0x454350]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x1b], ecx
mov dword [ebp - 0x17], ecx
mov word [ebp - 0x13], cx
push 0xa
mov edx, dword [ebp + 0x10]
add edx, 0xe
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.00434160
add esp, 0xc
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 3
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.00434160
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.004063d0
add esp, 4
cmp eax, 1
jne 0x421dc7
lea ecx, [ebp - 0x10]
push ecx
call fcn.00406360
add esp, 4
cmp eax, 1
jne 0x421dc7
mov byte [ebp - 0x3ec0], 0
push 0x1f5b
push 0
lea edx, [ebp - 0x3ebf]
push edx
call fcn.00433530
add esp, 0xc
push 0x1f5c
push 0xde
lea eax, [ebp - 0x3ec0]
push eax
call fcn.00406330
add esp, 0xc
mov byte [ebp - 0x1f60], 0
push 0x1f3f
push 0
lea ecx, [ebp - 0x1f5f]
push ecx
call fcn.00433530
add esp, 0xc
push 0xa
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x3ebc]
push eax
call fcn.00434160
add esp, 0xc
push 0xa
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x3eb1]
push edx
call fcn.00434160
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov cx, word [eax + 0x1a]
mov word [ebp - 0x3ea6], cx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xeff0
push ecx
push str.SELECT_Name_FROM__s.dbo.SCFS5Quest_WHERE_Name___s_and_AccountID___s
mov edx, dword [ebp + 8]
add edx, 0x7d80
push edx
call fcn.00408880
add esp, 0x14
mov dword [ebp - 0x65d4], eax
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
cwde
cmp eax, 0x64
je 0x421d02
cmp dword [ebp - 0x65d4], 0
jne 0x421d1a
push 0x1f40
push 0
lea ecx, [ebp - 0x1f60]
push ecx
call fcn.00433530
add esp, 0xc
jmp 0x421d86
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xeff0
push ecx
push str.SELECT_SCFS5Quest_FROM__s.dbo.SCFS5Quest_where_Name___s_and_AccountID___s
lea edx, [ebp - 0x65d0]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x1f60]
push eax
lea ecx, [ebp - 0x65d0]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408e20
cmp eax, 0xffffffff
jne 0x421d86
push 0x1f40
push 0
lea edx, [ebp - 0x1f60]
push edx
call fcn.00433530
add esp, 0xc
push 0x1f40
lea eax, [ebp - 0x1f60]
push eax
lea ecx, [ebp - 0x3ea4]
push ecx
call fcn.00434160
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
push 0x1f5c
lea edx, [ebp - 0x3ec0]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00407670
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434051
mov esp, ebp
pop ebp
ret
Function at 0x421e90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2728
call fcn.004357f0
mov eax, dword [0x454350]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 0xf
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00434160
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.004063d0
add esp, 4
cmp eax, 1
jne 0x422004
lea ecx, [ebp - 0x10]
push ecx
call fcn.00406360
add esp, 4
cmp eax, 1
jne 0x422004
mov edx, dword [ebp + 0x10]
add edx, 4
push edx
mov eax, dword [ebp + 0x10]
add eax, 0xf
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xeff0
push ecx
push str.SELECT_Name_FROM__s.dbo.SCFS5Quest_WHERE_Name___s_and_AccountID__s
mov edx, dword [ebp + 8]
add edx, 0x7d80
push edx
call fcn.00408880
add esp, 0x14
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
cwde
cmp eax, 0x64
je 0x421f42
cmp dword [ebp - 0x14], 0
jne 0x421f8c
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov ecx, dword [ebp + 0x10]
add ecx, 0xf
push ecx
mov edx, dword [ebp + 0x10]
add edx, 4
push edx
mov eax, dword [ebp + 8]
add eax, 0xeff0
push eax
push str.INSERT_INTO__s.dbo.SCFS5Quest__AccountID__Name__VALUES___s__s_
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0x14
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov edx, dword [ebp + 0x10]
add edx, 4
push edx
mov eax, dword [ebp + 0x10]
add eax, 0xf
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xeff0
push ecx
push str.UPDATE__s.dbo.SCFS5Quest_SET_SCFS5Quest__WHERE_Name_s_and_AccountID_s
lea edx, [ebp - 0x2728]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x1f40
mov eax, dword [ebp + 0x10]
add eax, 0x1a
push eax
lea ecx, [ebp - 0x2728]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408fe0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434051
mov esp, ebp
pop ebp
ret