Function at 0x415680
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7b4
mov eax, dword [0x41f018]
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 - 0x79a], ax
movzx eax, word [edi + 8]
mov dword [ebp - 0x798], ecx
mov cl, byte [edi + 0xa]
mov word [ebp - 0x790], ax
mov eax, dword [esi + 0x14]
mov byte [ebp - 0x78e], cl
mov dword [ebp - 0x7a0], 0x59c07c2
mov byte [ebp - 0x79c], 0
mov dword [ebp - 0x794], edx
mov ecx, 0x4eb8c0
test eax, eax
jne 0x4158ae
push edi
push str.SELECT_AccountID_FROM_warehouse_WHERE_AccountID_s
call fcn.00412e90
add esp, 8
test al, al
je 0x4157f2
mov edx, dword [0x4eb8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4157f2
mov eax, dword [0x4eb8cc]
mov esi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call esi
mov ecx, dword [0x4eb8cc]
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, 0x4eb8c0
call fcn.00412e90
add esp, 8
test al, al
je 0x4157ba
mov edx, dword [0x4eb8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4157ba
push 0x780
lea eax, [ebp - 0x78d]
push eax
push str.Items
call fcn.00413250
push str.Money
mov ebx, 0x4eb8c0
call fcn.00413050
mov dword [ebp - 0xc], eax
push 0x41bc1c
mov ebx, 0x4eb8c0
call fcn.00413050
mov esi, ebx
mov word [ebp - 8], ax
call fcn.00413030
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x7a0]
push edx
push eax
mov ebx, 0x79c
jmp 0x415ac5
mov ecx, dword [0x4eb8cc]
push ecx
call esi
mov edx, dword [0x4eb8cc]
push 2
push edx
call ebx
push 0x780
lea eax, [ebp - 0x78d]
push 0xff
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor ecx, ecx
mov word [ebp - 8], cx
jmp 0x4159d9
mov edx, dword [0x4eb8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call ebx
mov eax, dword [0x4eb8cc]
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, 0x4eb8c0
call fcn.00412e90
mov ecx, dword [0x4eb8cc]
add esp, 8
push ecx
call ebx
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push edi
push 0x780
push 0x780
push str.UPDATE_warehouse_SET_ItemsCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_AccountID_s
mov ecx, 0x4eb8c0
call fcn.00412e90
mov eax, dword [0x4eb8cc]
add esp, 0x10
push eax
call ebx
mov ecx, dword [0x4eb8cc]
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 - 0x7b0], dx
movzx edx, word [edi + 8]
mov dword [ebp - 0x7aa], ecx
lea ecx, [ebp - 0x7b4]
mov dword [ebp - 0x7ae], eax
mov al, byte [edi + 0xa]
mov word [ebp - 0x7a6], dx
mov edx, dword [ebp + 8]
push ecx
mov byte [ebp - 0x7a4], al
push edx
jmp 0x415ab6
push eax
push edi
push str.SELECT_AccountID_FROM_ExtWarehouse_WHERE_AccountID_s_AND_Number_d
call fcn.00412e90
add esp, 0xc
test al, al
je 0x4159f5
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4159f5
mov ecx, dword [0x4eb8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4eb8cc]
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, 0x4eb8c0
call fcn.00412e90
add esp, 0xc
test al, al
je 0x4159a9
mov ecx, dword [0x4eb8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4159a9
push 0x780
lea edx, [ebp - 0x78d]
push edx
push str.Items
call fcn.00413250
push str.Money
mov ebx, 0x4eb8c0
call fcn.00413050
mov esi, ebx
mov dword [ebp - 0xc], eax
call fcn.00413030
push edi
push str.SELECT_pw_FROM_warehouse_WHERE_AccountID_s
mov ecx, ebx
call fcn.00412e90
add esp, 8
test al, al
je 0x415984
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
jne 0x41578b
mov esi, 0x4eb8c0
call fcn.00413030
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x7a0]
xor ecx, ecx
push edx
mov word [ebp - 8], cx
push eax
mov ebx, 0x79c
jmp 0x415ac5
mov edx, dword [0x4eb8cc]
push edx
call ebx
mov eax, dword [0x4eb8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x780
lea ecx, [ebp - 0x78d]
push 0xff
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x7a0]
push edx
mov dword [ebp - 0xc], 0
push eax
mov ebx, 0x79c
jmp 0x415ac5
mov ecx, dword [0x4eb8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4eb8cc]
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, 0x4eb8c0
call fcn.00412e90
mov ecx, dword [0x4eb8cc]
add esp, 0xc
push ecx
call ebx
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esi + 0x14]
push eax
push edi
push 0x780
push 0x780
push str.UPDATE_ExtWarehouse_SET_ItemsCONVERT_varbinary__d__REPLICATE_char_0xFF___d___WHERE_AccountID_s_AND_Number_d
mov ecx, 0x4eb8c0
call fcn.00412e90
mov ecx, dword [0x4eb8cc]
add esp, 0x14
push ecx
call ebx
mov edx, dword [0x4eb8cc]
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 - 0x7b0], ax
movzx eax, word [edi + 8]
mov dword [ebp - 0x7aa], edx
lea edx, [ebp - 0x7b4]
mov dword [ebp - 0x7ae], ecx
mov cl, byte [edi + 0xa]
mov word [ebp - 0x7a6], ax
mov eax, dword [ebp + 8]
push edx
mov byte [ebp - 0x7a4], cl
push eax
mov dword [ebp - 0x7b4], 0x10512c1
mov ebx, 0x12
call fcn.00414a90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415bda
mov esp, ebp
pop ebp
ret 4