Function at 0x41d170
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push ebx
push esi
push edi
mov edi, ecx
movlpd qword [ebp - 0x30], xmm0
lea ecx, [ebp - 0x30]
movlpd qword [ebp - 0x28], xmm0
mov ebx, edx
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x10], 0x447ba4
mov dword [ebp - 0xc], 0x447b94
mov dword [ebp - 8], 0x447b88
mov dword [ebp - 4], 0x447b7c
call fcn.004227f0
mov esi, dword [ebp + 8]
lea edx, [esi*2 + 2]
cmp edx, dword [ebp - 0x1c]
jbe 0x41d23e
mov ecx, dword [0x4478b4]
lea esi, [ebp - 0x20]
push esi
push edx
mov eax, dword [ecx]
add eax, 0x4478b4
push eax
mov eax, dword [ecx + 4]
call eax
mov esi, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne 0x41d23e
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41d2b6
mov edx, dword [esi + 4]
test edx, edx
je 0x41d228
mov ecx, dword [edx]
mov eax, dword [ecx]
add eax, edx
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 4
mov dword [esi], 0x1d
xor eax, eax
mov dword [esi + 4], 0x4479a8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20]
mov edx, ebx
mov ecx, esi
call fcn.00419750
add esp, 4
xor ecx, ecx
mov word [eax], cx
push ecx
push 0x2000
push 2
push ecx
push ecx
push 0xc0000000
push dword [ebp - 0x20]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x24], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41d2bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x41d2b6
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41d2b6
mov edx, dword [esi + 4]
test edx, edx
je 0x41d2a6
mov ecx, dword [edx]
mov eax, dword [ecx]
add eax, edx
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 4
mov ecx, edi
mov dword [esi], 0x19
call fcn.0041b480
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0xc]
push 0x210
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x278]
push 0
push eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x5c], 0x4478b4
mov dword [ebp - 0x34], 0x447bd4
mov dword [ebp - 0x64], esi
call fcn.004266c0
add esp, 0xc
mov dword [ebp - 0x70], esi
lea eax, [ebp - 0x34]
xor edx, edx
mov dword [ebp - 0x278], eax
lea ecx, [ebp - 0x278]
mov eax, dword [edi + 0x20]
push edi
push 0
mov dword [ebp - 0x274], eax
call fcn.00423a90
add esp, 8
cmp eax, 1
je 0x41d339
lea ecx, [ebp - 0x64]
call fcn.00424600
test eax, eax
je 0x41d339
mov esi, 1
jmp 0x41d33b
xor esi, esi
mov edx, dword [ebp - 0x5c]
test edx, edx
je 0x41d357
mov ecx, dword [edx]
lea eax, [ebp - 0x58]
push eax
push 0
mov eax, dword [ecx]
add eax, edx
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 0xc
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x41d3b6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x24]
mov dword [ebp - 0x30], 0
test al, 0xf
je 0x41d39a
test al, 0x10
mov ecx, 0x2000
mov eax, 0x80
cmovne eax, ecx
cmp dword [ebp - 0x18], 0
push eax
push dword [ebp - 0x20]
je 0x41d394
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x41d39a
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41d3aa
mov eax, dword [ebp - 0x20]
mov byte [eax], 0
mov eax, dword [ebp - 0x1c]
cmp eax, 1
jbe 0x41d3b6
mov eax, dword [ebp - 0x20]
mov byte [eax + 1], 0
mov edx, dword [0x4478b4]
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, dword [edx]
add ecx, 0x4478b4
push ecx
mov ecx, dword [edx + 4]
call ecx
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret