Function at 0x403ab0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x424018]
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 0x403ad1
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_Ruud_FROM_CashShopData_WHERE_AccountID_s
mov ecx, 0x424ee0
mov byte [ebp - 6], dl
call fcn.00417790
add esp, 8
test al, al
je 0x403c63
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x403c63
push str.WCoinC
call fcn.00417950
mov edi, dword [sym.imp.MSVCR100.dll_atoi]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x403b3b
mov dword [ebp - 0x18], ebx
jmp 0x403b4c
shl eax, 0xd
add eax, 0x425b0e
push eax
call edi
add esp, 4
mov dword [ebp - 0x18], eax
push str.WCoinP
call fcn.00417950
cmp eax, ebx
jne 0x403b5f
mov dword [ebp - 0x14], ebx
jmp 0x403b70
shl eax, 0xd
add eax, 0x425b0e
push eax
call edi
add esp, 4
mov dword [ebp - 0x14], eax
push str.GoblinPoint
call fcn.00417950
cmp eax, ebx
jne 0x403b83
mov dword [ebp - 0x1c], ebx
jmp 0x403b94
shl eax, 0xd
add eax, 0x425b0e
push eax
call edi
add esp, 4
mov dword [ebp - 0x1c], eax
push str.Ruud
call fcn.00417950
cmp eax, ebx
jne 0x403ba6
mov edi, ebx
jmp 0x403bb6
shl eax, 0xd
add eax, 0x425b0e
push eax
call edi
add esp, 4
mov edi, eax
mov edx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call ebx
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esi + 0x28]
add eax, edi
cmp eax, 0x7fffffff
jbe 0x403be4
mov eax, bind
mov ecx, dword [ebp - 0x1c]
add ecx, dword [esi + 0x24]
mov edi, bind
cmp ecx, 0x7fffffff
ja 0x403bf9
mov edi, ecx
mov ecx, dword [ebp - 0x14]
add ecx, dword [esi + 0x20]
mov edx, bind
cmp ecx, 0x7fffffff
ja 0x403c0e
mov edx, ecx
mov ecx, dword [esi + 0x1c]
add ecx, dword [ebp - 0x18]
cmp ecx, 0x7fffffff
jbe 0x403c21
mov ecx, bind
lea esi, [ebp - 0x10]
push esi
push eax
push edi
push edx
push ecx
push str.UPDATE_CashShopData_SET_WCoinC_d_WCoinP_d_GoblinPoint_d_Ruud_d_WHERE_AccountID_s
mov ecx, 0x424ee0
call fcn.00417790
mov edx, dword [0x424eec]
add esp, 0x18
push edx
call ebx
mov eax, dword [0x424eec]
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.0041ae5c
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x424eec]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call edi
mov edx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push edx
call ebx
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push eax
mov eax, dword [esi + 0x1c]
push ecx
push edx
push eax
lea ecx, [ebp - 0x10]
push ecx
push str.INSERT_INTO_CashShopData__AccountID_WCoinC_WCoinP_GoblinPoint_Ruud__VALUES___s__d__d__d__d_
mov ecx, 0x424ee0
call fcn.00417790
mov edx, dword [0x424eec]
add esp, 0x18
push edx
call edi
mov eax, dword [0x424eec]
push 2
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret