Function at 0x40bda0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfbc
mov eax, dword [0x458330]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0xf30], 0
push 0xf17
push 0
lea eax, [ebp - 0xf2f]
push eax
call fcn.00435470
add esp, 0xc
mov byte [ebp - 0x14], 0
xor ecx, ecx
mov dword [ebp - 0x13], ecx
mov dword [ebp - 0xf], ecx
mov dword [ebp - 0xb], ecx
mov word [ebp - 7], cx
mov byte [ebp - 5], cl
mov byte [ebp - 0xfbc], 0
xor edx, edx
mov dword [ebp - 0xfbb], edx
mov dword [ebp - 0xfb7], edx
mov word [ebp - 0xfb3], dx
mov byte [ebp - 0xfb0], 0
push 0x7f
push 0
lea eax, [ebp - 0xfaf]
push eax
call fcn.00435470
add esp, 0xc
push 0xf18
push 8
lea ecx, [ebp - 0xf30]
push ecx
call fcn.00405450
add esp, 0xc
push 0x10
push 0x10
lea ecx, [ebp - 0x14]
call fcn.00408ff0
push 0xa
mov edx, dword [ebp + 0x10]
add edx, 3
push edx
lea eax, [ebp - 0xfbc]
push eax
call fcn.004360a0
add esp, 0xc
push 0xa
lea ecx, [ebp - 0xfbc]
push ecx
lea edx, [ebp - 0xf2c]
push edx
call fcn.004360a0
add esp, 0xc
push 0xa
lea eax, [ebp - 0xfbc]
push eax
lea ecx, [ebp - 0x11]
push ecx
call fcn.004360a0
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov ax, word [edx + 0xe]
mov word [ebp - 6], ax
mov ecx, dword [ebp + 0x10]
mov dx, word [ecx + 0xe]
mov word [ebp - 0xf22], dx
push 0xf00
push 0xffffffffffffffff
lea eax, [ebp - 0xf1c]
push eax
call fcn.00435470
add esp, 0xc
lea ecx, [ebp - 0xfbc]
push ecx
push str.SELECT_AccountID_FROM_warehouse_WHERE_AccountID_s
mov edx, dword [ebp + 8]
add edx, 0x7dc0
push edx
call fcn.00407950
add esp, 0xc
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
cwde
cmp eax, 0x64
je 0x40beed
cmp dword [ebp - 0x18], 0
jne 0x40bf4f
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
lea ecx, [ebp - 0xfbc]
push ecx
push str.INSERT_INTO_warehouse__AccountID__Money__EndUseDate__DbVersion__VALUES___s_0__getdate____3_
mov edx, dword [ebp + 8]
add edx, 0x7dc0
push edx
call fcn.00407950
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
movzx eax, byte [ebp - 0x13]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406820
jmp 0x40c055
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
lea eax, [ebp - 0xfbc]
push eax
push str.SELECT_Money__DbVersion__pw_FROM_warehouse_WHERE_AccountID_s
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
push ecx
call fcn.00407950
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407bb0
push str.Money
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov dword [ebp - 0xf20], eax
push str.DbVersion
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov byte [ebp - 0x1c], al
push 0x449bf0
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407cf0
mov word [ebp - 0x1a], ax
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
lea edx, [ebp - 0xfbc]
push edx
push str.SELECT_Items_FROM_warehouse_WHERE_AccountID_s
lea eax, [ebp - 0xfb0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0xf1c]
push ecx
lea edx, [ebp - 0xfb0]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407f00
test eax, eax
jg 0x40c02f
push 0xf00
push 0xffffffffffffffff
lea eax, [ebp - 0xf1c]
push eax
call fcn.00435470
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7dc0
call fcn.00407b60
push 0xf18
lea ecx, [ebp - 0xf30]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406820
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435f91
mov esp, ebp
pop ebp
ret