Function at 0x41a510
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf34
mov eax, dword [0x424018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
movzx eax, word [edi + 4]
mov ecx, dword [edi + 6]
mov edx, dword [edi + 0xa]
lea esi, [edi + 6]
mov word [ebp - 0xf1a], ax
movzx eax, word [esi + 8]
mov dword [ebp - 0xf18], ecx
mov cl, byte [esi + 0xa]
mov word [ebp - 0xf10], ax
mov eax, dword [edi + 0x14]
mov byte [ebp - 0xf0e], cl
mov dword [ebp - 0xf20], 0x51c0fc2
mov byte [ebp - 0xf1c], 0
mov dword [ebp - 0xf14], edx
mov ecx, 0x424ee0
test eax, eax
jne 0x41a6d9
push esi
push str.SELECT_AccountID_FROM_warehouse_WHERE_AccountID_s
call fcn.00417790
add esp, 8
test al, al
je 0x41a66f
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41a66f
mov eax, dword [0x424eec]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call edi
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call ebx
push esi
push str.SELECT_Items_Money_pw_FROM_warehouse_WHERE_AccountID_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x41a638
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41a638
mov ecx, 0xf00
lea edx, [ebp - 0xf0d]
mov eax, str.Items
call fcn.00417a40
mov eax, str.Money
call fcn.004179a0
mov dword [ebp - 0xc], eax
mov eax, 0x4218e4
call fcn.004179a0
mov word [ebp - 8], ax
call fcn.00417930
lea eax, [ebp - 0xf20]
mov ebx, 0xf1c
jmp 0x41a8d2
mov eax, dword [0x424eec]
push eax
call edi
mov ecx, dword [0x424eec]
push 2
push ecx
call ebx
push 0xf00
lea edx, [ebp - 0xf0d]
push 0xff
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 8], ax
jmp 0x41a7f3
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push esi
push str.INSERT_INTO_warehouse__AccountID_Money_EndUseDate_DbVersion__VALUES___s_0_getdate___3_
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 8
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push esi
push 0xf00
push 0xf00
push str.UPDATE_warehouse_SET_ItemsCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_AccountID_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 0x10
jmp 0x41a876
push eax
push esi
push str.SELECT_AccountID_FROM_ExtWarehouse_WHERE_AccountID_s_AND_Number_d
call fcn.00417790
add esp, 0xc
test al, al
je 0x41a80a
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41a80a
mov eax, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [edi + 0x14]
push edx
push esi
push str.SELECT_Items_Money_FROM_ExtWarehouse_WHERE_AccountID_s_AND_Number_d
mov ecx, 0x424ee0
call fcn.00417790
add esp, 0xc
test al, al
je 0x41a7c3
mov eax, dword [0x424eec]
mov edi, dword [sym.imp.ODBC32.dll_SQLFetch]
push eax
call edi
cmp ax, 0x64
je 0x41a7c3
mov ecx, 0xf00
lea edx, [ebp - 0xf0d]
mov eax, str.Items
call fcn.00417a40
mov eax, str.Money
call fcn.004179a0
mov dword [ebp - 0xc], eax
call fcn.00417930
push esi
push str.SELECT_pw_FROM_warehouse_WHERE_AccountID_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x41a7a8
mov ecx, dword [0x424eec]
push ecx
call edi
cmp ax, 0x64
jne 0x41a615
call fcn.00417930
xor edx, edx
mov word [ebp - 8], dx
lea eax, [ebp - 0xf20]
mov ebx, 0xf1c
jmp 0x41a8d2
mov eax, dword [0x424eec]
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xf00
lea edx, [ebp - 0xf0d]
push 0xff
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xf20]
mov ebx, 0xf1c
jmp 0x41a8d2
mov edx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call ebx
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [edi + 0x14]
push ecx
push esi
push str.INSERT_INTO_ExtWarehouse__AccountID_Money_Number__VALUES___s_0__d_
mov ecx, 0x424ee0
call fcn.00417790
mov edx, dword [0x424eec]
add esp, 0xc
push edx
call ebx
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov ecx, dword [edi + 0x14]
push ecx
push esi
push 0xf00
push 0xf00
push str.UPDATE_ExtWarehouse_SET_ItemsCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_AccountID_s_AND_Number_d
mov ecx, 0x424ee0
call fcn.00417790
add esp, 0x14
mov edx, dword [0x424eec]
push edx
call ebx
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx ecx, word [edi + 4]
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov word [ebp - 0xf30], cx
movzx ecx, word [esi + 8]
mov dword [ebp - 0xf2e], edx
mov dl, byte [esi + 0xa]
mov dword [ebp - 0xf2a], eax
lea eax, [ebp - 0xf34]
mov word [ebp - 0xf26], cx
mov dword [ebp - 0xf34], 0x10512c1
mov byte [ebp - 0xf24], dl
mov ebx, 0x12
mov ecx, dword [ebp + 8]
push eax
push ecx
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 4