Function at 0x4171f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf44
mov eax, dword [0x422008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
movq xmm0, qword [ecx + 6]
push ebx
push esi
movzx eax, word [ecx + 4]
lea ebx, [ecx + 6]
push edi
mov word [ebp - 0xf22], ax
movzx eax, word [ebx + 8]
push ebx
mov word [ebp - 0xf18], ax
mov al, byte [ebx + 0xa]
push str.SELECT__FROM_MEMB_INFO_WHERE_memb___id_s
push 0x422408
mov dword [ebp - 0xf2c], ecx
mov dword [ebp - 0xf28], 0x5200fc2
mov byte [ebp - 0xf24], 0
movq qword [ebp - 0xf20], xmm0
mov byte [ebp - 0xf16], al
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x4172a3
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4172a3
push str.WarehouseCount
call fcn.00415100
cmp eax, 0xffffffff
jne 0x41728b
or eax, eax
jmp 0x41729d
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
movzx eax, ax
mov dword [ebp - 0xc], eax
push dword [0x422414]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
call esi
mov edi, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push dword [0x422414]
call edi
mov eax, dword [ebp - 0xf2c]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x41745c
push ebx
push str.SELECT_AccountID_FROM_warehouse_WHERE_AccountID_s
push 0x422408
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x417403
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x417403
push dword [0x422414]
call esi
push 2
push dword [0x422414]
call edi
push ebx
push str.SELECT_Items_Money_pw_FROM_warehouse_WHERE_AccountID_s
push 0x422408
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x4173cd
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4173cd
push 0xf00
lea eax, [ebp - 0xf15]
push eax
push str.Items
call fcn.00415160
push str.Money
call fcn.00415100
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
cmp eax, 0xffffffff
jne 0x417375
or eax, eax
jmp 0x417383
shl eax, 0xd
add eax, 0x423036
push eax
call ebx
add esp, 4
push 0x41ef6c
mov dword [ebp - 0x14], eax
call fcn.00415100
cmp eax, 0xffffffff
jne 0x417399
or eax, eax
jmp 0x4173a7
shl eax, 0xd
add eax, 0x423036
push eax
call ebx
add esp, 4
push dword [0x422414]
mov word [ebp - 0x10], ax
call esi
push 2
push dword [0x422414]
call edi
push 0xf20
lea eax, [ebp - 0xf28]
jmp 0x4176c3
push dword [0x422414]
call esi
push 2
push dword [0x422414]
call edi
push 0xf00
lea eax, [ebp - 0xf15]
push 0xff
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0x10], ax
jmp 0x4175f1
push dword [0x422414]
call esi
push 2
push dword [0x422414]
call edi
push ebx
push str.INSERT_INTO_warehouse__AccountID_Money_EndUseDate_DbVersion__VALUES___s_0_getdate___3_
push 0x422408
call fcn.00414eb0
add esp, 0xc
push dword [0x422414]
call esi
push 2
push dword [0x422414]
call edi
push ebx
push 0xf00
push 0xf00
push str.UPDATE_warehouse_SET_ItemsCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_AccountID_s
push 0x422408
call fcn.00414eb0
add esp, 0x14
jmp 0x41766e
push eax
push ebx
push str.SELECT_AccountID_FROM_ExtWarehouse_WHERE_AccountID_s_AND_Number_d
push 0x422408
call fcn.00414eb0
add esp, 0x10
test al, al
je 0x417608
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x417608
push dword [0x422414]
call esi
push 2
push dword [0x422414]
call edi
mov eax, dword [ebp - 0xf2c]
push dword [eax + 0x14]
push ebx
push str.SELECT_Items_Money_FROM_ExtWarehouse_WHERE_AccountID_s_AND_Number_d
push 0x422408
call fcn.00414eb0
add esp, 0x10
test al, al
je 0x4175c6
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4175c6
push 0xf00
lea eax, [ebp - 0xf15]
push eax
push str.Items
call fcn.00415160
push str.Money
call fcn.00415100
cmp eax, 0xffffffff
jne 0x417503
or eax, eax
jmp 0x417515
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push dword [0x422414]
mov dword [ebp - 0x14], eax
call esi
push 2
push dword [0x422414]
call edi
push ebx
push str.SELECT_pw_FROM_warehouse_WHERE_AccountID_s
push 0x422408
call fcn.00414eb0
add esp, 0xc
test al, al
je 0x41759e
push dword [0x422414]
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41759e
push 0x41ef6c
call fcn.00415100
cmp eax, 0xffffffff
jne 0x417566
or eax, eax
jmp 0x417578
shl eax, 0xd
add eax, 0x423036
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
add esp, 4
push dword [0x422414]
mov word [ebp - 0x10], ax
call esi
push 2
push dword [0x422414]
call edi
push 0xf20
lea eax, [ebp - 0xf28]
jmp 0x4176c3
push dword [0x422414]
call esi
push 2
push dword [0x422414]
call edi
xor eax, eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0xf28]
push 0xf20
jmp 0x4176c3
push dword [0x422414]
call esi
push 2
push dword [0x422414]
call edi
push 0xf00
lea eax, [ebp - 0xf15]
push 0xff
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0xf28]
push 0xf20
jmp 0x4176c3
push dword [0x422414]
call esi
push 2
push dword [0x422414]
call edi
mov eax, dword [ebp - 0xf2c]
push dword [eax + 0x14]
push ebx
push str.INSERT_INTO_ExtWarehouse__AccountID_Money_Number__VALUES___s_0__d_
push 0x422408
call fcn.00414eb0
add esp, 0x10
push dword [0x422414]
call esi
push 2
push dword [0x422414]
call edi
mov eax, dword [ebp - 0xf2c]
push dword [eax + 0x14]
push ebx
push 0xf00
push 0xf00
push str.UPDATE_ExtWarehouse_SET_ItemsCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_AccountID_s_AND_Number_d
push 0x422408
call fcn.00414eb0
add esp, 0x18
push dword [0x422414]
call esi
push 2
push dword [0x422414]
call edi
mov eax, dword [ebp - 0xf2c]
movq xmm0, qword [ebx]
push 0x12
mov dword [ebp - 0xf40], 0x10512c1
movzx eax, word [eax + 4]
mov word [ebp - 0xf3c], ax
movzx eax, word [ebx + 8]
mov word [ebp - 0xf32], ax
mov al, byte [ebx + 0xa]
mov byte [ebp - 0xf30], al
lea eax, [ebp - 0xf40]
movq qword [ebp - 0xf3a], xmm0
push eax
push dword [ebp + 0xc]
call fcn.004163f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417e1d
mov esp, ebp
pop ebp
ret 8