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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44855c
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.004245e3
push 2
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], ebx
call fcn.00424668
push esi
lea ecx, [ebp - 0x258]
call fcn.0042467a
mov eax, dword [edi + 8]
push eax
lea ecx, [ebp - 0x258]
call fcn.00424668
mov eax, dword [edi + 4]
mov esi, dword [eax]
cmp eax, esi
je 0x4138bd
lea esp, [esp]
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x258]
call fcn.0042467a
lea ecx, [esi + 0x28]
push ecx
lea ecx, [ebp - 0x258]
call fcn.004246dc
cmp byte [esi + 0x39], bl
jne 0x4138b8
mov eax, dword [esi + 8]
cmp byte [eax + 0x39], bl
jne 0x41389f
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x39], bl
jne 0x4138b8
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x39], bl
je 0x413894
jmp 0x4138b8
mov eax, dword [esi + 4]
cmp byte [eax + 0x39], bl
jne 0x4138b6
cmp esi, dword [eax + 8]
jne 0x4138b6
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x39], bl
je 0x4138a7
mov esi, eax
cmp dword [edi + 4], esi
jne 0x413860
mov edi, dword [ebp - 0x254]
mov edx, dword [ebp - 0x258]
mov ecx, edi
sub ecx, edx
lea esi, [ecx - 4]
and esi, 7
jbe 0x41391a
mov eax, ecx
sub eax, esi
add eax, 8
mov byte [ebp - 0x244], bl
cmp eax, ecx
jbe 0x413900
lea ecx, [ebp - 0x244]
push ecx
sub edx, edi
add edx, eax
push edx
push edi
lea ecx, [ebp - 0x258]
call fcn.00413d40
jmp 0x41391a
jae 0x41391a
lea esi, [edx + eax]
cmp esi, edi
je 0x41391a
push ebx
push edi
push esi
call fcn.0042c000
add esp, 0xc
mov dword [ebp - 0x254], esi
lea ecx, [ebp - 0x23c]
call fcn.00421dff
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.00421b5f
lea ecx, [ebp - 0x280]
call fcn.004245e3
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
call fcn.004246dc
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.00414b20
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 2
call fcn.004245f3
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x268]
cmp eax, ebx
je 0x4139c4
push eax
call fcn.0042b4ee
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.00421c19
mov cx, word [ebp + 8]
mov word [ebp - 0x21c], cx
xor eax, eax
jmp 0x413a00
movzx ecx, word [eax + str.:lockxls.data]
mov word [ebp + eax - 0x21a], cx
add eax, 2
cmp cx, bx
jne 0x413a00
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
lea edx, [ebp - 0x21c]
push edx
call edi
lea eax, [ebp - 0x21c]
push 0x454e68
push eax
call fcn.0042ce6d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x413a82
mov ecx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x254]
cmp ecx, eax
je 0x413a64
push esi
sub eax, ecx
push eax
push 1
push ecx
call fcn.0042cd35
add esp, 0x10
push esi
call fcn.0042cb6a
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.00421ab6
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], 0xffffffff
call fcn.004245f3
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.0042bed8
mov esp, ebp
pop ebp
ret 4