Function at 0x40c810
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfbc
mov eax, dword [0x454350]
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.00433530
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.00433530
add esp, 0xc
push 0xf18
push 8
lea ecx, [ebp - 0xf30]
push ecx
call fcn.00406330
add esp, 0xc
push 0x10
push 0x10
lea ecx, [ebp - 0x14]
call fcn.00409d80
push 0xa
mov edx, dword [ebp + 0x10]
add edx, 3
push edx
lea eax, [ebp - 0xfbc]
push eax
call fcn.00434160
add esp, 0xc
push 0xa
lea ecx, [ebp - 0xfbc]
push ecx
lea edx, [ebp - 0xf2c]
push edx
call fcn.00434160
add esp, 0xc
push 0xa
lea eax, [ebp - 0xfbc]
push eax
lea ecx, [ebp - 0x11]
push ecx
call fcn.00434160
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.00433530
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, 0x7d80
push edx
call fcn.00408880
add esp, 0xc
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
cwde
cmp eax, 0x64
je 0x40c95d
cmp dword [ebp - 0x18], 0
jne 0x40c9bf
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
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, 0x7d80
push edx
call fcn.00408880
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
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.00407670
jmp 0x40cac5
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
lea eax, [ebp - 0xfbc]
push eax
push str.SELECT_Money__DbVersion__pw_FROM_warehouse_WHERE_AccountID_s
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
push ecx
call fcn.00408880
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408ad0
push str.Money
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov dword [ebp - 0xf20], eax
push str.DbVersion
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov byte [ebp - 0x1c], al
push 0x447b7c
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408c10
mov word [ebp - 0x1a], ax
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
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, 0x7d80
call fcn.00408e20
test eax, eax
jg 0x40ca9f
push 0xf00
push 0xffffffffffffffff
lea eax, [ebp - 0xf1c]
push eax
call fcn.00433530
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x7d80
call fcn.00408a80
push 0xf18
lea ecx, [ebp - 0xf30]
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