Function at 0x4037e0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447566
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
call sub.MFC42u.DLL_CString::CString_2
lea eax, [ebp - 0x14]
xor ebx, ebx
push str.IsGUI....
push eax
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [ebp - 0x14]
push ebx
push 1
push ecx
call fcn.004012d5
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x356]
mov word [ebp - 0x358], bx
rep stosd dword es:[edi], eax
add esp, 0x14
lea edx, [ebp - 0x358]
stosw word es:[edi], ax
push 0x104
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffff
push 0x83
lea eax, [ebp - 0x358]
push str.RT_SECONDPACK
push eax
lea ecx, [ebp - 0x9c]
call fcn.00433a40
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00419ed2
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x1c], ebx
call fcn.00434740
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
push edi
push edx
lea ecx, [ebp - 0x4c]
call sub.MFC42u.DLL_CByteArray::SetSize
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x9c]
push eax
call fcn.00434770
test eax, eax
jne 0x403a9c
lea ecx, [ebp - 0x14]
push str._tLoad_Second_Resource_failed_
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [ebp - 0x14]
push ebx
push 1
push edx
call fcn.004012d5
add esp, 0x14
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.004016ae
push str.AgentSetup.dat
lea ecx, [ebp - 0x18]
push eax
push ecx
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_operator_1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x5c]
call fcn.00419ec6
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CException::CException
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_CString::CString_2
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
mov dword [ebp - 0x34], 0x44c3f8
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], edi
call sub.MFC42u.DLL_CString::operator
push str._tLoad_AgentSetup.dat..._r_n
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call sub.MFC42u.DLL_CString::operator
mov edx, dword [ebp - 0x14]
push ebx
push 2
push edx
call fcn.004012d5
mov eax, dword [ebp - 0x18]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
jne 0x403992
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push ecx
push str._t_File___s__not_exist__r_n
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [ebp - 0x14]
push ebx
push 1
push eax
jmp 0x403a62
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
push ecx
push ebx
push edx
lea ecx, [ebp - 0x5c]
call sub.MFC42u.DLL_CFile::Open
test eax, eax
jne 0x4039d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x14]
push eax
push ecx
push str.Open_File___s__failed__ErrCause:_d__LastError:_d_r_n
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [ebp - 0x14]
push ebx
push 1
push eax
call fcn.004012d5
add esp, 0x20
lea ecx, [ebp - 0x5c]
call sub.MFC42u.DLL_CFile::GetLength
push edi
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
call sub.MFC42u.DLL_CByteArray::SetSize
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x48]
push ecx
push edx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xa
call sub.MFC42u.DLL_CFile::Read
lea ecx, [ebp - 0x5c]
call sub.MFC42u.DLL_CFile::Close
jmp 0x403a3b
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 9
cmp eax, ebx
jne 0x403a6a
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push str.Read_File___s__Length_0_r_n
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [ebp - 0x14]
push ebx
push 1
push edx
call fcn.004012d5
add esp, 0x18
mov dword [ebp - 0x34], 0x44c3f8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xc
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x34], 0x44c3e0
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CFile::CFile
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x403b99
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + eax - 4]
cmp edx, 4
je 0x403ac7
mov edx, dword [ecx + eax - 8]
mov esi, 0xfffffff8
sub esi, edx
add eax, esi
cmp dword [ecx + eax - 4], 4
jne 0x403ab3
mov esi, dword [ecx + eax - 8]
mov edx, 0xfffffff8
sub edx, esi
add eax, edx
cmp esi, 0x100000
ja 0x403b99
cmp esi, 8
jb 0x403b99
lea edi, [ecx + eax]
lea eax, [esi - 2]
push eax
push edi
push str.ocularv3
lea ecx, [ebp - 0x150]
call fcn.004331d0
shr esi, 1
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.004206e0
mov bl, 0xd
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], bl
call fcn.00430610
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0xd0]
push eax
mov byte [ebp - 4], 0xe
call fcn.00431330
push 0x452bdc
lea ecx, [ebp - 0xd0]
call fcn.00431670
lea ecx, [ebp - 0xd0]
mov esi, eax
mov byte [ebp - 4], bl
call fcn.004306a0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00420c50
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CByteArray::CByteArray
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0
call fcn.00433bf0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CByteArray::CByteArray
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0
call fcn.00433bf0
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret