Function at 0x4177f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf34
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
movzx eax, word [esi + 4]
mov ecx, dword [esi + 6]
mov edx, dword [esi + 0xa]
push edi
lea edi, [esi + 6]
mov word [ebp - 0xf1a], ax
movzx eax, word [edi + 8]
mov dword [ebp - 0xf18], ecx
mov cl, byte [edi + 0xa]
mov word [ebp - 0xf10], ax
mov eax, dword [esi + 0x14]
mov byte [ebp - 0xf0e], cl
mov dword [ebp - 0xf20], 0x51c0fc2
mov byte [ebp - 0xf1c], 0
mov dword [ebp - 0xf14], edx
mov ecx, 0x4ed8c0
test eax, eax
jne 0x417a1e
push edi
push str.SELECT_AccountID_FROM_warehouse_WHERE_AccountID_s
call fcn.00414e40
add esp, 8
test al, al
je 0x417962
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x417962
mov eax, dword [0x4ed8cc]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call esi
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call ebx
push edi
push str.SELECT_Items_Money_pw_FROM_warehouse_WHERE_AccountID_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x41792a
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41792a
push 0xf00
lea eax, [ebp - 0xf0d]
push eax
push str.Items
call fcn.00415200
push str.Money
mov ebx, 0x4ed8c0
call fcn.00415000
mov dword [ebp - 0xc], eax
push 0x41e63c
mov ebx, 0x4ed8c0
call fcn.00415000
mov esi, ebx
mov word [ebp - 8], ax
call fcn.00414fe0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xf20]
push edx
push eax
mov ebx, 0xf1c
jmp 0x417c35
mov ecx, dword [0x4ed8cc]
push ecx
call esi
mov edx, dword [0x4ed8cc]
push 2
push edx
call ebx
push 0xf00
lea eax, [ebp - 0xf0d]
push 0xff
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor ecx, ecx
mov word [ebp - 8], cx
jmp 0x417b49
mov edx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call ebx
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push str.INSERT_INTO_warehouse__AccountID_Money_EndUseDate_DbVersion__VALUES___s_0_getdate___3_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov ecx, dword [0x4ed8cc]
add esp, 8
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push 0xf00
push 0xf00
push str.UPDATE_warehouse_SET_ItemsCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_AccountID_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 0x10
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx edx, word [esi + 4]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov word [ebp - 0xf30], dx
movzx edx, word [edi + 8]
mov dword [ebp - 0xf2a], ecx
lea ecx, [ebp - 0xf34]
mov dword [ebp - 0xf2e], eax
mov al, byte [edi + 0xa]
mov word [ebp - 0xf26], dx
mov edx, dword [ebp + 8]
push ecx
mov byte [ebp - 0xf24], al
push edx
jmp 0x417c26
push eax
push edi
push str.SELECT_AccountID_FROM_ExtWarehouse_WHERE_AccountID_s_AND_Number_d
call fcn.00414e40
add esp, 0xc
test al, al
je 0x417b65
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x417b65
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esi + 0x14]
push eax
push edi
push str.SELECT_Items_Money_FROM_ExtWarehouse_WHERE_AccountID_s_AND_Number_d
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 0xc
test al, al
je 0x417b19
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x417b19
push 0xf00
lea edx, [ebp - 0xf0d]
push edx
push str.Items
call fcn.00415200
push str.Money
mov ebx, 0x4ed8c0
call fcn.00415000
mov esi, ebx
mov dword [ebp - 0xc], eax
call fcn.00414fe0
push edi
push str.SELECT_pw_FROM_warehouse_WHERE_AccountID_s
mov ecx, ebx
call fcn.00414e40
add esp, 8
test al, al
je 0x417af4
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x4178fb
mov esi, 0x4ed8c0
call fcn.00414fe0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xf20]
xor ecx, ecx
push edx
mov word [ebp - 8], cx
push eax
mov ebx, 0xf1c
jmp 0x417c35
mov edx, dword [0x4ed8cc]
push edx
call ebx
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0xf00
lea ecx, [ebp - 0xf0d]
push 0xff
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
lea edx, [ebp - 0xf20]
push edx
mov dword [ebp - 0xc], 0
push eax
mov ebx, 0xf1c
jmp 0x417c35
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esi + 0x14]
push eax
push edi
push str.INSERT_INTO_ExtWarehouse__AccountID_Money_Number__VALUES___s_0__d_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov ecx, dword [0x4ed8cc]
add esp, 0xc
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esi + 0x14]
push eax
push edi
push 0xf00
push 0xf00
push str.UPDATE_ExtWarehouse_SET_ItemsCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_AccountID_s_AND_Number_d
mov ecx, 0x4ed8c0
call fcn.00414e40
mov ecx, dword [0x4ed8cc]
add esp, 0x14
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, word [esi + 4]
mov edx, dword [edi + 4]
mov ecx, dword [edi]
mov word [ebp - 0xf30], ax
movzx eax, word [edi + 8]
mov dword [ebp - 0xf2a], edx
lea edx, [ebp - 0xf34]
mov dword [ebp - 0xf2e], ecx
mov cl, byte [edi + 0xa]
mov word [ebp - 0xf26], ax
mov eax, dword [ebp + 8]
push edx
mov byte [ebp - 0xf24], cl
push eax
mov dword [ebp - 0xf34], 0x10512c1
mov ebx, 0x12
call fcn.00416c00
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417d4a
mov esp, ebp
pop ebp
ret 4