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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
movzx ecx, word [eax + 4]
mov edx, dword [eax + 6]
push ebx
push esi
lea esi, [eax + 6]
mov word [ebp - 0x38], cx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x36], edx
mov dx, word [esi + 8]
mov dword [ebp - 0x32], ecx
mov cl, byte [esi + 0xa]
mov word [ebp - 0x2e], dx
mov edx, dword [eax + 0x14]
mov byte [ebp - 0x2c], cl
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x24], ecx
movzx ecx, word [eax + 0x20]
push edi
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 0x24]
mov al, byte [eax + 0x28]
mov word [ebp - 0x1c], cx
push esi
push str.SELECT__FROM_CashShopData_WHERE_AccountID_s
mov ecx, 0x4ed8c0
mov bl, 1
mov dword [ebp - 0x3c], 0x1183cc1
mov byte [ebp - 0x2b], 0
mov dword [ebp - 0x18], edx
mov byte [ebp - 0x14], al
call fcn.00414e40
add esp, 8
test al, al
je 0x4034ca
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4034ca
push str.WCoinC
mov ebx, 0x4ed8c0
call fcn.00415000
push str.WCoinP
mov dword [ebp - 0x10], eax
call fcn.00415000
push str.GoblinPoint
mov dword [ebp - 0xc], eax
call fcn.00415000
mov edx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
mov dword [ebp - 8], eax
call ebx
mov eax, dword [0x4ed8cc]
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push eax
call edi
push 0x53
push esi
push str.SELECT_count___FROM_CashShopInventory_WHERE_AccountID_s_AND_InventoryType_d
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 0xc
test al, al
je 0x4034b0
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4034b0
push 0x4ee4ee
call dword [sym.imp.MSVCR100.dll_atoi]
mov edx, dword [0x4ed8cc]
add esp, 4
push edx
mov dword [ebp - 4], eax
call ebx
mov eax, dword [0x4ed8cc]
push 2
push eax
call edi
jmp 0x4034e8
mov ecx, dword [0x4ed8cc]
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call edi
mov byte [ebp - 0x2b], 1
jmp 0x4034e8
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x2b], bl
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x3c]
push edx
push eax
mov ebx, 0x3c
call fcn.00416c00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4037b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8ec
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 8], eax
mov ax, word [esi + 4]
mov ecx, dword [esi + 6]
mov edx, dword [esi + 0xa]
mov word [ebp - 0x8e6], ax
lea eax, [esi + 6]
mov dword [ebp - 0x8e4], ecx
mov cx, word [eax + 8]
mov dword [ebp - 0x8e0], edx
mov dl, byte [eax + 0xa]
mov word [ebp - 0x8dc], cx
mov ecx, dword [esi + 0x14]
mov byte [ebp - 0x8da], dl
xor edx, edx
mov dword [ebp - 0x8d8], ecx
mov cl, byte [esi + 0x18]
push ebx
mov byte [ebp - 0x8d9], dl
mov dword [ebp - 0x8d0], edx
mov dword [ebp - 0x8cc], edx
movzx edx, cl
push edi
push edx
push eax
mov byte [ebp - 0x8d4], cl
push str.SELECT__FROM_CashShopInventory_WHERE_AccountID_s_AND_InventoryType_d
mov ecx, 0x4ed8c0
mov dword [ebp - 0x8ec], 0x18e008c2
mov byte [ebp - 0x8e8], 3
call fcn.00414e40
add esp, 0xc
test al, al
jne 0x403872
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x8d9], 1
jmp 0x4039f7
mov edx, dword [0x4ed8cc]
mov edi, dword [sym.imp.ODBC32.dll_SQLFetch]
push edx
call edi
cmp ax, 0x64
je 0x4039db
jmp 0x403890
mov ecx, dword [ebp - 0x8d0]
mov eax, 0x38e38e39
mul ecx
shr edx, 1
inc edx
inc ecx
mov dword [ebp - 0x8d0], ecx
cmp edx, dword [esi + 0x14]
jne 0x4039c9
push str.BaseItemCode
mov ebx, 0x4ed8c0
call fcn.00415000
mov ecx, dword [ebp - 0x8cc]
imul ecx, ecx, 0xf8
push str.MainItemCode
mov dword [ebp + ecx - 0x8c4], eax
call fcn.00415000
mov edx, dword [ebp - 0x8cc]
imul edx, edx, 0xf8
push str.PackageMainIndex
mov dword [ebp + edx - 0x8c0], eax
call fcn.00415000
mov ecx, dword [ebp - 0x8cc]
imul ecx, ecx, 0xf8
push str.ProductBaseIndex
mov dword [ebp + ecx - 0x8bc], eax
call fcn.00415000
mov edx, dword [ebp - 0x8cc]
imul edx, edx, 0xf8
push str.ProductMainIndex
mov dword [ebp + edx - 0x8b8], eax
call fcn.00415000
mov ecx, dword [ebp - 0x8cc]
imul ecx, ecx, 0xf8
push str.CoinValue
mov dword [ebp + ecx - 0x8b4], eax
call fcn.00415070
mov edx, dword [ebp - 0x8cc]
imul edx, edx, 0xf8
push str.ProductType
fstp qword [ebp + edx - 0x8ac]
call fcn.00415000
mov ecx, dword [ebp - 0x8cc]
imul ecx, ecx, 0xf8
mov byte [ebp + ecx - 0x8a4], al
mov edx, dword [ebp - 0x8cc]
imul edx, edx, 0xf8
push 0xb
lea eax, [ebp + edx - 0x8a3]
push eax
push str.GiftName
call fcn.00415170
mov ecx, dword [ebp - 0x8cc]
imul ecx, ecx, 0xf8
push 0xc8
lea edx, [ebp + ecx - 0x898]
push edx
push str.GiftText
call fcn.00415170
inc dword [ebp - 0x8cc]
mov eax, dword [0x4ed8cc]
push eax
call edi
cmp ax, 0x64
jne 0x403890
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x8ec]
push eax
push ecx
mov ebx, 0x8e0
call fcn.00416c00
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop ebx
call fcn.00417d4a
mov esp, ebp
pop ebp
ret 4
Function at 0x403a20
Capabilities:
Enumerate pe sections
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 6]
mov cx, word [eax + 4]
mov word [ebp - 0x11a], cx
mov ecx, dword [eax + 0xa]
mov dword [ebp - 0x118], edx
movzx edx, word [eax + 0xe]
mov dword [ebp - 0x114], ecx
mov cl, byte [eax + 0x10]
mov word [ebp - 0x110], dx
mov edx, dword [eax + 0x18]
mov byte [ebp - 0x10e], cl
mov ecx, dword [eax + 0x14]
push ebx
mov dword [ebp - 0x108], edx
movzx edx, word [eax + 0x1c]
mov al, byte [eax + 0x1e]
push ecx
mov dword [ebp - 0x10c], ecx
push str.SELECT__FROM_CashShopInventory_WHERE_BaseItemCode_d
mov ecx, 0x4ed8c0
mov bl, 1
mov dword [ebp - 0x120], 0x181801c2
mov byte [ebp - 0x11c], 4
mov byte [ebp - 0x10d], 0
mov word [ebp - 0x104], dx
mov byte [ebp - 0x102], al
call fcn.00414e40
add esp, 8
test al, al
je 0x403b96
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x403b96
push str.BaseItemCode
mov ebx, 0x4ed8c0
call fcn.00415000
push str.MainItemCode
mov dword [ebp - 0x100], eax
call fcn.00415000
push str.PackageMainIndex
mov dword [ebp - 0xfc], eax
call fcn.00415000
push str.ProductBaseIndex
mov dword [ebp - 0xf8], eax
call fcn.00415000
push str.ProductMainIndex
mov dword [ebp - 0xf4], eax
call fcn.00415000
push str.CoinValue
mov dword [ebp - 0xf0], eax
call fcn.00415070
fstp qword [ebp - 0xe8]
push str.ProductType
call fcn.00415000
push 0xb
lea edx, [ebp - 0xdf]
push edx
push str.GiftName
mov byte [ebp - 0xe0], al
call fcn.00415170
push 0xc8
lea eax, [ebp - 0xd4]
push eax
push str.GiftText
call fcn.00415170
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x403bb7
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x10d], bl
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x120]
push edx
push eax
mov ebx, 0x118
call fcn.00416c00
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00417d4a
mov esp, ebp
pop ebp
ret 8
Function at 0x403be0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.004187e0
mov eax, dword [0x421018]
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 dword [ebp - 0x1030], ebx
mov byte [ebp - 0x101c], 0xc2
mov word [ebp - 0x1019], 0x518
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 0x403d8e
push esi
push edi
lea edi, [ebp - 0xff0]
lea esi, [ebx + 0x18]
mov edx, dword [esi]
push edx
push str.SELECT_Time_FROM_CashShopPeriodicItem_WHERE_ItemSerial_d
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x403cf2
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x403cf2
mov cl, byte [esi - 4]
mov edx, dword [esi]
push str.Time
mov ebx, 0x4ed8c0
mov byte [ebp - 0x102c], cl
mov dword [ebp - 0x1028], edx
call fcn.00415000
mov dword [ebp - 0x1024], eax
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ebx, dword [ebp - 0x1030]
mov eax, dword [ebp - 0x1028]
mov ecx, dword [ebp - 0x1024]
jmp 0x403d4c
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [esi]
push 0
push ecx
push str.INSERT_INTO_CashShopPeriodicItem__ItemSerial_Time__VALUES___d__d_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov edx, dword [0x4ed8cc]
add esp, 0xc
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov 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 0x403c72
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.00416c00
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00417d4a
mov esp, ebp
pop ebp
ret 4
Function at 0x403e00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov ax, word [ecx + 4]
mov edx, dword [ecx + 6]
mov word [ebp - 0x28], ax
lea eax, [ecx + 6]
mov dword [ebp - 0x26], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x22], edx
mov dx, word [eax + 8]
mov word [ebp - 0x1e], dx
mov dl, byte [eax + 0xa]
mov byte [ebp - 0x1c], dl
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x18], edx
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
push ebx
push eax
mov dword [ebp - 0x10], ecx
push str.SELECT__FROM_CashShopData_WHERE_AccountID_s
mov ecx, 0x4ed8c0
mov dword [ebp - 0x2c], 0x6182cc1
mov dword [ebp - 0x14], edx
call fcn.00414e40
add esp, 8
test al, al
je 0x403eb8
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x403eb8
push str.WCoinC
mov ebx, 0x4ed8c0
call fcn.00415000
push str.WCoinP
mov dword [ebp - 0xc], eax
call fcn.00415000
push str.GoblinPoint
mov dword [ebp - 8], eax
call fcn.00415000
mov dword [ebp - 4], eax
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x403ede
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push ecx
push edx
mov ebx, 0x2c
call fcn.00416c00
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403f00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x11], 0
lea eax, [esi + 0x11]
push edi
jne 0x403f21
lea eax, [esi + 6]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov cx, word [eax + 8]
mov dword [ebp - 0xc], edx
mov dl, byte [eax + 0xa]
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 8], cx
push str.SELECT_WCoinC_WCoinP_GoblinPoint_FROM_CashShopData_WHERE_AccountID_s
mov ecx, 0x4ed8c0
mov byte [ebp - 6], dl
call fcn.00414e40
add esp, 8
test al, al
je 0x404031
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x404031
push str.WCoinC
mov ebx, 0x4ed8c0
call fcn.00415000
push str.WCoinP
mov dword [ebp - 0x14], eax
call fcn.00415000
push str.GoblinPoint
mov edi, eax
call fcn.00415000
mov edx, dword [0x4ed8cc]
push edx
mov ebx, eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esi + 0x24]
add eax, ebx
cmp eax, 0x7fffffff
jbe 0x403fc5
mov eax, closesocket
mov ecx, dword [esi + 0x20]
add ecx, edi
mov edx, closesocket
cmp ecx, 0x7fffffff
ja 0x403fd9
mov edx, ecx
mov ecx, dword [esi + 0x1c]
add ecx, dword [ebp - 0x14]
cmp ecx, 0x7fffffff
jbe 0x403fec
mov ecx, closesocket
lea esi, [ebp - 0x10]
push esi
push eax
push edx
push ecx
push str.UPDATE_CashShopData_SET_WCoinC_d_WCoinP_d_GoblinPoint_d_WHERE_AccountID_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov edx, dword [0x4ed8cc]
add esp, 0x14
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d4a
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4ed8cc]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call edi
mov edx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push edx
call ebx
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
push eax
push ecx
push edx
lea eax, [ebp - 0x10]
push eax
push str.INSERT_INTO_CashShopData__AccountID_WCoinC_WCoinP_GoblinPoint__VALUES___s__d__d__d_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov ecx, dword [0x4ed8cc]
add esp, 0x14
push ecx
call edi
mov edx, dword [0x4ed8cc]
push 2
push edx
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417d4a
mov esp, ebp
pop ebp
ret
Function at 0x4040a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ecx + 0x11], 0
lea eax, [ecx + 0x11]
mov dword [ebp - 0x18], ecx
jne 0x4040bf
lea eax, [ecx + 6]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push esi
mov dword [ebp - 0x10], ecx
mov cx, word [eax + 8]
mov dword [ebp - 0xc], edx
mov dl, byte [eax + 0xa]
push edi
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 8], cx
push str.SELECT_WCoinC_WCoinP_GoblinPoint_FROM_CashShopData_WHERE_AccountID_s
mov ecx, 0x4ed8c0
mov byte [ebp - 6], dl
call fcn.00414e40
add esp, 8
test al, al
je 0x4041c5
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4041c5
push ebx
push str.WCoinC
mov ebx, 0x4ed8c0
call fcn.00415000
push str.WCoinP
mov dword [ebp - 0x14], eax
call fcn.00415000
push str.GoblinPoint
mov edi, eax
call fcn.00415000
mov edx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
mov esi, eax
call ebx
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x24]
cmp eax, esi
jbe 0x404165
xor esi, esi
jmp 0x404167
sub esi, eax
mov eax, dword [ecx + 0x20]
cmp eax, edi
jbe 0x404172
xor edi, edi
jmp 0x404174
sub edi, eax
mov ecx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jbe 0x404182
xor eax, eax
jmp 0x404184
sub eax, ecx
lea ecx, [ebp - 0x10]
push ecx
push esi
push edi
push eax
push str.UPDATE_CashShopData_SET_WCoinC_d_WCoinP_d_GoblinPoint_d_WHERE_AccountID_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov edx, dword [0x4ed8cc]
add esp, 0x14
push edx
call ebx
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d4a
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4ed8cc]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call esi
mov edx, dword [0x4ed8cc]
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push edx
call edi
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push str.INSERT_INTO_CashShopData__AccountID_WCoinC_WCoinP_GoblinPoint__VALUES___s__d__d__d_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov ecx, dword [0x4ed8cc]
add esp, 0x14
push ecx
call esi
mov edx, dword [0x4ed8cc]
push 2
push edx
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00417d4a
mov esp, ebp
pop ebp
ret
Function at 0x404370
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 0x404447
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_CashShopPeriodicItem_WHERE_ItemSerial_d
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x4043ed
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4043ed
mov edx, dword [0x4ed8cc]
push edx
call edi
mov eax, dword [0x4ed8cc]
push 2
push eax
call ebx
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push ecx
push edx
push str.UPDATE_CashShopPeriodicItem_SET_Time_d_WHERE_ItemSerial_d
jmp 0x40440c
mov edx, dword [0x4ed8cc]
push edx
call edi
mov eax, dword [0x4ed8cc]
push 2
push eax
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
push str.INSERT_INTO_CashShopPeriodicItem__ItemSerial_Time__VALUES___d__d_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 0xc
push eax
call edi
mov ecx, dword [0x4ed8cc]
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 0x4043a0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4075b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, word [edi + 4]
mov ecx, dword [edi + 6]
mov edx, dword [edi + 0xa]
push ebx
push esi
lea esi, [edi + 6]
mov word [ebp - 0x18], ax
movzx eax, word [esi + 8]
mov word [ebp - 0xe], ax
movzx eax, word [edi + 0x12]
mov dword [ebp - 0x16], ecx
mov cl, byte [esi + 0xa]
push eax
mov byte [ebp - 0xc], cl
push esi
push str.SELECT__FROM_GiftData_WHERE_Name_s_and__Index__d
mov ecx, 0x4ed8c0
mov dword [ebp - 0x1c], 0x30f16c1
mov dword [ebp - 0x12], edx
mov word [ebp - 0xa], ax
mov byte [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.00414e40
add esp, 0xc
test al, al
je 0x40764d
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40764d
push str.Count
mov ebx, 0x4ed8c0
call fcn.00415000
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
mov dword [ebp - 4], eax
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
jmp 0x407695
mov eax, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx edx, word [edi + 0x12]
push 0
push edx
push esi
push str.INSERT_INTO_GiftData__Name__Index__Count__VALUES___s__d_0_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 0x10
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [edi + 0x14]
cmp eax, 0xffffffff
je 0x4076a8
cmp dword [ebp - 4], eax
jae 0x4076db
movzx edx, word [edi + 0x12]
push edx
push esi
push str.UPDATE_GiftData_Set_CountCount1_WHERE_Name_s_and__Index__d
mov ecx, 0x4ed8c0
mov byte [ebp - 8], 1
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 0xc
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1c]
push edx
push eax
mov ebx, 0x16
call fcn.00416c00
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407a90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [0x421018]
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 - 0x1c2], cx
mov ecx, dword [eax + 0xa]
mov dword [ebp - 0x1bc], ecx
movzx ecx, byte [eax + 0x10]
mov dword [ebp - 0x1c0], edx
movzx edx, word [eax + 0xe]
add eax, 0x11
mov byte [ebp - 0x1b6], cl
mov ecx, dword [eax + 4]
mov word [ebp - 0x1b8], dx
mov edx, dword [eax]
mov dword [ebp - 0x1b1], ecx
movzx ecx, byte [eax + 0xa]
push ebx
mov dword [ebp - 0x1b5], edx
movzx edx, word [eax + 8]
push eax
mov byte [ebp - 0x1ab], cl
xor ebx, ebx
push str.SELECT__FROM_CustomPick_WHERE_Name_s
mov ecx, 0x4ed8c0
mov dword [ebp - 0x1c8], 0x13c001c2
mov byte [ebp - 0x1c4], bl
mov word [ebp - 0x1ad], dx
call fcn.00414e40
add esp, 8
test al, al
je 0x407baf
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x407baf
push 0x190
lea eax, [ebp - 0x1aa]
push eax
push str.CustomPickList
call fcn.00415200
push str.Money
mov ebx, 0x4ed8c0
call fcn.00415000
push str.Jewel
mov dword [ebp - 0x18], eax
call fcn.00415000
push str.ItemExc
mov dword [ebp - 0x14], eax
call fcn.00415000
push str.ItemSet
mov dword [ebp - 0x10], eax
call fcn.00415000
mov ecx, dword [0x4ed8cc]
push ecx
mov dword [ebp - 0xc], eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x407beb
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x190
lea edx, [ebp - 0x1aa]
push ebx
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c8]
push eax
push ecx
mov ebx, 0x1c0
call fcn.00416c00
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00417d4a
mov esp, ebp
pop ebp
ret 8