Function at 0x4034e0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x40d2b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov eax, dword [esp + 0xb0]
push ebx
push ebp
xor ebx, ebx
mov ebp, ecx
push esi
mov esi, dword [esp + 0xa8]
cmp eax, ebx
push edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ebx
jne 0x403528
cmp esi, ebx
jne 0x403528
xor al, al
jmp 0x403833
lea ecx, [esp + 0x48]
call fcn.00406830
mov edi, dword [esp + 0xa8]
lea eax, [esp + 0x48]
push edi
push eax
mov ecx, ebp
mov dword [esp + 0xa8], ebx
call fcn.00402860
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0xb4]
mov byte [esp + 0xa0], 1
test eax, eax
jne 0x40358a
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00406e10
mov ebx, 1
mov dword [esp + 0x14], ebx
mov eax, dword [eax]
mov byte [esp + 0xa0], 2
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov esi, 4
test bl, 1
mov dword [esp + 0xa0], esi
je 0x4035b5
and ebx, 0xfffffffe
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], ebx
call fcn.0040c754
push 0x411278
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
mov al, byte [esp + 0xb0]
test al, al
je 0x4035d4
lea eax, [esp + 0x18]
jmp 0x4035f5
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00403140
add esp, 8
or ebx, 2
mov dword [esp + 0x14], ebx
mov byte [esp + 0xa0], 5
push eax
lea ecx, [esp + 0x38]
push 0x411278
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xa4], 6
call fcn.0040c75a
lea ecx, [esp + 0x34]
mov byte [esp + 0xa0], 5
call fcn.0040c754
test bl, 2
mov dword [esp + 0xa0], esi
je 0x403640
lea ecx, [esp + 0x1c]
call fcn.0040c754
push edi
mov ecx, ebp
call fcn.00403490
test al, al
je 0x4036a6
mov edx, dword [esp + 0x10]
push edx
call fcn.00403210
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
add esp, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 1
call fcn.0040c754
lea ecx, [esp + 0x10]
mov byte [esp + 0xa0], 0
call fcn.0040c754
lea ecx, [esp + 0x48]
mov dword [esp + 0xa0], 0xffffffff
call fcn.004068b0
mov al, 1
jmp 0x403833
push edi
mov ecx, ebp
call fcn.00402a40
test al, al
jne 0x4036ef
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 1
call fcn.0040c754
lea ecx, [esp + 0x10]
mov byte [esp + 0xa0], 0
call fcn.0040c754
lea ecx, [esp + 0x48]
mov dword [esp + 0xa0], 0xffffffff
call fcn.004068b0
xor al, al
jmp 0x403833
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00403020
mov eax, dword [eax]
mov byte [esp + 0xa8], 7
push eax
call fcn.00403210
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa0], 4
call fcn.0040c754
mov ecx, dword [esp + 0x10]
push 0x1021
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFile::CFile
mov ebx, dword [esp + 0xb8]
xor edi, edi
cmp ebx, edi
mov byte [esp + 0xa0], 8
je 0x403759
lea ecx, [esp + 0x48]
call fcn.00406dd0
mov dword [esp + 0x14], eax
jmp 0x40375d
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0xc0]
push 0
push edx
lea ecx, [esp + 0x30]
call fcn.00404d20
mov eax, dword [esp + 0x30]
mov byte [esp + 0xa0], 9
push eax
mov eax, dword [esp + 0x30]
push eax
mov ecx, ebp
call fcn.00402c10
mov esi, eax
test esi, esi
je 0x4037bf
mov ecx, dword [esp + 0x2c]
push esi
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFile::Write
add edi, esi
test ebx, ebx
je 0x4037bf
mov edx, dword [esp + 0xbc]
mov eax, dword [esp + 0x14]
push edx
push edi
push eax
call ebx
mov ebp, dword [esp + 0x2c]
add esp, 0xc
test al, al
je 0x4037c7
mov eax, dword [esp + 0x30]
cmp esi, eax
je 0x40377c
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
call fcn.00402e50
cmp eax, 1
lea ecx, [esp + 0x28]
sete bl
mov byte [esp + 0xa0], 8
call fcn.00404d50
lea ecx, [esp + 0x38]
mov byte [esp + 0xa0], 4
call fcn.0040c994
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 1
call fcn.0040c754
lea ecx, [esp + 0x10]
mov byte [esp + 0xa0], 0
call fcn.0040c754
lea ecx, [esp + 0x48]
mov dword [esp + 0xa0], 0xffffffff
call fcn.004068b0
mov al, bl
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x94
ret 0x1c