Function at 0x403c60
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x40e1e5
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 0x403ca8
cmp esi, ebx
jne 0x403ca8
xor al, al
jmp 0x403fe9
lea ecx, [esp + 0x4c]
call fcn.00407510
mov ebp, dword [esp + 0xac]
lea eax, [esp + 0x4c]
push ebp
push eax
mov ecx, edi
mov dword [esp + 0xac], ebx
call fcn.00402d10
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xb8]
mov byte [esp + 0xa4], 1
test eax, eax
jne 0x403d0a
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x50]
call fcn.00407e00
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
mov esi, 4
test bl, 1
mov dword [esp + 0xa4], esi
je 0x403d35
and ebx, 0xfffffffe
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], ebx
call fcn.0040dad8
push 0x4121f8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
mov al, byte [esp + 0xb4]
test al, al
je 0x403d71
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00403800
add esp, 8
or ebx, 2
mov dword [esp + 0x18], ebx
mov byte [esp + 0xa4], 5
jmp 0x403d94
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.004038f0
add esp, 8
or ebx, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0xa4], 6
push eax
lea eax, [esp + 0x28]
push 0x4121f8
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xa8], 7
call fcn.0040db56
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 6
call fcn.0040dad8
test bl, 4
mov dword [esp + 0xa4], 5
je 0x403dea
and ebx, 0xfffffffb
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ebx
call fcn.0040dad8
test bl, 2
mov dword [esp + 0xa4], esi
je 0x403dff
lea ecx, [esp + 0x1c]
call fcn.0040dad8
push ebp
mov ecx, edi
call fcn.00403c10
test al, al
je 0x403e65
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004039c0
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.0040dad8
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 0
call fcn.0040dad8
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa4], 0xffffffff
call fcn.00407590
mov al, 1
jmp 0x403fe9
push ebp
mov ecx, edi
call fcn.00402e20
test al, al
jne 0x403eae
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 1
call fcn.0040dad8
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 0
call fcn.0040dad8
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa4], 0xffffffff
call fcn.00407590
xor al, al
jmp 0x403fe9
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.004036e0
mov eax, dword [eax]
mov byte [esp + 0xac], 8
push eax
call fcn.004039c0
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa4], 4
call fcn.0040dad8
mov eax, dword [esp + 0x10]
push 0x1021
push eax
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFile::CFile
mov ebx, dword [esp + 0xbc]
mov byte [esp + 0xa4], 9
test ebx, ebx
je 0x403f14
lea ecx, [esp + 0x4c]
call fcn.00407d90
mov ebp, eax
jmp 0x403f16
xor ebp, ebp
mov ecx, dword [esp + 0xc4]
xor edi, edi
push edi
push ecx
lea ecx, [esp + 0x30]
call fcn.00405980
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.00402ff0
mov esi, eax
test esi, esi
je 0x403f73
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 0x403f73
mov ecx, dword [esp + 0xc0]
push ecx
push edi
push ebp
call ebx
add esp, 0xc
test al, al
je 0x403f7b
mov eax, dword [esp + 0x30]
cmp esi, eax
je 0x403f36
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push edx
call fcn.00403230
cmp eax, 1
lea ecx, [esp + 0x28]
sete bl
mov byte [esp + 0xa4], 9
call fcn.004059b0
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa4], 4
call fcn.0040db44
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 1
call fcn.0040dad8
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], 0
call fcn.0040dad8
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa4], 0xffffffff
call fcn.00407590
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