Function at 0x403510
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
movzx ecx, word [eax + 6]
lea ebx, [eax + 8]
mov dword [ebp - 0x118], edx
movzx edx, word [ebx + 8]
mov word [ebp - 0x11a], cx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x114], ecx
movzx ecx, byte [ebx + 0xa]
mov word [ebp - 0x110], dx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x10c], edx
mov edx, dword [eax + 0x1c]
mov byte [ebp - 0x10e], cl
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x104], edx
movzx edx, word [eax + 0x24]
mov dword [ebp - 0x108], ecx
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x100], ecx
mov ecx, dword [eax + 0x28]
mov word [ebp - 0xfc], dx
mov dl, byte [eax + 0x2c]
push 0x5b6680
mov dword [ebp - 0xf8], ecx
mov ecx, dword [eax + 0x2d]
mov byte [ebp - 0xf4], dl
lea edx, [eax + 0x2d]
push 0
push edx
mov dword [ebp - 0xf3], ecx
mov ecx, dword [edx + 4]
push 0
mov dword [ebp - 0xef], ecx
movzx ecx, word [edx + 8]
push 0xb
push 0xc
mov word [ebp - 0xeb], cx
movzx ecx, byte [edx + 0xa]
mov edx, dword [0x4ed8cc]
push 1
push 1
mov byte [ebp - 0xe9], cl
lea esi, [eax + 0x38]
push 1
mov dword [ebp - 0x120], 0x181c01c2
mov byte [ebp - 0x11c], 2
mov byte [ebp - 0x10d], 0
mov ecx, 0x32
lea edi, [ebp - 0xe8]
rep movsd dword es:[edi], dword [esi]
push edx
mov dword [0x5b6680], 0xfffffffd
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push str.SELECT_AccountID_FROM_Character_WHERE_Name_
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 4
test al, al
je 0x40375c
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x40375c
push 0xb
lea ecx, [ebp - 0x20]
push ecx
push str.AccountID
call fcn.00415170
mov edx, dword [0x4ed8cc]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call esi
mov eax, dword [0x4ed8cc]
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push eax
call edi
push ebx
push str.SELECT__FROM_CashShopData_WHERE_AccountID_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x403747
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x403747
push str.WCoinC
mov ebx, 0x4ed8c0
call fcn.00415000
push str.WCoinP
mov dword [ebp - 0x14], eax
call fcn.00415000
push str.GoblinPoint
mov dword [ebp - 0x10], eax
call fcn.00415000
mov edx, dword [0x4ed8cc]
push edx
mov dword [ebp - 0xc], eax
call esi
mov eax, dword [0x4ed8cc]
push 2
push eax
call edi
push 0x47
lea ecx, [ebp - 0x20]
push ecx
push str.SELECT_count___FROM_CashShopInventory_WHERE_AccountID_s_AND_InventoryType_d
mov ecx, ebx
call fcn.00414e40
add esp, 0xc
test al, al
je 0x403732
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x403732
push 0x4ee4ee
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov esi, ebx
mov dword [ebp - 8], eax
call fcn.00414fe0
jmp 0x40377f
mov eax, dword [0x4ed8cc]
push eax
call esi
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call edi
jmp 0x403778
mov edx, dword [0x4ed8cc]
push edx
call esi
mov eax, dword [0x4ed8cc]
push 2
push eax
call edi
jmp 0x403778
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 byte [ebp - 0x10d], 1
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x120]
push eax
push ecx
mov ebx, 0x11c
call fcn.00416c00
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417d4a
mov esp, ebp
pop ebp
ret 8