Function at 0x4027d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
movq xmm0, qword [esi + 8]
lea ecx, [esi + 8]
push edi
push 0x5d1bf4
movzx eax, word [esi + 6]
lea edx, [esi + 0x2d]
mov word [ebp - 0x122], ax
lea edi, [ebp - 0xf0]
movzx eax, word [ecx + 8]
mov word [ebp - 0x118], ax
mov al, byte [ecx + 0xa]
mov byte [ebp - 0x116], al
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x114], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x110], eax
mov eax, dword [esi + 0x1c]
push 0
mov dword [ebp - 0x10c], eax
mov eax, dword [esi + 0x20]
push edx
mov dword [ebp - 0x108], eax
movzx eax, word [esi + 0x24]
push 0
mov word [ebp - 0x104], ax
mov eax, dword [esi + 0x28]
push 0xb
mov dword [ebp - 0x100], eax
mov al, byte [esi + 0x2c]
add esi, 0x38
push 0xc
mov byte [ebp - 0xfc], al
movzx eax, word [edx + 8]
push 1
push 1
movq qword [ebp - 0x120], xmm0
movq xmm0, qword [edx]
mov word [ebp - 0xf3], ax
mov al, byte [edx + 0xa]
mov dword [ebp - 0x12c], ecx
mov ecx, 0x32
push 1
push dword [0x440e3c]
mov dword [ebp - 0x128], 0x181c01c2
mov byte [ebp - 0x124], 2
mov byte [ebp - 0x115], 0
movq qword [ebp - 0xfb], xmm0
mov byte [ebp - 0xf1], al
rep movsd dword es:[edi], dword [esi]
mov dword [0x5d1bf4], 0xfffffffd
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push str.SELECT_AccountID_FROM_Character_WHERE_Name_
push 0x440e30
call fcn.00416550
add esp, 8
test al, al
je 0x402a7b
push dword [0x440e3c]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
call ebx
cmp ax, 0x64
je 0x402a7b
push str.AccountID
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x402929
xorps xmm0, xmm0
mov word [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 0x1e], 0
jmp 0x402942
shl eax, 0xe
push 0xa
add eax, 0x441a62
push eax
lea eax, [ebp - 0x28]
push 0xb
push eax
call fcn.00422930
add esp, 0x10
push dword [0x440e3c]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call esi
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x440e3c]
call edi
push dword [ebp - 0x12c]
push str.SELECT__FROM_CashShopData_WHERE_AccountID_s
push 0x440e30
call fcn.00416550
add esp, 0xc
test al, al
je 0x402a67
push dword [0x440e3c]
call ebx
cmp ax, 0x64
je 0x402a67
push str.WCoinC
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x4029a5
or eax, eax
jmp 0x4029b6
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.WCoinP
mov dword [ebp - 0x1c], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x4029cc
or eax, eax
jmp 0x4029dd
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push str.GoblinPoint
mov dword [ebp - 0x18], eax
call fcn.004167c0
cmp eax, 0xffffffff
jne 0x4029f3
or eax, eax
jmp 0x402a04
shl eax, 0xe
add eax, 0x441a62
push eax
call fcn.00422137
add esp, 4
push dword [0x440e3c]
mov dword [ebp - 0x14], eax
call esi
push 2
push dword [0x440e3c]
call edi
push 0x47
lea eax, [ebp - 0x28]
push eax
push str.SELECT_count___FROM_CashShopInventory_WHERE_AccountID_s_AND_InventoryType_d
push 0x440e30
call fcn.00416550
add esp, 0x10
test al, al
je 0x402a67
push dword [0x440e3c]
call ebx
cmp ax, 0x64
je 0x402a67
push 0x441a62
call fcn.00422137
add esp, 4
mov dword [ebp - 0x10], eax
push dword [0x440e3c]
call esi
push 2
push dword [0x440e3c]
call edi
jmp 0x402a9c
push dword [0x440e3c]
call esi
push 2
push dword [0x440e3c]
call edi
jmp 0x402a95
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x440e3c]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov byte [ebp - 0x115], 1
push 0x11c
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 0xc]
call fcn.00418230
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004197fb
mov esp, ebp
pop ebp
ret 8