Function at 0x415e60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c4
mov eax, dword [0x43d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
movq xmm0, qword [esi + 6]
lea ebx, [esi + 6]
push edi
mov dword [ebp - 0x7ac], esi
movzx eax, word [esi + 4]
mov word [ebp - 0x7a2], ax
movzx eax, word [ebx + 8]
mov word [ebp - 0x798], ax
mov al, byte [ebx + 0xa]
mov byte [ebp - 0x796], al
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x7a8], 0x59c07c2
mov byte [ebp - 0x7a4], 0
movq qword [ebp - 0x7a0], xmm0
test eax, eax
jne 0x416023
push ebx
push str.SELECT_AccountID_FROM_warehouse_WHERE_AccountID_s
push 0x442698
call fcn.00413700
add esp, 0xc
test al, al
je 0x415fbe
push dword [0x4426a4]
mov esi, dword [sym.imp.ODBC32.dll_SQLFetch]
call esi
cmp ax, 0x64
je 0x415fbe
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push ebx
push str.SELECT_Items_Money_pw_FROM_warehouse_WHERE_AccountID_s
push 0x442698
call fcn.00413700
add esp, 0xc
test al, al
je 0x415f84
push dword [0x4426a4]
call esi
cmp ax, 0x64
je 0x415f84
push 0x780
lea eax, [ebp - 0x795]
push eax
push str.Items
call fcn.00413a10
push str.Money
call fcn.004139e0
mov dword [ebp - 0x14], eax
push 0x43a1a4
call fcn.004139e0
mov word [ebp - 0x10], ax
call fcn.00413970
push 0x79c
lea eax, [ebp - 0x7a8]
jmp 0x416216
push dword [0x4426a4]
call edi
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x780
lea eax, [ebp - 0x795]
push 0xff
push eax
call fcn.00417d10
add esp, 0xc
xor eax, eax
mov word [ebp - 0x10], ax
jmp 0x416138
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
push ebx
push str.INSERT_INTO_warehouse__AccountID_Money_EndUseDate_DbVersion__VALUES___s_0_getdate___3_
push 0x442698
call fcn.00413700
add esp, 0xc
push dword [0x4426a4]
call edi
push 2
push dword [0x4426a4]
call esi
push ebx
push 0x780
push 0x780
push str.UPDATE_warehouse_SET_ItemsCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_AccountID_s
push 0x442698
call fcn.00413700
add esp, 0x14
jmp 0x4161c1
push eax
push ebx
push str.SELECT_AccountID_FROM_ExtWarehouse_WHERE_AccountID_s_AND_Number_d
push 0x442698
call fcn.00413700
add esp, 0x10
test al, al
je 0x41614f
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLFetch]
call edi
cmp ax, 0x64
je 0x41614f
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push dword [esi + 0x14]
push ebx
push str.SELECT_Items_Money_FROM_ExtWarehouse_WHERE_AccountID_s_AND_Number_d
push 0x442698
call fcn.00413700
add esp, 0x10
test al, al
je 0x416105
push dword [0x4426a4]
call edi
cmp ax, 0x64
je 0x416105
push 0x780
lea eax, [ebp - 0x795]
push eax
push str.Items
call fcn.00413a10
push str.Money
call fcn.004139e0
mov dword [ebp - 0x14], eax
call fcn.00413970
push ebx
push str.SELECT_pw_FROM_warehouse_WHERE_AccountID_s
push 0x442698
call fcn.00413700
add esp, 0xc
test al, al
je 0x4160ea
push dword [0x4426a4]
call edi
cmp ax, 0x64
jne 0x415f61
call fcn.00413970
xor eax, eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x7a8]
push 0x79c
jmp 0x416216
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push 2
push dword [0x4426a4]
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x780
lea eax, [ebp - 0x795]
push 0xff
push eax
call fcn.00417d10
add esp, 0xc
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x7a8]
push 0x79c
jmp 0x416216
push dword [0x4426a4]
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call edi
mov esi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x4426a4]
call esi
mov eax, dword [ebp - 0x7ac]
push dword [eax + 0x14]
push ebx
push str.INSERT_INTO_ExtWarehouse__AccountID_Money_Number__VALUES___s_0__d_
push 0x442698
call fcn.00413700
add esp, 0x10
push dword [0x4426a4]
call edi
push 2
push dword [0x4426a4]
call esi
mov eax, dword [ebp - 0x7ac]
push dword [eax + 0x14]
push ebx
push 0x780
push 0x780
push str.UPDATE_ExtWarehouse_SET_ItemsCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_AccountID_s_AND_Number_d
push 0x442698
call fcn.00413700
add esp, 0x18
push dword [0x4426a4]
call edi
push 2
push dword [0x4426a4]
call esi
mov eax, dword [ebp - 0x7ac]
movq xmm0, qword [ebx]
push 0x12
mov dword [ebp - 0x7c0], 0x10512c1
movzx eax, word [eax + 4]
mov word [ebp - 0x7bc], ax
movzx eax, word [ebx + 8]
mov word [ebp - 0x7b2], ax
mov al, byte [ebx + 0xa]
mov byte [ebp - 0x7b0], al
lea eax, [ebp - 0x7c0]
movq qword [ebp - 0x7ba], xmm0
push eax
push dword [ebp + 0xc]
call fcn.00414e90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004163e0
mov esp, ebp
pop ebp
ret 8