Function at 0x404aa0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x40ea75
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov eax, dword [esp + 0xb4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xac]
push edi
xor ebx, ebx
mov edi, ecx
cmp eax, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], ebx
jne 0x404ae8
cmp esi, ebx
jne 0x404ae8
xor al, al
jmp 0x404e29
lea ecx, [esp + 0x4c]
call fcn.00407c80
mov ebp, dword [esp + 0xac]
lea eax, [esp + 0x4c]
push ebp
push eax
mov ecx, edi
mov dword [esp + 0xac], ebx
call fcn.00403e30
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0xb8]
mov byte [esp + 0xa4], 1
test eax, eax
jne 0x404b4a
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x50]
call fcn.00408280
mov ebx, 1
mov dword [esp + 0x18], ebx
mov eax, dword [eax]
mov byte [esp + 0xa4], 2
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov esi, 4
test bl, 1
mov dword [esp + 0xa4], esi
je 0x404b75
and ebx, 0xfffffffe
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], ebx
call fcn.0040dbf4
push 0x413178
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
mov al, byte [esp + 0xb4]
test al, al
je 0x404bb1
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00404640
add esp, 8
or ebx, 2
mov dword [esp + 0x18], ebx
mov byte [esp + 0xa4], 5
jmp 0x404bd4
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.00404730
add esp, 8
or ebx, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0xa4], 6
push eax
lea eax, [esp + 0x28]
push 0x413178
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xa8], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 6
call fcn.0040dbf4
test bl, 4
mov dword [esp + 0xa4], 5
je 0x404c2a
and ebx, 0xfffffffb
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ebx
call fcn.0040dbf4
test bl, 2
mov dword [esp + 0xa4], esi
je 0x404c3f
lea ecx, [esp + 0x1c]
call fcn.0040dbf4
push ebp
mov ecx, edi
call fcn.00404a50
test al, al
je 0x404ca5
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00404800
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x14]
add esp, 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 1
call fcn.0040dbf4
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 0
call fcn.0040dbf4
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa4], 0xffffffff
call fcn.00407d00
mov al, 1
jmp 0x404e29
push ebp
mov ecx, edi
call fcn.00403f40
test al, al
jne 0x404cee
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 1
call fcn.0040dbf4
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 0
call fcn.0040dbf4
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa4], 0xffffffff
call fcn.00407d00
xor al, al
jmp 0x404e29
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00404520
mov eax, dword [eax]
mov byte [esp + 0xac], 8
push eax
call fcn.00404800
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa4], 4
call fcn.0040dbf4
mov eax, dword [esp + 0x10]
push 0x1021
push eax
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFile::CFile_1
mov ebx, dword [esp + 0xbc]
mov byte [esp + 0xa4], 9
test ebx, ebx
je 0x404d54
lea ecx, [esp + 0x4c]
call fcn.00408230
mov ebp, eax
jmp 0x404d56
xor ebp, ebp
mov ecx, dword [esp + 0xc4]
xor edi, edi
push edi
push ecx
lea ecx, [esp + 0x30]
call fcn.004062b0
mov eax, dword [esp + 0x30]
mov byte [esp + 0xa4], 0xa
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push eax
push edx
call fcn.00404110
mov esi, eax
test esi, esi
je 0x404db3
mov eax, dword [esp + 0x2c]
push esi
push eax
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFile::Write
add edi, esi
test ebx, ebx
je 0x404db3
mov ecx, dword [esp + 0xc0]
push ecx
push edi
push ebp
call ebx
add esp, 0xc
test al, al
je 0x404dbb
mov eax, dword [esp + 0x30]
cmp esi, eax
je 0x404d76
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push edx
call fcn.00404350
cmp eax, 1
lea ecx, [esp + 0x28]
sete bl
mov byte [esp + 0xa4], 9
call fcn.004062e0
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa4], 4
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 1
call fcn.0040dbf4
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 0
call fcn.0040dbf4
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa4], 0xffffffff
call fcn.00407d00
mov al, bl
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret 0x1c