Function at 0x402b90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x424018]
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 0x4edca0
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 [0x424eec]
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 [0x4edca0], 0xfffffffd
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push str.SELECT_AccountID_FROM_Character_WHERE_Name_
mov ecx, 0x424ee0
call fcn.00417790
add esp, 4
test al, al
je 0x402e40
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x402e40
push str.AccountID
call fcn.00417950
cmp eax, 0xffffffff
jne 0x402cec
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x18], ax
mov byte [ebp - 0x16], al
jmp 0x402d06
shl eax, 0xd
push 0xa
add eax, 0x425b0e
push eax
lea ecx, [ebp - 0x20]
push 0xb
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy_s]
add esp, 0x10
mov edx, dword [0x424eec]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call edi
mov eax, dword [0x424eec]
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push eax
call esi
push ebx
push str.SELECT__FROM_CashShopData_WHERE_AccountID_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x402e2b
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x402e2b
push str.WCoinC
call fcn.00417950
mov esi, dword [sym.imp.MSVCR100.dll_atoi]
cmp eax, 0xffffffff
jne 0x402d71
or eax, 0xffffffff
jmp 0x402d7f
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.WCoinP
mov dword [ebp - 0x14], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x402d95
or eax, eax
jmp 0x402da3
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
push str.GoblinPoint
mov dword [ebp - 0x10], eax
call fcn.00417950
cmp eax, 0xffffffff
jne 0x402db9
or eax, eax
jmp 0x402dc7
shl eax, 0xd
add eax, 0x425b0e
push eax
call esi
add esp, 4
mov edx, dword [0x424eec]
push edx
mov dword [ebp - 0xc], eax
call edi
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x47
lea ecx, [ebp - 0x20]
push ecx
push str.SELECT_count___FROM_CashShopInventory_WHERE_AccountID_s_AND_InventoryType_d
mov ecx, 0x424ee0
call fcn.00417790
add esp, 0xc
test al, al
je 0x402e24
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x402e24
push 0x425b0e
call esi
add esp, 4
mov dword [ebp - 8], eax
call fcn.00417930
jmp 0x402e62
call fcn.00417930
jmp 0x402e5b
mov eax, dword [0x424eec]
push eax
call edi
mov ecx, dword [0x424eec]
push 2
push ecx
call esi
jmp 0x402e5b
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 byte [ebp - 0x10d], 1
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x120]
push ecx
push edx
mov ebx, 0x11c
call fcn.004198e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret 8