Function at 0x430890
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1770
call fcn.004357f0
mov eax, dword [0x454350]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x175c], 0
xor eax, eax
mov dword [ebp - 0x175b], eax
mov dword [ebp - 0x1757], eax
mov word [ebp - 0x1753], ax
push 0xa
mov ecx, dword [ebp + 0x10]
add ecx, 3
push ecx
lea edx, [ebp - 0x175c]
push edx
call fcn.00434160
add esp, 0xc
push 0x780
push 0xffffffffffffffff
lea eax, [ebp - 0x16bc]
push eax
call fcn.00433530
add esp, 0xc
push 0xf00
push 0xffffffffffffffff
lea ecx, [ebp - 0xf14]
push ecx
call fcn.00433530
add esp, 0xc
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx + 0x14]
test eax, eax
jne 0x43095f
push 0x79c
push 0xfb
lea ecx, [ebp - 0x16d0]
push ecx
call fcn.00406330
add esp, 0xc
push 0xa
lea edx, [ebp - 0x175c]
push edx
lea eax, [ebp - 0x16cc]
push eax
call fcn.00434160
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov dx, word [ecx + 0xe]
mov word [ebp - 0x16c2], dx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xf38], ecx
jmp 0x4309a7
push 0xf1c
push 0xbe
lea edx, [ebp - 0xf28]
push edx
call fcn.00406330
add esp, 0xc
push 0xa
lea eax, [ebp - 0x175c]
push eax
lea ecx, [ebp - 0xf24]
push ecx
call fcn.00434160
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ax, word [edx + 0xe]
mov word [ebp - 0xf1a], ax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x10], 0
jne 0x4309df
lea ecx, [ebp - 0x175c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xeff0
push edx
push str.SELECT_AccountID_FROM__s.dbo.warehouse_WHERE_AccountID_s
mov eax, dword [ebp + 8]
add eax, 0x7d80
push eax
call fcn.00408880
add esp, 0x10
mov dword [ebp - 0xf2c], eax
jmp 0x430a14
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x10]
push edx
lea eax, [ebp - 0x175c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xeff0
push ecx
push str.SELECT_AccountID_FROM__s.dbo.ExtendedWarehouse_WHERE_AccountID_s_AND_SCFExtWare_d
mov edx, dword [ebp + 8]
add edx, 0x7d80
push edx
call fcn.00408880
add esp, 0x14
mov dword [ebp - 0xf2c], eax
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
cwde
cmp eax, 0x64
je 0x430a35
cmp dword [ebp - 0xf2c], 0
jne 0x430b27
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x10], 0
jne 0x430a75
lea edx, [ebp - 0x175c]
push edx
mov eax, dword [ebp + 8]
add eax, 0xeff0
push eax
push str.INSERT_INTO__s.dbo.warehouse__AccountID__Money__EndUseDate__DbVersion__VALUES___s_0__getdate____3_
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0x10
jmp 0x430aa3
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp - 0x175c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xeff0
push edx
push str.INSERT_INTO__s.dbo.ExtendedWarehouse__AccountID__Money__EndUseDate__DbVersion__SCFExtWare__VALUES___s_0__getdate____3___d_
mov eax, dword [ebp + 8]
add eax, 0x7d80
push eax
call fcn.00408880
add esp, 0x14
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
push 0x14
push 0xae
lea ecx, [ebp - 0x1770]
push ecx
call fcn.004062e0
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ax, word [edx + 0xe]
mov word [ebp - 0x1762], ax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x1760], edx
push 0xa
lea eax, [ebp - 0x175c]
push eax
lea ecx, [ebp - 0x176d]
push ecx
call fcn.00434160
add esp, 0xc
movzx edx, byte [ebp - 0x176f]
push edx
lea eax, [ebp - 0x1770]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407670
jmp 0x430d72
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x10], 0
jne 0x430b68
lea eax, [ebp - 0x175c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xeff0
push ecx
push str.SELECT_Money__DbVersion__pw_FROM__s.dbo.warehouse_WHERE_AccountID_s
mov edx, dword [ebp + 8]
add edx, 0x7d80
push edx
call fcn.00408880
add esp, 0x10
jmp 0x430b96
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
push ecx
lea edx, [ebp - 0x175c]
push edx
mov eax, dword [ebp + 8]
add eax, 0xeff0
push eax
push str.SELECT_Money__DbVersion__pw_FROM__s.dbo.ExtendedWarehouse_WHERE_AccountID_s_AND_SCFExtWare_d
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0x14
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx + 0x14]
test eax, eax
jne 0x430bfd
push str.Money
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 0x16c0], eax
push str.DbVersion
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0xf3c], al
push 0x447b7c
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov word [ebp - 0xf3a], ax
jmp 0x430c43
push str.Money
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 0xf18], eax
push str.DbVersion
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x14], al
push 0x447b7c
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov word [ebp - 0x12], ax
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x10], 0
jne 0x430c81
lea edx, [ebp - 0x175c]
push edx
mov eax, dword [ebp + 8]
add eax, 0xeff0
push eax
push str.SELECT_Items_FROM__s.dbo.warehouse_WHERE_AccountID_s
lea ecx, [ebp - 0x1750]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x430cae
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp - 0x175c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xeff0
push edx
push str.SELECT_Items_FROM__s.dbo.ExtendedWarehouse_WHERE_AccountID_s_AND_SCFExtWare_d
lea eax, [ebp - 0x1750]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov ecx, dword [ebp + 0x10]
movzx edx, byte [ecx + 0x14]
test edx, edx
jne 0x430cf1
lea eax, [ebp - 0x16bc]
push eax
lea ecx, [ebp - 0x1750]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408e20
test eax, eax
jge 0x430cef
push 0x780
push 0xffffffffffffffff
lea edx, [ebp - 0x16bc]
push edx
call fcn.00433530
add esp, 0xc
jmp 0x430d27
lea eax, [ebp - 0xf14]
push eax
lea ecx, [ebp - 0x1750]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408e20
test eax, eax
jge 0x430d27
push 0xf00
push 0xffffffffffffffff
lea edx, [ebp - 0xf14]
push edx
call fcn.00433530
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 0x14]
test ecx, ecx
jne 0x430d5a
push 0x79c
lea edx, [ebp - 0x16d0]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00407670
jmp 0x430d72
push 0xf1c
lea ecx, [ebp - 0xf28]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00407670
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434051
mov esp, ebp
pop ebp
ret