Function at 0x491980
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510bcc
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa30
mov eax, dword [0x54f040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
lea edi, [ecx + 4]
push edi
lea ecx, [ebp - 0x5c8]
mov dword [ebp - 0xa3c], esi
call fcn.00426f90
mov dword [ebp - method.DbEcoProject.virtual_0], vtable.DbEcoProject.0
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a0], 0
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x491fe6
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
push edi
lea ecx, [ebp - 0xa30]
mov dword [ebp - 4], 0
call fcn.00426f90
xorps xmm0, xmm0
mov dword [ebp - method.DbEcoHurdles.virtual_0], vtable.DbEcoHurdles.0
movups xmmword [ebp - 0x610], xmm0
mov dword [ebp - 0x600], 0
mov dword [ebp - 0x5fc], 0
mov byte [ebp - 4], 1
push dword [esi + 4]
push str._d_LoadCorpScenario
push 0x26e
push str.DataManager::LoadCorpScenario
push 0x525dcc
push 0
push 2
push 6
call dword [sym.imp.PHDPFuncs.dll_LogPrintf]
mov esi, dword [esi + 4]
push 0x468
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], esi
call fcn.00443e65
add esp, 0x24
mov dword [ebp - 0xa38], eax
mov byte [ebp - 4], 2
mov ecx, eax
push dword [ebp - 0x5a8]
call fcn.004367a0
mov byte [ebp - 4], 1
mov ecx, eax
push esi
mov dword [ebp - 0x3c], eax
call fcn.00436880
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0xa38], 0
mov eax, dword [edi + 0x424]
mov edx, dword [edi + 0x420]
sub eax, edx
sar eax, 4
test eax, eax
je 0x491b63
mov ecx, dword [ebp - 0x1a4]
xor esi, esi
nop dword [eax]
mov eax, dword [esi + edx + 4]
movsd xmm0, qword [esi + edx + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + edx]
mov dword [ebp - 0x28], eax
movsd qword [ebp - 0x20], xmm0
cmp ecx, dword [ebp - 0x1a0]
je 0x491b28
movups xmm0, xmmword [ebp - 0x28]
movups xmmword [ecx], xmm0
mov ecx, dword [ebp - 0x1a4]
add ecx, 0x10
mov dword [ebp - 0x1a4], ecx
jmp 0x491b3e
lea eax, [ebp - 0x28]
push eax
push ecx
lea ecx, [ebp - 0x1a8]
call fcn.004025b0
mov ecx, dword [ebp - 0x1a4]
mov eax, dword [edi + 0x424]
add esi, 0x10
mov edx, dword [edi + 0x420]
sub eax, edx
inc dword [ebp - 0xa38]
sar eax, 4
cmp dword [ebp - 0xa38], eax
jb 0x491af0
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x491b6f
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push 0x191
push str.select_proj.Label__ss.CashAccrual__ss.DiscountingMethod__ss.DiscountsPerYear__ss.ReportingPeriod__ss.StartOfPeriod__ss.MaxEcoYears__ss.PrimaryDiscount__proj.PWA__proj.PWB__proj.PWC__proj.PWD__proj.PWE__proj.PWF__proj.PWG__proj.PWH__proj.PWI__proj.PWJ__ss.ReportDate__ss.DiscountDate_from_dbo.ProjProject_proj_inner_join_corp.ScenarioSettings_ss_on_ss.CorpScenarioId____where_proj.ProjProjectId_____
lea ecx, [ebp - 0x40]
call fcn.004044a0
push ecx
mov esi, esp
mov dword [ebp - 0xa38], esi
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
push eax
call fcn.00403870
add esp, 4
lea ecx, [ebp - 0x5c8]
add eax, 0x10
mov dword [esi], eax
call fcn.004273c0
test al, al
jne 0x491bc2
mov eax, dword [ebp - 0xa3c]
push dword [eax + 4]
push str._d_DbEcoProject.Open_failed
push 0x273
jmp 0x491be9
cmp byte [ebp - 0x5b8], 0
je 0x491c0f
lea ecx, [ebp - 0x5c8]
call fcn.004276b0
mov eax, dword [ebp - 0xa3c]
push dword [eax + 4]
push str._d_DbEcoProject.Open_returned_no_records.
push 0x27b
mov eax, dword [sym.imp.PHDPFuncs.dll_LogPrintf]
push str.DataManager::LoadCorpScenario
push 0x525dcc
push 0
push 5
push 6
call eax
add esp, 0x20
mov byte [ebp - 0xa31], 0
jmp 0x491f53
push 0xb8
call fcn.00443e65
add esp, 4
mov esi, eax
mov dword [ebp - 0xa38], esi
push 0xb8
push 0
push esi
call fcn.00446190
add esp, 0xc
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x491ff0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
lea edi, [esi + 0x98]
mov dword [esi], eax
lea edx, [ebp - 0x19c]
xor eax, eax
mov dword [esi + 0x18], 0x707
mov dword [esi + 0x1c], 0x1f000c
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 0x707
mov dword [esi + 0x2c], 0x1f000c
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], eax
imul eax, dword [ebp - 0x5a0], 0x7a
add edx, eax
jne 0x491cae
xor ecx, ecx
jmp 0x491cd3
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0xa38], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491cc0
sub ecx, dword [ebp - 0xa38]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004044a0
mov ecx, esi
call fcn.0040a9e0
mov eax, dword [ebp - 0x5a0]
push 0
push 0
push 0
movzx eax, byte [ebp + eax - 0x122]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x5a0]
push 1
movzx eax, byte [ebp + eax - 0x121]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x5a0]
movzx eax, byte [ebp + eax - 0x11c]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x5a0]
movzx eax, byte [ebp + eax - 0x11b]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x5a0]
mov eax, dword [ebp + eax*4 - 0x118]
mov dword [esi + 0x3c], eax
mov ecx, dword [ebp - 0x5a0]
add ecx, ecx
movzx eax, word [ebp + ecx*8 - 0xb6]
push eax
movsx eax, word [ebp + ecx*8 - 0xb8]
lea ecx, [ebp - 0x28]
push eax
call dword [sym.imp.PHDPFuncs.dll_public:_void___thiscall_Date::constructor_int__int__int__int__int__int_]
sub esp, 0x10
movups xmm0, xmmword [eax]
mov eax, esp
movups xmmword [esi + 0x28], xmm0
mov ecx, dword [ebp - 0x5a0]
add ecx, ecx
movups xmm0, xmmword [ebp + ecx*8 - 0xa8]
lea ecx, [ebp - 0x28]
movups xmmword [eax], xmm0
call sym.PHDEco.exe_public:_void___thiscall_PHDDate::constructor_struct_tagTIMESTAMP_STRUCT_
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.PHDPFuncs.dll_public:_void___thiscall_Date::constructor_struct_PHDDate_const__]
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x18], xmm0
mov eax, dword [ebp - 0x5a0]
movsd xmm0, qword [ebp + eax*8 - 0x110]
movsd qword [esi + 0x10], xmm0
mov eax, dword [ebp - 0x5a0]
mov eax, dword [ebp + eax*4 - 0x120]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x5a0]
movsd xmm0, qword [ebp + eax*8 - 0x108]
movsd qword [esi + 0x48], xmm0
mov eax, dword [ebp - 0x5a0]
movsd xmm0, qword [ebp + eax*8 - 0x100]
movsd qword [esi + 0x50], xmm0
mov eax, dword [ebp - 0x5a0]
movsd xmm0, qword [ebp + eax*8 - 0xf8]
movsd qword [esi + 0x58], xmm0
mov eax, dword [ebp - 0x5a0]
movsd xmm0, qword [ebp + eax*8 - 0xf0]
movsd qword [esi + 0x60], xmm0
mov eax, dword [ebp - 0x5a0]
movsd xmm0, qword [ebp + eax*8 - 0xe8]
movsd qword [esi + 0x68], xmm0
mov eax, dword [ebp - 0x5a0]
movsd xmm0, qword [ebp + eax*8 - 0xe0]
movsd qword [esi + 0x70], xmm0
mov eax, dword [ebp - 0x5a0]
movsd xmm0, qword [ebp + eax*8 - 0xd8]
movsd qword [esi + 0x78], xmm0
mov eax, dword [ebp - 0x5a0]
movsd xmm0, qword [ebp + eax*8 - 0xd0]
movsd qword [esi + 0x80], xmm0
mov eax, dword [ebp - 0x5a0]
movsd xmm0, qword [ebp + eax*8 - 0xc8]
movsd qword [esi + 0x88], xmm0
lea ecx, [ebp - 0x5c8]
mov eax, dword [ebp - 0x5a0]
movsd xmm0, qword [ebp + eax*8 - 0xc0]
mov eax, dword [ebp - 0xa3c]
movsd qword [esi + 0x90], xmm0
mov dword [eax + 0x10], esi
call fcn.004276b0
mov eax, dword [ebp - 0xa3c]
lea ecx, [ebp - 0xa30]
push dword [eax + 4]
call fcn.00436880
lea eax, [ebp - 0x610]
cmp edi, eax
je 0x491ede
mov eax, dword [ebp - 0x60c]
mov ecx, edi
mov edx, dword [ebp - 0x610]
sub eax, edx
sar eax, 4
push eax
push edx
call fcn.00406d60
lea eax, [ebp - 0x604]
push eax
lea ecx, [esi + 0xa4]
call fcn.004031e0
lea ecx, [ebp - 0xa30]
call fcn.004276b0
movsd xmm0, qword [0x530e68]
xor edi, edi
movsd qword [esi + 0xb0], xmm0
mov eax, dword [esi + 0x9c]
mov edx, dword [esi + 0x98]
sub eax, edx
sar eax, 4
test eax, eax
je 0x491f4c
xor ecx, ecx
cmp dword [ecx + edx + 4], 1
jne 0x491f39
movsd xmm0, qword [ecx + edx + 8]
movsd qword [esi + 0xb0], xmm0
mov eax, dword [esi + 0x9c]
inc edi
sub eax, edx
add ecx, 0x10
sar eax, 4
cmp edi, eax
jb 0x491f24
mov byte [ebp - 0xa31], 1
lea ecx, [ebp - 0x604]
mov dword [ebp - method.DbEcoHurdles.virtual_0], vtable.DbEcoHurdles.0
call fcn.00401c00
lea ecx, [ebp - 0x610]
call fcn.00401a20
lea ecx, [ebp - 0xa30]
call fcn.004270c0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x40]
mov dword [ebp - method.DbEcoProject.virtual_0], vtable.DbEcoProject.0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x491faa
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x1a8]
call fcn.00401a20
lea ecx, [ebp - 0x5c8]
call fcn.004270c0
mov al, byte [ebp - 0xa31]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00443e26
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push 0x80004005
call fcn.00404320
push 0x80004005
call fcn.00404320
int3