Function at 0x413760
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4483dc
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x45c2c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x258]
mov esi, edx
mov byte [ebp - 0x23d], bl
call fcn.00424416
push 2
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], ebx
call fcn.0042449b
push esi
lea ecx, [ebp - 0x258]
call fcn.004244ad
mov eax, dword [edi + 8]
push eax
lea ecx, [ebp - 0x258]
call fcn.0042449b
mov eax, dword [edi + 4]
mov esi, dword [eax]
cmp eax, esi
je 0x41383d
lea esp, [esp]
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x258]
call fcn.004244ad
lea ecx, [esi + 0x28]
push ecx
lea ecx, [ebp - 0x258]
call fcn.0042450f
cmp byte [esi + 0x39], bl
jne 0x413838
mov eax, dword [esi + 8]
cmp byte [eax + 0x39], bl
jne 0x41381f
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x39], bl
jne 0x413838
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x39], bl
je 0x413814
jmp 0x413838
mov eax, dword [esi + 4]
cmp byte [eax + 0x39], bl
jne 0x413836
cmp esi, dword [eax + 8]
jne 0x413836
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x39], bl
je 0x413827
mov esi, eax
cmp dword [edi + 4], esi
jne 0x4137e0
mov edi, dword [ebp - 0x254]
mov edx, dword [ebp - 0x258]
mov ecx, edi
sub ecx, edx
lea esi, [ecx - 4]
and esi, 7
jbe 0x41389a
mov eax, ecx
sub eax, esi
add eax, 8
mov byte [ebp - 0x244], bl
cmp eax, ecx
jbe 0x413880
lea ecx, [ebp - 0x244]
push ecx
sub edx, edi
add edx, eax
push edx
push edi
lea ecx, [ebp - 0x258]
call fcn.00413d00
jmp 0x41389a
jae 0x41389a
lea esi, [edx + eax]
cmp esi, edi
je 0x41389a
push ebx
push edi
push esi
call fcn.0042bee0
add esp, 0xc
mov dword [ebp - 0x254], esi
lea ecx, [ebp - 0x23c]
call fcn.00421cd4
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x260], ebx
push ebx
push ebx
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 2
call fcn.00421a34
lea ecx, [ebp - 0x280]
call fcn.00424416
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
call fcn.0042450f
mov edx, dword [ebp - 0x26c]
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x280]
push edx
mov edx, dword [ebp - 0x258]
push eax
push ecx
push edx
lea ecx, [ebp - 0x258]
call fcn.00414aa0
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 2
call fcn.00424426
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x268]
cmp eax, ebx
je 0x413944
push eax
call fcn.0042b3ce
add esp, 4
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x260], ebx
call fcn.00421aee
mov cx, word [ebp + 8]
mov word [ebp - 0x21c], cx
xor eax, eax
jmp 0x413980
movzx ecx, word [eax + str.:lockxls.data]
mov word [ebp + eax - 0x21a], cx
add eax, 2
cmp cx, bx
jne 0x413980
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
lea edx, [ebp - 0x21c]
push edx
call edi
lea eax, [ebp - 0x21c]
push 0x454b38
push eax
call fcn.0042cd4d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x413a02
mov ecx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x254]
cmp ecx, eax
je 0x4139e4
push esi
sub eax, ecx
push eax
push 1
push ecx
call fcn.0042cc15
add esp, 0x10
push esi
call fcn.0042ca4a
add esp, 4
push 0x82
lea ecx, [ebp - 0x21c]
push ecx
call edi
mov byte [ebp - 0x23d], 1
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.0042198b
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], 0xffffffff
call fcn.00424426
mov al, byte [ebp - 0x23d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042bdb8
mov esp, ebp
pop ebp
ret 4