Function at 0x409830
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x417e75
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 0x409878
cmp esi, ebx
jne 0x409878
xor al, al
jmp 0x409bb9
lea ecx, [esp + 0x4c]
call fcn.0040d0e0
mov ebp, dword [esp + 0xac]
lea eax, [esp + 0x4c]
push ebp
push eax
mov ecx, edi
mov dword [esp + 0xac], ebx
call fcn.004088e0
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0xb8]
mov byte [esp + 0xa4], 1
test eax, eax
jne 0x4098da
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x50]
call fcn.0040d9d0
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_3
mov esi, 4
test bl, 1
mov dword [esp + 0xa4], esi
je 0x409905
and ebx, 0xfffffffe
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString
push 0x41fb74
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight_1
mov al, byte [esp + 0xb4]
test al, al
je 0x409941
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.004093d0
add esp, 8
or ebx, 2
mov dword [esp + 0x18], ebx
mov byte [esp + 0xa4], 5
jmp 0x409964
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.004094c0
add esp, 8
or ebx, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0xa4], 6
push eax
lea eax, [esp + 0x28]
push 0x41fb74
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xa8], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 6
call sub.MFC42.DLL_CString::CString
test bl, 4
mov dword [esp + 0xa4], 5
je 0x4099ba
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 0x4099cf
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
push ebp
mov ecx, edi
call fcn.004097e0
test al, al
je 0x409a35
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00409590
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.0040d160
mov al, 1
jmp 0x409bb9
push ebp
mov ecx, edi
call fcn.004089f0
test al, al
jne 0x409a7e
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.0040d160
xor al, al
jmp 0x409bb9
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.004092b0
mov eax, dword [eax]
mov byte [esp + 0xac], 8
push eax
call fcn.00409590
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 0x409ae4
lea ecx, [esp + 0x4c]
call fcn.0040d960
mov ebp, eax
jmp 0x409ae6
xor ebp, ebp
mov ecx, dword [esp + 0xc4]
xor edi, edi
push edi
push ecx
lea ecx, [esp + 0x30]
call fcn.0040b550
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.00408bc0
mov esi, eax
test esi, esi
je 0x409b43
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 0x409b43
mov ecx, dword [esp + 0xc0]
push ecx
push edi
push ebp
call ebx
add esp, 0xc
test al, al
je 0x409b4b
mov eax, dword [esp + 0x30]
cmp esi, eax
je 0x409b06
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push edx
call fcn.00408e00
cmp eax, 1
lea ecx, [esp + 0x28]
sete bl
mov byte [esp + 0xa4], 9
call fcn.0040b580
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa4], 4
call fcn.0041668a
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.0040d160
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