Function at 0x486270
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ff40
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x54f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x48], esi
push 0x8160
mov dword [ebp - 4], 0
call fcn.00443e65
add esp, 4
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 1
mov ecx, dword [esi + 8]
add ecx, 4
push ecx
mov ecx, eax
call fcn.0042fd20
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 0
test eax, eax
jne 0x4862e1
mov byte [ebp - 0x4d], al
jmp 0x487317
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x74]
mov edi, dword [ebp + 0xc]
push ecx
push eax
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 0x74], 0
call fcn.004065a0
push esi
push edi
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 2
call fcn.0040a800
mov edi, dword [ebp - 0x48]
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x24]
test eax, eax
je 0x486321
mov eax, dword [eax]
jmp 0x486324
mov eax, dword [edi + 0x20]
push eax
push str._d_Start_sum
push 0x39b
push str.Case::SumVolumes
push 0
push 0
push 2
push 6
lea esi, [edi + 0x20]
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
mov eax, dword [edi + 0x24]
add esp, 0x20
mov ecx, dword [ebp - 0xa8]
test eax, eax
cmovne esi, eax
mov eax, dword [edi + 0xc]
push dword [esi]
push dword [eax + 4]
call fcn.0042fdb0
mov ecx, dword [edi + 0x340]
lea esi, [edi + 0x340]
mov dword [ebp - 0x80], esi
mov eax, dword [ecx]
mov dword [ebp - 0x60], eax
cmp eax, ecx
je 0x4863cd
nop dword [eax + eax]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x70]
test eax, eax
je 0x4863be
mov ecx, dword [eax + 0x28]
cmp ecx, dword [eax + 0x2c]
je 0x486395
mov dword [eax + 0x2c], ecx
xor ecx, ecx
mov dword [eax], 0x707
mov dword [eax + 4], 0x1f000c
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0x707
mov dword [eax + 0x14], 0x1f000c
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
lea ecx, [ebp - 0x60]
call fcn.00401c60
mov eax, dword [ebp - 0x60]
cmp eax, dword [esi]
jne 0x486380
cmp dword [edi + 0x414], 6
jne 0x4863df
mov byte [ebp - 0x4d], 1
jmp 0x48730c
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x48736a
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 4
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x4c]
push str.Eco.TempInterest__08lx_04x_04x_02x_02x_02x_02x_02x_02x_02x_02x
push eax
call fcn.0040a480
add esp, 0x34
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x487374
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 5
cmp byte [edi + 0x429], 0
mov edi, dword [ebp - 0x4c]
je 0x4864f1
cmp dword [edi - 4], 1
jle 0x48648f
push dword [edi - 0xc]
lea ecx, [ebp - 0x4c]
call fcn.00403a50
mov edi, dword [ebp - 0x4c]
push edi
lea eax, [ebp - 0x54]
push str.create_table__s__CaseId_int__IntDate_date__IntValue_float_
push eax
call fcn.0040a480
add esp, 8
mov dword [ebp - 0x74], esp
mov esi, dword [ebp - 0x54]
lea eax, [esi - 0x10]
push eax
call fcn.00403870
mov ecx, dword [ebp - 0x74]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 8]
add ecx, 4
call fcn.004307e0
test al, al
jne 0x4864f1
push esi
push str.Database::Execute_failed_on__s
push 0x3b2
push str.Case::SumVolumes
push 0x525dcc
push 0
push 5
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
add esp, 0x20
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
xor esi, esi
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xb4], esi
mov eax, dword [ebp - 0x48]
add eax, 0x434
mov byte [ebp - 4], 7
mov dword [ebp - 0x84], eax
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [ebp - 0x60], eax
cmp eax, ecx
je 0x48658d
mov edi, esi
add eax, 0x10
cmp esi, edi
je 0x48655c
mov eax, dword [eax]
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0xb8], esi
jmp 0x486575
push eax
push esi
lea ecx, [ebp - 0xbc]
call fcn.00403f00
mov esi, dword [ebp - 0xb8]
mov edi, dword [ebp - 0xb4]
lea ecx, [ebp - 0x60]
call fcn.00401c60
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x60]
cmp eax, dword [ecx]
jne 0x486546
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
lea eax, [ebp - 0x98]
push 0
push eax
lea eax, [ebp - 0xbc]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
add ecx, 4
mov edx, dword [edx + 4]
call fcn.00485960
mov eax, dword [ebp - 0x94]
xor ecx, ecx
sub eax, dword [ebp - 0x98]
add esp, 0xc
sar eax, 2
mov dword [ebp - 0x74], ecx
test eax, eax
je 0x487017
mov eax, dword [ebp - 0x98]
lea esi, [eax + ecx*4]
mov ecx, dword [ebp - 0x84]
push esi
lea eax, [ebp - 0x178]
push eax
call fcn.00402560
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x44], ecx
cmp byte [ecx + 0xd], 0
jne 0x486ff6
mov eax, dword [esi]
cmp eax, dword [ecx + 0x10]
jl 0x486ff6
mov eax, dword [ebp - 0x84]
cmp ecx, dword [eax]
je 0x486ff6
xor eax, eax
mov dword [ebp - 0xe4], 0x707
mov dword [ebp - 0xe0], 0x1f000c
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], eax
movzx eax, byte [ecx + 0x10]
lea esi, [ecx + 0x10]
xor eax, 0x811c9dc5
mov dword [ebp - 0xa4], esi
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor ecx, eax
movzx eax, byte [esi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [ebp - 0x1a4]
push eax
push esi
lea eax, [ebp - 0x1ac]
push eax
call fcn.00407b20
mov ecx, dword [ebp - 0x1a0]
mov eax, dword [eax + 4]
test eax, eax
cmovne ecx, eax
cmp ecx, dword [ebp - 0x1a0]
jne 0x486ff2
mov eax, dword [esi + 8]
test eax, eax
je 0x4866af
lock inc dword [eax + 4]
mov ecx, dword [ebp - 0xa4]
mov esi, dword [esi + 4]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0xc8], esi
mov eax, dword [ecx + 8]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 9
test esi, esi
jne 0x4867dd
cmp byte [ebp + 0x18], 0
je 0x4867dd
mov eax, dword [ebp - 0x48]
push esi
push ecx
push esi
push dword [ecx]
lea ecx, [ebp - 0x128]
push dword [eax + 0xc]
push ecx
mov ecx, dword [eax + 8]
call fcn.00495340
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov dword [ebp - 0x5c], ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, esi
mov dword [ebp - 0xc8], ecx
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0xc4], eax
test ecx, ecx
je 0x48674d
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x48674d
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x70]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x48674d
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x70], ecx
test ecx, ecx
je 0x48677a
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x48677a
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x70]
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x48677a
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x5c], 0
jne 0x4867b3
test esi, esi
je 0x486ff2
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x486ff2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x486ff2
mov eax, dword [esi]
mov ecx, esi
jmp 0x486fef
mov esi, dword [ebp - 0x5c]
lea eax, [ebp - 0x7c]
push 0
push eax
lea eax, [ebp - 0xe4]
mov ecx, esi
push eax
call fcn.00482a10
cmp dword [ebp - 0x7c], 0xffffffff
jne 0x4867dd
push 0
push 0
push 0
mov ecx, esi
call fcn.0047fe80
push dword [ebp + 0x20]
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.00482a10
cmp byte [ebp + 8], 0
je 0x486802
cmp dword [ebp - 0x7c], 1
jne 0x486fca
mov ecx, dword [esi + 0x24]
movups xmm0, xmmword [ecx + 8]
movups xmmword [ebp - 0x1f4], xmm0
sub esp, 0x10
mov byte [ebp - 4], 0xa
movups xmm0, xmmword [ecx + 8]
mov eax, esp
mov ecx, esi
movups xmmword [eax], xmm0
lea eax, [ebp - 0x1e4]
push eax
call fcn.00479ad0
mov eax, dword [ebp - 0x80]
mov eax, dword [eax]
mov esi, dword [eax]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x70], esi
cmp esi, eax
je 0x486ee9
mov eax, dword [esi + 0x10]
test eax, eax
je 0x486ed0
cmp eax, 0x2714
je 0x486ed0
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x4868ab
cmp dword [ecx + 8], 2
je 0x486ed0
cmp dword [ecx + 8], 3
mov eax, dword [ebp - 0x44]
mov edx, eax
mov dword [ebp - 0x44], eax
je 0x486ed0
cmp dword [ecx + 8], 4
mov dword [ebp - 0x44], edx
je 0x486ed0
cmp dword [ecx + 8], 5
mov dword [ebp - 0x44], edx
je 0x486ed0
cmp dword [ecx + 8], 6
mov dword [ebp - 0x44], edx
je 0x486ed0
mov dword [ebp - 0x44], edx
jmp 0x4868b1
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
push dword [esi + 0x10]
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00482970
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x486ea5
push 0
lea ecx, [ebp - 0xf4]
push ecx
mov ecx, eax
call fcn.004cf6b0
push 0
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0xa0]
push eax
call fcn.004cf8b0
lea eax, [ebp - 0x120]
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0xa0]
push eax
call fcn.004d0320
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0x68], ecx
cmp ecx, 0x708
jb 0x486ea5
xor eax, eax
mov dword [ebp - 0xee], 1
mov word [ebp - 0xea], ax
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 0x414]
sub eax, 1
je 0x486994
sub eax, 1
je 0x48695d
sub eax, 1
jne 0x4869c9
movups xmm0, xmmword [ebp - 0x120]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x110]
movups xmmword [eax], xmm0
call dword [0x51c274]
mov ecx, dword [ebp - 0x68]
add esp, 0x20
test al, al
je 0x4869c9
movups xmm0, xmmword [ebp - 0x120]
jmp 0x4869c2
cmp dword [ebp - 0x7c], 1
jne 0x4869a3
movups xmm0, xmmword [ebp - 0xe4]
jmp 0x4869c2
cmp dword [ebp - 0x120], 0x708
jb 0x4869b8
movups xmm0, xmmword [ebp - 0x120]
jmp 0x4869c2
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x24]
movups xmm0, xmmword [eax + 8]
movups xmmword [ebp - 0x110], xmm0
mov eax, dword [ebp - 0x110]
cmp eax, 0x708
jb 0x486e9e
movzx edx, word [ebp - 0xf0]
sub eax, ecx
movups xmm0, xmmword [ebp - 0xf4]
lea ecx, [eax + eax*2]
movzx eax, word [ebp - 0x10c]
movups xmmword [ebp - 0x30], xmm0
lea eax, [eax + ecx*4]
sub eax, edx
mov dword [ebp - 0xc0], eax
movups xmmword [ebp - 0x40], xmm0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x11
call dword [sym.imp.PHDPFuncs.dll_public:_void___thiscall_Date::AddMonths_int_]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
mov eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x68]
movups xmm0, xmmword [eax + 8]
movd eax, xmm0
sub ecx, eax
pextrw eax, xmm0, 2
lea ecx, [ecx + ecx*2]
shl ecx, 2
movzx eax, ax
sub ecx, eax
movzx eax, word [ebp - 0xf0]
add ecx, eax
cmp dword [ebp - 0xc0], 0
mov dword [ebp - 0x100], ecx
jle 0x486e9e
nop dword [eax]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x184]
push eax
call fcn.00402560
mov eax, dword [ebp - 0x17c]
cmp byte [eax + 0xd], 0
jne 0x486ab3
mov ecx, dword [esi + 0x10]
cmp ecx, dword [eax + 0x10]
jl 0x486ab3
mov ecx, dword [ebp - 0x80]
cmp eax, dword [ecx]
je 0x486ab9
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0x70]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x44], eax
test ecx, ecx
jne 0x486b3f
jmp 0x486ab9
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x44], eax
push 0x38
call fcn.00443e65
mov edx, eax
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x68], edx
add esp, 4
mov dword [ebp - 0x88], edx
mov dword [edx], 0x707
mov dword [edx + 4], 0x1f000c
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], 0x707
mov dword [edx + 0x14], 0x1f000c
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
movsd qword [edx + 0x20], xmm0
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xac], eax
mov eax, dword [eax + 0x70]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x486b33
lea ecx, [eax + 0x28]
call fcn.00403530
push 0x38
push dword [ebp - 0x6c]
call fcn.00443e34
mov edx, dword [ebp - 0x68]
add esp, 8
mov eax, dword [ebp - 0xac]
mov dword [eax + 0x70], edx
mov eax, dword [ebp - 0x44]
mov ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xd0], ecx
cmp dword [eax + 0x410], 1
jne 0x486d7c
mov eax, dword [ebp - 0x60]
xor edx, edx
add eax, dword [ebp - 0x100]
mov dword [ebp - 0x44], ecx
cmovns edx, eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x5c]
sub esp, 0x10
mov ecx, dword [eax + 0x24]
mov eax, esp
mov byte [ebp - 4], 0x12
push edx
movups xmm0, xmmword [ecx + 8]
movups xmmword [eax], xmm0
lea eax, [ebp - 0x160]
push eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x370]
call fcn.004b7050
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x6c], 0
je 0x486c2f
cmp dword [ebp - 0x130], 0
je 0x486c2f
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x134]
call fcn.00402560
mov ecx, dword [ebp - 0x164]
mov edx, dword [ebp - 0x134]
cmp byte [ecx + 0xd], 0
jne 0x486bec
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ecx + 0x10]
jge 0x486bf4
mov eax, dword [ebp - 0x44]
mov ecx, edx
mov dword [ebp - 0x44], eax
cmp ecx, edx
jne 0x486c15
movsd xmm0, qword [ebp - 0x158]
lea ecx, [ebp - 0x160]
movsd qword [ebp - 0xb0], xmm0
call fcn.00401660
jmp 0x486c6f
movsd xmm0, qword [ecx + 0x20]
lea ecx, [ebp - 0x160]
movsd qword [ebp - 0xb0], xmm0
call fcn.00401660
jmp 0x486c6f
mov eax, dword [ebp - 0x134]
movsd xmm0, qword [ebp - 0x158]
movsd qword [ebp - 0xb0], xmm0
push dword [eax + 4]
lea eax, [ebp - 0x134]
push eax
mov ecx, eax
call fcn.004020c0
push 0x38
push dword [ebp - 0x134]
call fcn.00443e34
mov eax, dword [ebp - 0xd0]
add esp, 8
mov dword [ebp - 0x44], eax
push dword [esi + 0x10]
mov ecx, dword [ebp - 0x5c]
push dword [ebp - 0x88]
push 7
call fcn.00479940
addsd xmm0, qword [ebp - 0xb0]
movups xmm1, xmmword [ebp - 0x40]
mov ecx, dword [ebp - 0xa0]
push 0
sub esp, 0x10
mov eax, esp
movsd qword [ebp - 0xd4], xmm0
movups xmm0, xmmword [ebp - 0x30]
sub esp, 0x10
movups xmmword [eax], xmm1
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004cc270
mov eax, dword [ebp - 0x48]
movsd qword [ebp - 0x8c], xmm0
movsd xmm1, qword [ebp - 0x8c]
movsd xmm0, qword [ebp - 0xd4]
cmp byte [eax + 0x429], 0
mulsd xmm1, xmm0
movsd qword [ebp - 0x8c], xmm1
je 0x486e59
cmp dword [edi - 4], 1
jle 0x486d07
push dword [edi - 0xc]
lea ecx, [ebp - 0x4c]
call fcn.00403a50
mov edi, dword [ebp - 0x4c]
movsd xmm0, qword [ebp - 0xd4]
movzx eax, word [ebp - 0x2a]
sub esp, 8
movsd qword [esp], xmm0
push dword [ebp - 0x30]
push eax
movzx eax, word [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xa4]
push dword [eax]
lea eax, [ebp - 0x54]
push edi
push str.insert_into__s__CaseId__IntDate__IntValue__values___d___d__d__d___.8lf_
push eax
call fcn.0040a480
mov esi, dword [ebp - 0x54]
add esp, 0x20
mov dword [ebp - 0xcc], esp
lea eax, [esi - 0x10]
push eax
call fcn.00403870
mov ecx, dword [ebp - 0xcc]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 8]
add ecx, 4
call fcn.004307e0
test al, al
jne 0x486e56
push esi
push str.Database::Execute_failed_on__s
push 0x427
jmp 0x486e3d
mov al, byte [eax + 0x40c]
cmp al, 4
je 0x486d8e
cmp al, 0x19
je 0x486d8e
push 0
jmp 0x486d90
push 3
movups xmm0, xmmword [ebp - 0x40]
mov ecx, dword [ebp - 0xa0]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [eax], xmm0
call fcn.004cc270
mov eax, dword [ebp - 0x48]
movsd qword [ebp - 0x8c], xmm0
cmp byte [eax + 0x429], 0
je 0x486e59
cmp dword [edi - 4], 1
jle 0x486ddf
push dword [edi - 0xc]
lea ecx, [ebp - 0x4c]
call fcn.00403a50
mov edi, dword [ebp - 0x4c]
push dword [ebp - 0x30]
movzx eax, word [ebp - 0x2a]
push eax
movzx eax, word [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xa4]
push dword [eax]
lea eax, [ebp - 0x54]
push edi
push str.insert_into__s__CaseId__IntDate__IntValue__values___d___d__d__d__1_
push eax
call fcn.0040a480
add esp, 0x18
mov dword [ebp - 0x58], esp
mov esi, dword [ebp - 0x54]
lea eax, [esi - 0x10]
push eax
call fcn.00403870
mov ecx, dword [ebp - 0x58]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 8]
add ecx, 4
call fcn.004307e0
test al, al
jne 0x486e56
push esi
push str.Database::Execute_failed_on__s
push 0x43a
push str.Case::SumVolumes
push 0x525dcc
push 0
push 5
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
add esp, 0x20
mov esi, dword [ebp - 0x78]
movups xmm0, xmmword [ebp - 0x30]
sub esp, 0x10
mov ecx, dword [ebp - 0x68]
movsd xmm2, qword [ebp - 0x8c]
mov eax, esp
movups xmmword [eax], xmm0
call fcn.004db090
push 1
lea ecx, [ebp - 0x30]
call dword [sym.imp.PHDPFuncs.dll_public:_void___thiscall_Date::AddMonths_int_]
push 1
lea ecx, [ebp - 0x40]
call dword [sym.imp.PHDPFuncs.dll_public:_void___thiscall_Date::AddMonths_int_]
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
cmp eax, dword [ebp - 0xc0]
jl 0x486a60
mov eax, dword [esi + 0x14]
mov byte [eax + 0x55], 0
mov esi, dword [ebp - 0x9c]
test esi, esi
je 0x486ed0
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x486ed0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x486ed0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x70]
call fcn.00401c60
mov eax, dword [ebp - 0x80]
mov esi, dword [ebp - 0x70]
mov dword [ebp - 0x78], esi
cmp esi, dword [eax]
jne 0x486843
cmp byte [ebp + 0x1c], 0
je 0x486fa3
mov esi, dword [ebp - 0x64]
xor eax, eax
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0x64], eax
mov dword [ebp - 0xc4], eax
test esi, esi
je 0x486f30
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x486f30
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x486f30
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x84]
add eax, 0x10
push eax
mov byte [ebp - 4], 0x13
call fcn.00405d00
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 0
mov esi, dword [eax + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
test esi, esi
je 0x486fa3
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x486fa3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x486fa3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x1b8]
push dword [eax + 4]
lea eax, [ebp - 0x1b8]
push eax
mov ecx, eax
call fcn.004020c0
push 0x38
push dword [ebp - 0x1b8]
call fcn.00443e34
add esp, 8
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x486ff2
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x486ff2
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x64]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x486ff2
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x74]
sub eax, dword [ebp - 0x98]
inc ecx
sar eax, 2
mov dword [ebp - 0x74], ecx
cmp ecx, eax
jb 0x4865d0
mov esi, dword [ebp - 0x48]
push dword [ebp - 0xa8]
mov ecx, esi
call fcn.00485ff0
mov eax, dword [esi + 0xc]
push dword [eax + 4]
mov eax, dword [esi + 0x24]
push dword [eax]
lea eax, [ebp - 0x54]
push str.delete_from_cases.DailyHistory_where_CaseId___d_and_CorpScenarioId___d
push eax
call fcn.0040a480
add esp, 0xc
mov dword [ebp - 0x58], esp
mov esi, dword [ebp - 0x54]
lea eax, [esi - 0x10]
push eax
call fcn.00403870
mov ecx, dword [ebp - 0x58]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 8]
add ecx, 4
call fcn.004307e0
test al, al
jne 0x487090
push esi
push str.Database::Execute_failed_on__s
push 0x454
push str.Case::SumVolumes
push 0x525dcc
push 0
push 5
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
add esp, 0x20
mov esi, dword [ebp - 0x48]
cmp byte [esi + 0x429], 0
je 0x487152
cmp dword [esi + 0x410], 1
jne 0x4870d0
cmp dword [edi - 4], 1
jle 0x4870bd
push dword [edi - 0xc]
lea ecx, [ebp - 0x4c]
call fcn.00403a50
mov edi, dword [ebp - 0x4c]
mov eax, dword [esi + 0xc]
push edi
push dword [eax + 4]
mov eax, dword [esi + 0x24]
push dword [eax]
push str.insert_into_Cases.DailyHistory_select__d__ProductId___d__ProductionDay__sum_cdh.ProductionValue__eti.intValue__from_Cases.DailyHistory_cdh_inner_join__s_eti_on_cdh.CaseId__eti.CaseId_and_year_cdh.ProductionDay___year_eti.intDate__and_month_cdh.ProductionDay___month_eti.intDate__group_by_ProductId__ProductionDay
jmp 0x4870f5
cmp dword [edi - 4], 1
jle 0x4870e4
push dword [edi - 0xc]
lea ecx, [ebp - 0x4c]
call fcn.00403a50
mov edi, dword [ebp - 0x4c]
mov eax, dword [esi + 0xc]
push edi
push dword [eax + 4]
mov eax, dword [esi + 0x24]
push dword [eax]
push str.insert_into_Cases.DailyHistory_select__d__ProductId___d__ProductionDay__sum_cdh.ProductionValue__from_Cases.DailyHistory_cdh_inner_join__SELECT_distinct_CaseId_FROM___s__as_eti_on_cdh.CaseId__eti.CaseId_group_by_ProductId__ProductionDay
lea eax, [ebp - 0x54]
push eax
call fcn.0040a480
add esp, 0x14
push ecx
mov esi, esp
mov dword [ebp - 0x58], esi
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
push eax
call fcn.00403870
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov esi, dword [ebp - 0x48]
mov ecx, dword [esi + 8]
add ecx, 4
call fcn.004307e0
test al, al
jne 0x487152
mov eax, dword [esi + 0x24]
push dword [eax]
push str._d_Failed_to_sum_daily_history
push 0x469
push str.Case::SumVolumes
push 0
push 0
push 5
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
add esp, 0x20
cmp dword [edi - 4], 1
jle 0x487166
push dword [edi - 0xc]
lea ecx, [ebp - 0x4c]
call fcn.00403a50
mov edi, dword [ebp - 0x4c]
push edi
lea eax, [ebp - 0x54]
push str.drop_table_if_exists__s
push eax
call fcn.0040a480
add esp, 8
mov dword [ebp - 0x58], esp
mov esi, dword [ebp - 0x54]
lea eax, [esi - 0x10]
push eax
call fcn.00403870
mov ecx, dword [ebp - 0x58]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 8]
add ecx, 4
call fcn.004307e0
test al, al
jne 0x4871c8
push esi
push str.Database::Execute_failed_on__s
push 0x46e
push str.Case::SumVolumes
push 0x525dcc
push 0
push 5
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
add esp, 0x20
mov ecx, dword [ebp - 0x48]
mov al, byte [ecx + 0x40c]
cmp al, 0x14
je 0x4871e1
cmp al, 4
je 0x4871e1
cmp al, 6
je 0x4871e1
cmp al, 0x19
jne 0x4871e6
call fcn.004713e0
mov ecx, dword [ebp - 0xa8]
push 1
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x48]
call fcn.0047b330
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx + 0x24]
push dword [eax]
push str._d_End
push 0x47a
push str.Case::SumVolumes
push 0
push 0
push 2
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
mov byte [ebp - 4], 6
add esp, 0x20
mov ecx, dword [ebp - 0xbc]
mov byte [ebp - 0x4d], 1
test ecx, ecx
je 0x48726e
mov eax, dword [ebp - 0xb4]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x487264
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48737e
push edx
push ecx
call fcn.00443e34
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x98]
test ecx, ecx
je 0x4872d4
mov eax, dword [ebp - 0x90]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x4872ac
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48737e
push edx
push ecx
call fcn.00443e34
add esp, 8
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov byte [ebp - 4], 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4872f0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x48730c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x1a4]
call fcn.00405710
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x48734a
mov ecx, dword [ebp + 0x14]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x487340
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48737e
push ecx
push edx
call fcn.00443e34
add esp, 8
mov al, byte [ebp - 0x4d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443e26
mov esp, ebp
pop ebp
ret 0x1c
push 0x80004005
call fcn.00404320
push 0x80004005
call fcn.00404320
call fcn.0044d695
int3