Function at 0x40bf90
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get file version info
Get ntdll base address
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd6c8
mov eax, dword fs:[0]
push eax
sub esp, 0xa7c
mov eax, dword [0x5116c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xa58], edi
mov dword [ebp - 0xa60], edi
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa80], edi
mov dword [ebp - 0xa48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xa5c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa74], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xa78], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xa64], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xa7c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xa50], 0
mov dword [ebp - 0xa44], esi
mov dword [ebp - 0xa70], eax
mov dword [edi], vtable.CLicenseBuf.0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea eax, [edi + 0x2c]
mov dword [ebp - 4], 0
mov ecx, eax
mov dword [ebp - 0xa4c], eax
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ebx, [edi + 0x30]
mov ecx, ebx
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
push dword [sym.imp.mfc140u.dll_Ordinal_1046]
lea eax, [edi + 0x34]
mov byte [ebp - 4], 2
push dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
push 0xa
push 4
push eax
call fcn.00418e3b
push dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [edi + 0x5c]
mov byte [ebp - 4], 3
push dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0xa
push 4
push eax
call fcn.00418e3b
lea eax, [edi + 0x84]
mov ecx, eax
mov dword [ebp - 0xa50], eax
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [edi + 0x88]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [edi + 0x8c]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [edi + 0x90]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [edi + 0x94]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [edi + 0x98]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [edi + 0x9c]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [edi + 0xa0]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [edi + 0xa4]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [edi + 0xa8]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [edi + 0xac]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [edi + 0xb0]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [edi + 0xd4]
mov dword [edi + 0xb4], 0
mov dword [edi + 0xb8], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [edi + 0xd8]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [edi + 0xdc]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [edi + 0xe0]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [edi + 0xe4]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x40cb20
push 0x40bf40
push 0xa
push 0x20
lea eax, [edi + 0xf0]
mov byte [ebp - 4], 0x15
push eax
call fcn.00418e3b
lea ecx, [edi + 0x234]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
lea ecx, [edi + 0x254]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [edi + 0x260]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [edi + 0x264]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [edi + 0x25c], 0
mov dword [edi + 0x268], 0
push 0x5205d8
mov byte [ebp - 4], 0x1a
mov dword [0x5205d8], 0x114
call fcn.00409f40
mov edi, dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push 0
call edi
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov ecx, dword [ebp - 0xa4c]
add esp, 0xc
push esi
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
call sub.mfc140u.dll_AfxGetModuleState
push dword [ebp - 0xa44]
mov esi, dword [eax + 4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
add esp, 4
mov dword [esi + 0x50], eax
mov ecx, ebx
push dword [ebp - 0xa48]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_char_StrTraitMFC_DLL_char_ATL::ChTraitsCRT_char__3]
push dword [ebp - 0xa5c]
mov ecx, dword [ebp - 0xa50]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
mov ebx, dword [ebp - 0xa58]
mov dword [ebx + 0x238], 0
mov dword [ebx + 0x23c], 0
mov dword [ebx + 0x240], 0
mov dword [ebx + 0x244], 0
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov dword [ebx + 0x248], 0
mov dword [ebx + 0x24c], 0
mov dword [ebx + 0x250], 0
push 0
call edi
push 0
mov dword [ebx + 0xb4], eax
mov dword [ebx + 0xb8], edx
call edi
mov dword [0x520708], eax
add esp, 8
mov dword [0x52070c], edx
lea eax, [ebp - 0x240]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
push pe_nt_image_headers32
push eax
push 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0xa6c]
push eax
lea eax, [ebp - 0x240]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x40c388
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x240]
push esi
push edi
push dword [ebp - 0xa6c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40c37e
lea eax, [ebp - 0xa5c]
push eax
lea eax, [ebp - 0xa58]
push eax
push 0x4d3d70
push esi
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [ebp - 0xa58]
movzx eax, word [ecx + 0xa]
mov dword [ebx + 0x10], eax
movzx eax, word [ecx + 8]
mov dword [ebx + 0x14], eax
movzx eax, word [ecx + 0xe]
mov dword [ebx + 0x18], eax
movzx eax, word [ecx + 0xc]
mov dword [ebx + 0x1c], eax
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea ecx, [ebp - 0x240]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c391
sub ecx, edx
sar ecx, 1
lea eax, [ebp + ecx*2 - 0x242]
lea ecx, [ebp - 0x240]
cmp eax, ecx
jb 0x40c3d0
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x40c3d0
cmp ecx, 0x2f
je 0x40c3d0
cmp ecx, 0x3a
je 0x40c3d0
sub eax, 2
lea ecx, [ebp - 0x240]
cmp eax, ecx
jae 0x40c3b1
lea edi, [eax + 2]
xor ecx, ecx
push 0x2e
push edi
mov word [eax], cx
call sub.VCRUNTIME140.dll_wcschr
add esp, 8
test eax, eax
je 0x40c3ec
xor ecx, ecx
mov word [eax], cx
push 0x4d4dfc
lea ecx, [ebp - 0xa58]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 0x1c
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0xa44]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov edx, dword [esi]
lea ecx, [ebp - 0x240]
mov dword [ebp - 0xa50], 1
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c430
push dword [edx - 0xc]
sub ecx, esi
lea eax, [ebp - 0x240]
push edx
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea eax, [ebp - 0xa44]
lea esi, [ebx + 0xa0]
mov ecx, esi
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
lea ecx, [ebp - 0xa44]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xa58]
mov byte [ebp - 4], 0x1a
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0xa70]
test eax, eax
je 0x40c499
push eax
jmp 0x40c49a
push edi
lea edi, [ebx + 0xa4]
mov ecx, edi
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push str..exe
lea ecx, [ebp - 0xa4c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
mov ecx, edi
mov byte [ebp - 4], 0x1e
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0xa44]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0xa4c]
mov ecx, dword [edi]
mov dword [ebp - 0xa50], 2
push dword [eax - 0xc]
push eax
push dword [ecx - 0xc]
lea eax, [ebp - 0xa44]
push ecx
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea eax, [ebp - 0xa44]
lea ecx, [ebx + 0xa8]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
lea ecx, [ebp - 0xa44]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xa4c]
mov byte [ebp - 4], 0x1a
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0xa74]
lea ecx, [ebx + 0x88]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
mov ecx, esi
mov byte [ebp - 4], 0x1f
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0xa48]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [edi]
mov ecx, dword [esi]
mov dword [ebp - 0xa50], 4
push dword [eax - 0xc]
push eax
push dword [ecx - 0xc]
lea eax, [ebp - 0xa48]
push ecx
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [ebp - 0xa48]
mov byte [ebp - 4], 0x20
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0xa44]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebx + 0x88]
mov dword [ebp - 0xa50], 0xc
push dword [eax - 0xc]
push eax
mov eax, dword [ebp - 0xa48]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea eax, [ebp - 0xa44]
lea ecx, [ebx + 0xac]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
lea ecx, [ebp - 0xa44]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xa48]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, esi
mov byte [ebp - 4], 0x21
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0xa44]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [edi]
mov ecx, dword [esi]
mov dword [ebp - 0xa50], 0x10
push dword [eax - 0xc]
push eax
push dword [ecx - 0xc]
lea eax, [ebp - 0xa44]
push ecx
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [ebp - 0xa44]
mov byte [ebp - 4], 0x22
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0xa48]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0xa44]
push 3
push 0x4df2b0
mov dword [ebp - 0xa50], 0x30
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xa48]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [ebp - 0xa48]
mov byte [ebp - 4], 0x23
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0xa4c]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebx + 0x88]
mov dword [ebp - 0xa50], 0x70
push dword [eax - 0xc]
push eax
mov eax, dword [ebp - 0xa48]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea eax, [ebp - 0xa4c]
lea ecx, [ebx + 0xb0]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
lea ecx, [ebp - 0xa4c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xa48]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xa44]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, esi
mov byte [ebp - 4], 0x24
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0xa44]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [edi]
mov ecx, dword [esi]
mov dword [ebp - 0xa50], 0x80
push dword [eax - 0xc]
push eax
push dword [ecx - 0xc]
lea eax, [ebp - 0xa44]
push ecx
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [ebp - 0xa44]
mov byte [ebp - 4], 0x25
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0xa4c]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0xa44]
push 4
push str..ini
mov dword [ebp - 0xa50], 0x180
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea eax, [ebp - 0xa4c]
lea ecx, [ebx + 0xc]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
lea ecx, [ebp - 0xa4c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xa44]
mov byte [ebp - 4], 0x1a
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x4d4174
lea ecx, [ebx + 0xd4]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc8], 0
mov dword [ebx + 0xc4], 0
mov dword [ebx + 0xc0], 0
mov dword [ebx + 0xbc], 0
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__19]
push 0x4d4174
lea ecx, [ebx + 0xdc]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__19]
mov edi, dword [ebp - 0xa78]
lea ecx, [ebx + 0x8c]
push edi
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
mov ecx, dword [ebp - 0xa7c]
mov eax, edi
test ecx, ecx
cmovne eax, ecx
lea ecx, [ebx + 0x90]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push edi
lea ecx, [ebx + 0xd8]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push edi
lea ecx, [ebx + 0xe0]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push dword [ebp - 0xa64]
lea ecx, [ebx + 0x94]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push str.https:__www.hyperionics.com_downloads_HS9Setup32.exe
lea ecx, [ebx + 0x98]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push str.None
lea ecx, [ebx + 0xe4]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
lea ecx, [ebx + 0x84]
mov byte [ebp - 4], 0x26
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0xa48]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebx + 0x84]
mov dword [ebp - 0xa50], 0x200
push dword [eax - 0xc]
push eax
push 9
lea eax, [ebp - 0xa48]
push str.SOFTWARE_
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [ebp - 0xa48]
mov byte [ebp - 4], 0x27
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0xa44]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebp - 0xa48]
push 1
push 0x4d3d70
mov dword [ebp - 0xa50], 0x600
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xa44]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
add esp, 0x14
lea ecx, [ebp - 0xa44]
mov byte [ebp - 4], 0x28
call dword [sym.imp.mfc140u.dll_Ordinal_5921]
push eax
lea ecx, [ebp - 0xa4c]
call dword [sym.imp.mfc140u.dll_Ordinal_285]
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0xa50], 0xe00
push dword [eax - 0xc]
push eax
mov eax, dword [ebp - 0xa44]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::Concatenate]
push 1
push 0x4df340
push dword [ebp - 0xa4c]
push SysStringLen
call fcn.0040a540
add esp, 0x24
mov dword [ebx + 0xcc], eax
lea ecx, [ebp - 0xa4c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xa44]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xa48]
mov byte [ebp - 4], 0x1a
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebx + 0xcc]
push 0
push 0x2000000
push 3
push 0
push 3
mov dword [ebx + 0xd0], eax
mov dword [ebx + 0xe8], 0
mov dword [ebx + 0xec], 0
mov dword [ebx + 0x230], 0
mov dword [ebx + 0x258], 0
push 0x80000000
mov dword [0x5206f4], ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40ca2e
push 0
push 0
lea eax, [ebp - 0xa68]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x40ca27
push dword [ebp - 0xa64]
push dword [ebp - 0xa68]
call fcn.00409c10
add esp, 8
mov dword [0x520710], eax
mov dword [0x520714], edx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xa60]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 0x29
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0xa54]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
push 0x400
lea eax, [ebp - 0xa40]
mov byte [ebp - 4], 0x2a
push eax
push str.Path
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0xa40]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr]
add esp, 4
lea ecx, [ebp - 0xa54]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
push dword [ebp - 0xa54]
lea eax, [ebp - 0xa40]
push eax
call sub.VCRUNTIME140.dll_wcsstr
add esp, 8
test eax, eax
jne 0x40cad9
push 0x4df348
lea ecx, [ebp - 0xa54]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__17]
lea eax, [ebp - 0xa40]
push eax
lea ecx, [ebp - 0xa54]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator_2]
push dword [ebp - 0xa54]
push str.Path
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0xa54]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xa60]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418035
mov esp, ebp
pop ebp
ret 0x20