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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44851c
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x45d320]
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.00424837
push 2
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], ebx
call fcn.004248bc
push esi
lea ecx, [ebp - 0x258]
call fcn.004248ce
mov eax, dword [edi + 8]
push eax
lea ecx, [ebp - 0x258]
call fcn.004248bc
mov eax, dword [edi + 4]
mov esi, dword [eax]
cmp eax, esi
je 0x41385d
lea esp, [esp]
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x258]
call fcn.004248ce
lea ecx, [esi + 0x28]
push ecx
lea ecx, [ebp - 0x258]
call fcn.00424930
cmp byte [esi + 0x39], bl
jne 0x413858
mov eax, dword [esi + 8]
cmp byte [eax + 0x39], bl
jne 0x41383f
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x39], bl
jne 0x413858
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x39], bl
je 0x413834
jmp 0x413858
mov eax, dword [esi + 4]
cmp byte [eax + 0x39], bl
jne 0x413856
cmp esi, dword [eax + 8]
jne 0x413856
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x39], bl
je 0x413847
mov esi, eax
cmp dword [edi + 4], esi
jne 0x413800
mov edi, dword [ebp - 0x254]
mov edx, dword [ebp - 0x258]
mov ecx, edi
sub ecx, edx
lea esi, [ecx - 4]
and esi, 7
jbe 0x4138ba
mov eax, ecx
sub eax, esi
add eax, 8
mov byte [ebp - 0x244], bl
cmp eax, ecx
jbe 0x4138a0
lea ecx, [ebp - 0x244]
push ecx
sub edx, edi
add edx, eax
push edx
push edi
lea ecx, [ebp - 0x258]
call fcn.00413d20
jmp 0x4138ba
jae 0x4138ba
lea esi, [edx + eax]
cmp esi, edi
je 0x4138ba
push ebx
push edi
push esi
call fcn.0042bfc0
add esp, 0xc
mov dword [ebp - 0x254], esi
lea ecx, [ebp - 0x23c]
call fcn.00421d22
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.00421a82
lea ecx, [ebp - 0x280]
call fcn.00424837
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
call fcn.00424930
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.00414ac0
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 2
call fcn.00424847
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x268]
cmp eax, ebx
je 0x413964
push eax
call fcn.0042b4ae
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.00421b3c
mov cx, word [ebp + 8]
mov word [ebp - 0x21c], cx
xor eax, eax
jmp 0x4139a0
movzx ecx, word [eax + str.:lockxls.data]
mov word [ebp + eax - 0x21a], cx
add eax, 2
cmp cx, bx
jne 0x4139a0
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
lea edx, [ebp - 0x21c]
push edx
call edi
lea eax, [ebp - 0x21c]
push 0x454e60
push eax
call fcn.0042ce2d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x413a22
mov ecx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x254]
cmp ecx, eax
je 0x413a04
push esi
sub eax, ecx
push eax
push 1
push ecx
call fcn.0042ccf5
add esp, 0x10
push esi
call fcn.0042cb2a
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.004219d9
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], 0xffffffff
call fcn.00424847
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.0042be98
mov esp, ebp
pop ebp
ret 4