Function at 0x403cd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebx + 0x11], 0
lea eax, [ebx + 0x11]
jne 0x403cec
lea eax, [ebx + 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__Ruud_FROM_CashShopData_WHERE_AccountID_s
mov ecx, 0x424ee0
mov byte [ebp - 6], dl
call fcn.00417790
add esp, 8
test al, al
je 0x403eae
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x403eae
push str.WCoinC
call fcn.00417950
mov esi, dword [sym.imp.MSVCR100.dll_atoi]
or edi, 0xffffffff
cmp eax, edi
jne 0x403d58
mov dword [ebp - 0x14], edi
jmp 0x403d69
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
mov dword [ebp - 0x14], eax
push str.WCoinP
call fcn.00417950
cmp eax, edi
jne 0x403d7c
mov dword [ebp - 0x18], edi
jmp 0x403d8d
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
mov dword [ebp - 0x18], eax
push str.GoblinPoint
call fcn.00417950
cmp eax, edi
je 0x403dab
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
mov edi, eax
push str.Ruud
call fcn.00417950
cmp eax, 0xffffffff
jne 0x403dbe
or esi, eax
jmp 0x403dce
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
mov esi, eax
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [ebx + 0x28]
cmp eax, esi
jbe 0x403df4
xor esi, esi
jmp 0x403df6
sub esi, eax
mov eax, dword [ebx + 0x24]
cmp eax, edi
jbe 0x403e01
xor edi, edi
jmp 0x403e03
sub edi, eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jbe 0x403e11
xor ecx, ecx
jmp 0x403e13
sub ecx, eax
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebp - 0x14]
cmp edx, eax
jbe 0x403e21
xor eax, eax
jmp 0x403e23
sub eax, edx
lea edx, [ebp - 0x10]
push edx
push esi
push edi
push ecx
push eax
push str.UPDATE_CashShopData_SET_WCoinC_d__WCoinP_d__GoblinPoint_d__Ruud_d_WHERE_AccountID_s
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
add esp, 0x18
push eax
call edi
mov ecx, dword [0x424eec]
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call esi
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x403efe
cmp eax, dword [ebp - 0x14]
jbe 0x403e70
xor eax, eax
jmp 0x403e72
neg eax
push 4
push eax
lea edx, [ebp - 0x10]
push edx
push str.INSERT_INTO_LOG_CREDITOS__login_valor_tipo__VALUES___s__d__d_
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 0x10
push eax
call edi
mov ecx, dword [0x424eec]
push 2
push ecx
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret
mov edx, dword [0x424eec]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call esi
mov eax, dword [0x424eec]
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push eax
call edi
push 0
push 0
push 0
push 0
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 esi
mov eax, dword [0x424eec]
push 2
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret