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

Disassembly:
push 0xffffffffffffffff
push 0x51a914
mov eax, dword fs:[0]
push eax
sub esp, 0x134
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b339c]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x38], ebp
mov ecx, dword [0x5b6bb0]
push str..SimDevItem.cpp
push 0x1cb
push str.CSimDevItem::ReadRawHistory__
call fcn.00402490
mov esi, dword [esp + 0x170]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
push ecx
xor edi, edi
mov ecx, esi
mov dword [esp + 0x74], edi
xor bl, bl
call fcn.004062f0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], edi
mov dword [eax], eax
mov eax, dword [esi + 0x18]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x158]
mov ecx, dword [esp + 0x15c]
mov edi, dword [esp + 0x164]
mov edx, dword [esp + 0x160]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edx
cmp eax, 0xffffffff
jne 0x407248
mov byte [esp + 0x22], 1
cmp ecx, eax
je 0x40724d
mov byte [esp + 0x22], 0
cmp edx, 0xffffffff
jne 0x40725b
mov byte [esp + 0x23], 1
cmp edi, edx
je 0x407260
mov byte [esp + 0x23], 0
cmp dword [ebp + 0x154], 0
je 0x407fb0
mov edi, dword [sym.imp.KERNEL32.dll_CompareFileTime]
push 0x539b50
lea edx, [esp + 0x164]
push edx
call edi
test eax, eax
jne 0x4072b2
mov ecx, dword [ebp + 0x138]
mov eax, dword [ebp + 0x150]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00405c80
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
jmp 0x407327
push 0x539b50
lea eax, [esp + 0x15c]
push eax
call edi
test eax, eax
jne 0x4072ef
mov eax, dword [ebp + 0x150]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x138]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
call fcn.004e5b70
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x24], ecx
jmp 0x407321
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0x15c]
push ecx
call edi
test eax, eax
jle 0x407327
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov bl, 1
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x16c]
mov dword [esp + 0x34], eax
test eax, eax
jne 0x40733e
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [ebp + 0x150]
mov edi, dword [eax]
mov eax, dword [ebp + 0x138]
test eax, eax
jne 0x4074a6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x407367
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x30]
cmp eax, dword [edi + 0x14]
jb 0x4073b3
ja 0x40737b
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [edi + 0x10]
jb 0x4073b3
mov ecx, dword [ebp + 0x138]
mov eax, dword [ebp + 0x150]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00405c80
mov edx, dword [eax + 4]
cmp edx, dword [esp + 0x28]
ja 0x4076ec
jb 0x4073b3
mov eax, dword [eax]
cmp eax, dword [esp + 0x24]
jae 0x4076ec
cmp byte [esp + 0x168], 1
jne 0x407f8c
mov eax, dword [ebp + 0x150]
mov edi, dword [eax]
mov eax, dword [ebp + 0x138]
test eax, eax
jne 0x4074ad
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4073ea
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x30]
cmp ecx, dword [edi + 0x14]
ja 0x407579
jb 0x407406
mov edx, dword [esp + 0x2c]
cmp edx, dword [edi + 0x10]
jae 0x407579
lea ecx, [esp + 0x48]
call fcn.004e4820
mov dword [esp + 0x150], 0
test bl, bl
jne 0x4074b4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x64], 0x100000
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.00406ea0
mov edx, dword [esp + 0x34]
cmp dword [esi + 0x1c], edx
jae 0x40753d
mov ecx, dword [ebp + 0x138]
mov eax, dword [ebp + 0x150]
mov eax, dword [eax]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.004e5b70
add eax, 8
push eax
lea ecx, [esp + 0x4c]
call fcn.004e48e0
or dword [esp + 0x60], 0x40000
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x44]
push eax
jmp 0x407536
mov eax, dword [eax]
jmp 0x40735c
mov eax, dword [eax]
jmp 0x4073df
mov eax, dword [ebp + 0x150]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x138]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
call fcn.004e5b70
add eax, 8
push eax
lea ecx, [esp + 0x4c]
call fcn.004e48e0
or dword [esp + 0x60], 0x40000
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.00406ea0
mov edx, dword [esp + 0x34]
cmp dword [esi + 0x1c], edx
jae 0x40753d
cmp byte [esp + 0x22], 0
jne 0x40753d
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x64], 0x100000
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.00406ea0
push 0
push str.S_OK
push str..SimDevItem.cpp
push 0x22b
mov ecx, dword [0x5b6bb0]
push str.CSimDevItem::ReadRawHistory__
call fcn.00402520
mov dword [esp + 0x150], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.004e4850
xor eax, eax
jmp 0x407fb5
mov ecx, dword [ebp + 0x138]
mov eax, dword [ebp + 0x150]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00405c80
mov edx, dword [eax + 4]
cmp edx, dword [esp + 0x28]
ja 0x4076ec
jb 0x4075b1
mov eax, dword [eax]
cmp eax, dword [esp + 0x24]
jae 0x4076ec
lea ecx, [esp + 0x48]
call fcn.004e4820
mov dword [esp + 0x150], 1
test bl, bl
jne 0x407656
mov ecx, dword [ebp + 0x138]
mov eax, dword [ebp + 0x150]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00405c80
add eax, 8
push eax
lea ecx, [esp + 0x4c]
call fcn.004e48e0
or dword [esp + 0x60], 0x40000
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x44]
push edx
mov ecx, esi
call fcn.00406ea0
mov eax, dword [esp + 0x34]
cmp dword [esi + 0x1c], eax
jae 0x4076d6
cmp byte [esp + 0x23], bl
jne 0x4076d6
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x64], 0x100000
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x44]
push edx
jmp 0x4076cf
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x64], 0x100000
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.00406ea0
mov edx, dword [esp + 0x34]
cmp dword [esi + 0x1c], edx
jae 0x4076d6
mov ecx, dword [ebp + 0x138]
mov eax, dword [ebp + 0x150]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.00405c80
add eax, 8
push eax
lea ecx, [esp + 0x4c]
call fcn.004e48e0
or dword [esp + 0x60], 0x40000
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.00406ea0
push 0
push str.S_OK
push str..SimDevItem.cpp
push 0x259
jmp 0x40754e
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
test bl, bl
jne 0x407b31
mov ecx, ebp
mov eax, dword [ecx + 0x150]
mov ebp, dword [eax]
mov ebx, dword [ecx + 0x138]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebx
mov edx, dword [esi + 0x1c]
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edx, dword [esp + 0x34]
jae 0x407aba
test ebx, ebx
jne 0x4077ea
call edi
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x40773c
call edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmp eax, dword [esp + 0x24]
jne 0x4077f8
cmp dword [esp + 0x28], ecx
jne 0x4077fc
test ebx, ebx
jne 0x4077f1
call edi
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x407769
call edi
add ebp, 0x18
push ebp
lea ecx, [esp + 0xd8]
call fcn.004e4870
mov dword [esp + 0x150], 2
or dword [esp + 0xec], 0x40000
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0x134]
push ecx
mov ecx, esi
call fcn.00406c40
cmp byte [esp + 0x168], 1
jne 0x4077ce
mov edx, dword [esp + 0x2c]
mov byte [esp + 0x16], 1
cmp dword [esp + 0x24], edx
jne 0x4077ce
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x28], eax
jne 0x4077ce
mov byte [esp + 0x17], 1
mov dword [esp + 0x150], 0xffffffff
lea ecx, [esp + 0xd4]
call fcn.004e4850
jmp 0x407a2a
mov eax, dword [ebx]
jmp 0x407735
mov eax, dword [ebx]
jmp 0x407762
cmp dword [esp + 0x28], ecx
ja 0x407999
jb 0x40780e
cmp dword [esp + 0x24], eax
jae 0x407999
cmp byte [esp + 0x168], 1
jne 0x407927
cmp byte [esp + 0x16], 0
jne 0x407927
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0x150]
mov edx, dword [eax]
mov eax, dword [ecx + 0x138]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], eax
call fcn.004e9b50
test al, al
je 0x4078b1
lea ecx, [esp + 0x48]
call fcn.004e4820
mov dword [esp + 0x150], 3
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], edx
push ecx
lea edx, [esp + 0xa8]
push edx
mov ecx, esi
mov dword [esp + 0x68], 0x100000
mov dword [esp + 0x70], eax
call fcn.00406ea0
mov byte [esp + 0x16], 1
mov dword [esp + 0x150], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.004e4850
jmp 0x407a3b
lea ecx, [esp + 0x18]
call fcn.004056a0
lea ecx, [esp + 0x18]
call fcn.004e5b70
add eax, 8
push eax
lea ecx, [esp + 0xb0]
call fcn.004e4870
mov dword [esp + 0x150], 4
or dword [esp + 0xc4], 0x40000
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
call fcn.00406ea0
lea ecx, [esp + 0x18]
mov byte [esp + 0x16], 1
call fcn.00405630
mov dword [esp + 0x150], 0xffffffff
lea ecx, [esp + 0xac]
call fcn.004e4850
jmp 0x407a33
mov edx, dword [esp + 0x30]
cmp ecx, edx
ja 0x40799d
jb 0x407937
cmp eax, dword [esp + 0x2c]
jae 0x40799d
lea ecx, [esp + 0x18]
call fcn.004e5b70
add eax, 8
push eax
lea ecx, [esp + 0x100]
call fcn.004e4870
mov dword [esp + 0x150], 5
or dword [esp + 0x114], 0x40000
lea edx, [esp + 0xfc]
push edx
lea eax, [esp + 0x140]
push eax
mov ecx, esi
call fcn.00406c40
mov dword [esp + 0x150], 0xffffffff
lea ecx, [esp + 0xfc]
call fcn.004e4850
jmp 0x407a2a
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
cmp eax, edi
jne 0x407a18
cmp ecx, edx
jne 0x407a1a
cmp byte [esp + 0x168], 1
je 0x4079ba
cmp byte [esp + 0x23], 1
jne 0x407a2a
lea ecx, [esp + 0x18]
call fcn.004e5b70
add eax, 8
push eax
lea ecx, [esp + 0x80]
call fcn.004e4870
mov dword [esp + 0x150], 6
or dword [esp + 0x94], 0x40000
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x128]
push edx
mov ecx, esi
call fcn.00406c40
mov byte [esp + 0x17], 1
mov dword [esp + 0x150], 0xffffffff
lea ecx, [esp + 0x7c]
call fcn.004e4850
jmp 0x407a2a
cmp ecx, edx
ja 0x407ac4
jb 0x407a2a
cmp eax, edi
ja 0x407ac4
lea ecx, [esp + 0x18]
call fcn.00405630
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
mov edi, dword [eax + 0x150]
mov eax, dword [eax + 0x138]
test ebx, ebx
je 0x407a53
cmp ebx, eax
je 0x407a59
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebp, edi
jne 0x407716
cmp byte [esp + 0x168], 1
jne 0x407f08
cmp byte [esp + 0x17], 0
jne 0x407f08
mov edx, dword [esp + 0x34]
cmp dword [esi + 0x1c], edx
jae 0x407f08
lea ecx, [esp + 0x48]
call fcn.004e4820
mov dword [esp + 0x150], 8
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x48]
mov dword [esp + 0x64], eax
push edx
lea eax, [esp + 0x78]
mov dword [esp + 0x6c], ecx
push eax
jmp 0x407ee5
mov dword [esp + 0x70], 0x40041003
jmp 0x407a61
cmp byte [esp + 0x168], 1
jne 0x407f08
cmp byte [esp + 0x17], 0
jne 0x407f08
lea ecx, [esp + 0x18]
call fcn.004e5b70
add eax, 8
push eax
lea ecx, [esp + 0x80]
call fcn.004e4870
mov dword [esp + 0x150], 7
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x78]
push ecx
or dword [esp + 0x9c], 0x40000
mov ecx, esi
call fcn.00406ea0
mov dword [esp + 0x150], 0xffffffff
lea ecx, [esp + 0x7c]
jmp 0x407f03
mov eax, dword [ebp + 0x150]
mov ecx, dword [ebp + 0x138]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
jmp 0x407b50
mov edx, dword [esp + 0x34]
cmp dword [esi + 0x1c], edx
jae 0x407f3b
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.004056a0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x407c33
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov edi, dword [esp + 0x1c]
cmp edi, dword [eax + 0x18]
jne 0x407b99
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
cmp eax, edi
jne 0x407c3a
cmp ecx, ebx
jne 0x407c3c
lea ecx, [esp + 0x38]
call fcn.00405c80
add eax, 8
push eax
lea ecx, [esp + 0x80]
call fcn.004e4870
mov dword [esp + 0x150], 9
or dword [esp + 0x94], 0x40000
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x128]
push eax
mov ecx, esi
call fcn.00406c40
cmp byte [esp + 0x168], 1
jne 0x407c1a
mov byte [esp + 0x17], 1
cmp dword [esp + 0x24], edi
jne 0x407c1a
cmp dword [esp + 0x28], ebx
jne 0x407c1a
mov byte [esp + 0x16], 1
mov dword [esp + 0x150], 0xffffffff
lea ecx, [esp + 0x7c]
call fcn.004e4850
jmp 0x407e6a
mov eax, dword [eax]
jmp 0x407b8a
cmp ecx, ebx
ja 0x407d5b
jb 0x407c4c
cmp eax, edi
jae 0x407d5b
cmp byte [esp + 0x168], 1
jne 0x407d5b
cmp byte [esp + 0x17], 0
jne 0x407d5b
mov ecx, dword [ebp + 0x138]
mov eax, dword [ebp + 0x150]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x4c], eax
call fcn.00405c50
add esp, 8
test al, al
je 0x407ce2
lea ecx, [esp + 0x48]
call fcn.004e4820
mov dword [esp + 0x150], 0xa
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
mov dword [esp + 0x68], 0x100000
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], ebx
call fcn.00406ea0
mov byte [esp + 0x17], 1
mov dword [esp + 0x150], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.004e4850
jmp 0x407e73
lea ecx, [esp + 0x38]
call fcn.00405630
lea ecx, [esp + 0x38]
call fcn.00405c80
add eax, 8
push eax
lea ecx, [esp + 0x100]
call fcn.004e4870
mov dword [esp + 0x150], 0xb
or dword [esp + 0x114], 0x40000
lea edx, [esp + 0xfc]
push edx
lea eax, [esp + 0xa8]
push eax
mov ecx, esi
call fcn.00406ea0
lea ecx, [esp + 0x38]
mov byte [esp + 0x17], 1
call fcn.004056a0
mov dword [esp + 0x150], 0xffffffff
lea ecx, [esp + 0xfc]
call fcn.004e4850
jmp 0x407e73
mov edx, dword [esp + 0x28]
cmp edx, ecx
ja 0x407dd7
jb 0x407d6b
cmp dword [esp + 0x24], eax
jae 0x407dd7
cmp ecx, ebx
ja 0x407dd7
jb 0x407d75
cmp eax, edi
jae 0x407dd7
lea ecx, [esp + 0x38]
call fcn.00405c80
add eax, 8
push eax
lea ecx, [esp + 0xb0]
call fcn.004e4870
mov dword [esp + 0x150], 0xc
or dword [esp + 0xc4], 0x40000
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0x140]
push edx
mov ecx, esi
call fcn.00406c40
mov dword [esp + 0x150], 0xffffffff
lea ecx, [esp + 0xac]
call fcn.004e4850
jmp 0x407e6a
mov edi, dword [esp + 0x24]
cmp eax, edi
jne 0x407e58
cmp ecx, edx
jne 0x407e5a
cmp byte [esp + 0x168], 1
je 0x407df4
cmp byte [esp + 0x22], 1
jne 0x407e6a
lea ecx, [esp + 0x38]
call fcn.00405c80
add eax, 8
push eax
lea ecx, [esp + 0xd8]
call fcn.004e4870
mov dword [esp + 0x150], 0xd
or dword [esp + 0xec], 0x40000
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0x134]
push ecx
mov ecx, esi
call fcn.00406c40
mov byte [esp + 0x16], 1
mov dword [esp + 0x150], 0xffffffff
lea ecx, [esp + 0xd4]
call fcn.004e4850
jmp 0x407e6a
cmp ecx, edx
jb 0x407f48
ja 0x407e6a
cmp eax, edi
jb 0x407f48
lea ecx, [esp + 0x38]
call fcn.004056a0
mov eax, dword [ebp + 0x150]
mov ecx, dword [esp + 0x38]
mov edi, dword [eax]
mov eax, dword [ebp + 0x138]
test ecx, ecx
je 0x407e8d
cmp ecx, eax
je 0x407e93
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x3c], edi
jne 0x407b50
cmp byte [esp + 0x168], 1
jne 0x407f08
cmp byte [esp + 0x16], 0
jne 0x407f08
mov ecx, dword [esp + 0x34]
cmp dword [esi + 0x1c], ecx
jae 0x407f08
lea ecx, [esp + 0x48]
call fcn.004e4820
mov dword [esp + 0x150], 0xf
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], edx
push ecx
lea edx, [esp + 0x78]
mov dword [esp + 0x6c], eax
push edx
mov ecx, esi
mov dword [esp + 0x68], 0x100000
call fcn.00406ea0
mov dword [esp + 0x150], 0xffffffff
lea ecx, [esp + 0x48]
call fcn.004e4850
cmp dword [esi + 0x1c], 0
mov esi, 0x40041002
je 0x407f17
mov esi, dword [esp + 0x70]
mov ecx, dword [0x5b6bb0]
push esi
push str.dwRetVal
push str..SimDevItem.cpp
push 0x357
push str.CSimDevItem::ReadRawHistory__
call fcn.00402520
mov eax, esi
jmp 0x407fb5
mov dword [esp + 0x70], 0x40041003
jmp 0x407e9d
cmp byte [esp + 0x168], 1
jne 0x407f08
cmp byte [esp + 0x16], 0
jne 0x407f08
lea ecx, [esp + 0x38]
call fcn.00405c80
add eax, 8
push eax
lea ecx, [esp + 0x80]
call fcn.004e4870
mov dword [esp + 0x150], 0xe
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x78]
push eax
jmp 0x407b0b
mov ecx, dword [0x5b6bb0]
push 0x40041002
push str.PST_S_NODATA
push str..SimDevItem.cpp
push 0x25f
push str.CSimDevItem::ReadRawHistory__
call fcn.00402520
mov eax, 0x40041002
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret 0x1c