Function at 0x41d440
Capabilities:
Get file size
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60a7b1
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x6a0f4c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x45c], 0
push 0x3ff
push 0
lea eax, [ebp - 0x45b]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x45c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x468], eax
cmp dword [ebp - 0x468], 0xffffffff
jne 0x41d56b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x46c], eax
push 2
push 0xeb
push str..SafeHookActiveXMgrActiveXMgr.cpp
lea ecx, [ebp - 0x47c]
call fcn.00403d10
mov dword [ebp - 0x4a0], eax
mov ecx, dword [ebp - 0x4a0]
mov dword [ebp - 0x4a4], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 0x45c]
push edx
push 0x68a0a0
mov eax, dword [ebp - 0x46c]
push eax
push 0x6174dc
mov ecx, dword [ebp - 0x4a4]
call fcn.00404340
push eax
call fcn.00408230
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.00408230
add esp, 8
push eax
call fcn.00408230
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x47c]
call fcn.004042e0
xor al, al
jmp 0x41d7c1
push 0
mov ecx, dword [ebp - 0x468]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.0047ce38
add esp, 4
mov dword [ebp - 0x480], eax
mov eax, dword [ebp - 0x480]
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], 0
push 0
lea ecx, [ebp - 0x460]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x464]
push eax
mov ecx, dword [ebp - 0x468]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41d68e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x470], eax
push 2
push 0xf3
push str..SafeHookActiveXMgrActiveXMgr.cpp
lea ecx, [ebp - 0x488]
call fcn.00403d10
mov dword [ebp - 0x4a8], eax
mov edx, dword [ebp - 0x4a8]
mov dword [ebp - 0x4ac], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
push 0x617440
mov ecx, dword [ebp - 0x470]
push ecx
push 0x6174c4
mov ecx, dword [ebp - 0x4ac]
call fcn.00404340
push eax
call fcn.00408230
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.00408230
add esp, 8
push eax
call fcn.00408230
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x488]
call fcn.004042e0
mov edx, dword [ebp - 0x464]
mov dword [ebp - 0x48c], edx
mov eax, dword [ebp - 0x48c]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp - 0x468]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x41d7c1
mov edx, dword [ebp - 0x468]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x460]
je 0x41d75a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x474], eax
push 2
push 0xfb
push str..SafeHookActiveXMgrActiveXMgr.cpp
lea ecx, [ebp - 0x494]
call fcn.00403d10
mov dword [ebp - 0x4b0], eax
mov ecx, dword [ebp - 0x4b0]
mov dword [ebp - 0x4b4], ecx
mov dword [ebp - 4], 2
mov edx, dword [ebp + 8]
push edx
push 0x617440
mov eax, dword [ebp - 0x474]
push eax
push 0x61748c
mov ecx, dword [ebp - 0x4b4]
call fcn.00404340
push eax
call fcn.00408230
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.00408230
add esp, 8
push eax
call fcn.00408230
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x494]
call fcn.004042e0
mov ecx, dword [ebp - 0x464]
mov dword [ebp - 0x498], ecx
mov edx, dword [ebp - 0x498]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
xor al, al
jmp 0x41d7c1
mov byte [ebp - 0x5c], 0
push 0x40
push 0
lea eax, [ebp - 0x5b]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x460]
push edx
mov eax, dword [ebp - 0x464]
push eax
call fcn.00452e90
add esp, 0xc
push 0x10
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x464]
mov dword [ebp - 0x49c], eax
mov ecx, dword [ebp - 0x49c]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 0x464], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005fff12
mov esp, ebp
pop ebp
ret