Function at 0x4057c0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x40f815
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 0x405808
cmp esi, ebx
jne 0x405808
xor al, al
jmp 0x405b49
lea ecx, [esp + 0x4c]
call fcn.00406080
mov ebp, dword [esp + 0xac]
lea eax, [esp + 0x4c]
push ebp
push eax
mov ecx, edi
mov dword [esp + 0xac], ebx
call fcn.00404b50
push esi
lea ecx, [esp + 0x14]
call fcn.0040e972
mov eax, dword [esp + 0xb8]
mov byte [esp + 0xa4], 1
test eax, eax
jne 0x40586a
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x50]
call fcn.004066a0
mov ebx, 1
mov dword [esp + 0x18], ebx
mov eax, dword [eax]
mov byte [esp + 0xa4], 2
push eax
lea ecx, [esp + 0x18]
call fcn.0040e972
mov esi, 4
test bl, 1
mov dword [esp + 0xa4], esi
je 0x405895
and ebx, 0xfffffffe
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString
push 0x415514
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
mov al, byte [esp + 0xb4]
test al, al
je 0x4058d1
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00405360
add esp, 8
or ebx, 2
mov dword [esp + 0x18], ebx
mov byte [esp + 0xa4], 5
jmp 0x4058f4
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.00405450
add esp, 8
or ebx, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0xa4], 6
push eax
lea eax, [esp + 0x28]
push 0x415514
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xa8], 7
call fcn.0040eb94
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 6
call sub.MFC42.DLL_CString::CString
test bl, 4
mov dword [esp + 0xa4], 5
je 0x40594a
and ebx, 0xfffffffb
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString
test bl, 2
mov dword [esp + 0xa4], esi
je 0x40595f
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
push ebp
mov ecx, edi
call fcn.00405770
test al, al
je 0x4059c5
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00405520
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 sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa4], 0xffffffff
call fcn.00406120
mov al, 1
jmp 0x405b49
push ebp
mov ecx, edi
call fcn.00404c60
test al, al
jne 0x405a0e
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa4], 0xffffffff
call fcn.00406120
xor al, al
jmp 0x405b49
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00405240
mov eax, dword [eax]
mov byte [esp + 0xac], 8
push eax
call fcn.00405520
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa4], 4
call sub.MFC42.DLL_CString::CString
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 0x405a74
lea ecx, [esp + 0x4c]
call fcn.00406650
mov ebp, eax
jmp 0x405a76
xor ebp, ebp
mov ecx, dword [esp + 0xc4]
xor edi, edi
push edi
push ecx
lea ecx, [esp + 0x30]
call fcn.004076d0
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.00404e30
mov esi, eax
test esi, esi
je 0x405ad3
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 0x405ad3
mov ecx, dword [esp + 0xc0]
push ecx
push edi
push ebp
call ebx
add esp, 0xc
test al, al
je 0x405adb
mov eax, dword [esp + 0x30]
cmp esi, eax
je 0x405a96
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push edx
call fcn.00405070
cmp eax, 1
lea ecx, [esp + 0x28]
sete bl
mov byte [esp + 0xa4], 9
call fcn.00407700
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa4], 4
call fcn.0040eb10
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa4], 0xffffffff
call fcn.00406120
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