Function at 0x404f30
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420ea2
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x42b730]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [0x42b990], 0
je 0x404f82
cmp dword [section..data], 1
jne 0x404f7b
push 0x4229dc
call fcn.004100f0
add esp, 4
xor eax, eax
jmp 0x4052ae
cmp dword [0x42b99c], 0
je 0x404f92
xor eax, eax
jmp 0x4052ae
lea ecx, [ebp - 0x24]
call sub.mfc90.dll_Ordinal_404
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
call sub.mfc90.dll_Ordinal_320
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [ebp - 4], 3
push 0x42b860
push 0x4229e4
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
lea ecx, [ebp - 0x44]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x38], eax
push 0x20
lea ecx, [ebp - 0x44]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x3001
lea ecx, [ebp - 0x44]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
lea ecx, [ebp - 0x24]
call sub.mfc90.dll_Ordinal_5520
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x405070
cmp dword [section..data], 1
jne 0x405070
push str.041110_8
call fcn.004100f0
add esp, 4
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00410430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call sub.mfc90.dll_Ordinal_663
mov eax, dword [ebp - 0x50]
jmp 0x4052ae
push 0x8040
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x3c], ecx
push 0
call fcn.004052c0
add esp, 4
push eax
call dword [sym.imp.MSVCR90.dll_srand]
add esp, 4
mov dword [ebp - 0x48], 0
jmp 0x4050ad
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 0x8000
jge 0x4050dd
cmp dword [ebp - 0x48], 0x200
jge 0x4050c7
mov eax, dword [ebp - 0x3c]
mov byte [eax], 0
jmp 0x4050d2
call dword [sym.imp.MSVCR90.dll_rand]
mov ecx, dword [ebp - 0x3c]
mov byte [ecx], al
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
jmp 0x4050a4
mov eax, dword [0x42b968]
mov ecx, dword [eax + 0x2df7]
mov dword [ebp - 0x30], ecx
mov edx, dword [0x42b968]
mov eax, dword [edx + 0x4f11]
mov dword [ebp - 0x34], eax
mov ecx, dword [0x42b968]
mov edx, dword [ecx + 0x2fe5]
mov dword [ebp - 0x40], edx
push 0xf
mov eax, dword [0x42b968]
add eax, 0x38a5
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x38a5
push ecx
call dword [sym.imp.MSVCR90.dll_memmove]
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
mov dword [edx + 0x4f11], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x40]
mov dword [ecx + 0x2fe5], edx
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x4b1f], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x33d7], 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
mov dword [edx + 0x2df7], eax
push str.AS_RDC
lea ecx, [ebp - 0x44]
call dword [sym.imp.mfc90.dll_Ordinal_820]
lea ecx, [ebp - 0x44]
call dword [sym.imp.mfc90.dll_Ordinal_3178]
push eax
lea ecx, [ebp - 0x44]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCR90.dll_memmove]
add esp, 0xc
push 0x8000
mov edx, dword [ebp - 0x14]
push edx
call fcn.00410460
add esp, 8
lea ecx, [ebp - 0x24]
call fcn.00410440
push 0x8000
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
call sub.mfc90.dll_Ordinal_6793
lea ecx, [ebp - 0x24]
call sub.mfc90.dll_Ordinal_1555
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov edx, dword [ebp - 0x38]
push edx
lea ecx, [ebp - 0x44]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [0x42b968]
mov dword [eax + 0x4b1f], 0
mov ecx, dword [0x42b968]
mov dword [ecx + 0x33d7], 0xffffffff
call fcn.004023b0
call fcn.00402950
call fcn.00402ef0
call fcn.00403490
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call dword [sym.imp.mfc90.dll_Ordinal_601]
jmp 0x405265
mov dword [ebp - 4], 1
jmp 0x40528e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00410430
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call sub.mfc90.dll_Ordinal_663
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret