Function at 0x4027b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x127]
push edi
push 0x11b
push 0
push eax
call fcn.0041f470
movzx eax, word [esi + 6]
lea ecx, [esi + 8]
movq xmm0, qword [ecx]
lea edx, [esi + 0x2d]
mov word [ebp - 0x122], ax
lea edi, [ebp - 0xf0]
movzx eax, word [ecx + 8]
add esp, 0xc
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]
push 0x50fc10
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 [0x446e5c]
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 [0x50fc10], 0xfffffffd
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push str.SELECT_AccountID_FROM_Character_WHERE_Name_
push 0x446e50
call fcn.0041ad00
add esp, 8
test al, al
je 0x402a95
push dword [0x446e5c]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFetch]
call ebx
cmp ax, 0x64
je 0x402a95
push str.AccountID
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x40291e
xorps xmm0, xmm0
mov word [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 0x1e], 0
jmp 0x402937
shl eax, 0xd
push 0xa
add eax, 0x447a7e
push eax
lea eax, [ebp - 0x28]
push 0xb
push eax
call fcn.0042750d
add esp, 0x10
push dword [0x446e5c]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call esi
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x446e5c]
call edi
push dword [ebp - 0x12c]
push str.SELECT__FROM_CashShopData_WHERE_AccountID_s
push 0x446e50
call fcn.0041ad00
add esp, 0xc
test al, al
je 0x402a81
push dword [0x446e5c]
call ebx
cmp ax, 0x64
je 0x402a81
push str.WCoinC
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x40299a
or eax, eax
jmp 0x4029ab
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
push str.WCoinP
mov dword [ebp - 0x12c], eax
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4029c4
or ebx, eax
jmp 0x4029d7
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov ebx, eax
push str.GoblinPoint
call fcn.0041af50
cmp eax, 0xffffffff
jne 0x4029ea
or eax, eax
jmp 0x4029fb
shl eax, 0xd
add eax, 0x447a7e
push eax
call fcn.0042415e
add esp, 4
mov ecx, dword [ebp - 0x12c]
xor edx, edx
push dword [0x446e5c]
test ecx, ecx
cmovs ecx, edx
mov dword [ebp - 0x1c], ecx
xor ecx, ecx
test ebx, ebx
cmovs ebx, ecx
test eax, eax
mov dword [ebp - 0x18], ebx
cmovs eax, ecx
mov dword [ebp - 0x14], eax
call esi
push 2
push dword [0x446e5c]
call edi
push 0x47
lea eax, [ebp - 0x28]
push eax
push str.SELECT_count___FROM_CashShopInventory_WHERE_AccountID_s_AND_InventoryType_d
push 0x446e50
call fcn.0041ad00
add esp, 0x10
test al, al
je 0x402a81
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x402a81
push 0x447a7e
call fcn.0042415e
add esp, 4
mov dword [ebp - 0x10], eax
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call edi
jmp 0x402ab6
push dword [0x446e5c]
call esi
push 2
push dword [0x446e5c]
call edi
jmp 0x402aaf
push dword [0x446e5c]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x446e5c]
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.0041c330
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc5d
mov esp, ebp
pop ebp
ret 8