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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44852c
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.00424883
push 2
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], ebx
call fcn.00424908
push esi
lea ecx, [ebp - 0x258]
call fcn.0042491a
mov eax, dword [edi + 8]
push eax
lea ecx, [ebp - 0x258]
call fcn.00424908
mov eax, dword [edi + 4]
mov esi, dword [eax]
cmp eax, esi
je 0x41387d
lea esp, [esp]
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x258]
call fcn.0042491a
lea ecx, [esi + 0x28]
push ecx
lea ecx, [ebp - 0x258]
call fcn.0042497c
cmp byte [esi + 0x39], bl
jne 0x413878
mov eax, dword [esi + 8]
cmp byte [eax + 0x39], bl
jne 0x41385f
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x39], bl
jne 0x413878
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x39], bl
je 0x413854
jmp 0x413878
mov eax, dword [esi + 4]
cmp byte [eax + 0x39], bl
jne 0x413876
cmp esi, dword [eax + 8]
jne 0x413876
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x39], bl
je 0x413867
mov esi, eax
cmp dword [edi + 4], esi
jne 0x413820
mov edi, dword [ebp - 0x254]
mov edx, dword [ebp - 0x258]
mov ecx, edi
sub ecx, edx
lea esi, [ecx - 4]
and esi, 7
jbe 0x4138da
mov eax, ecx
sub eax, esi
add eax, 8
mov byte [ebp - 0x244], bl
cmp eax, ecx
jbe 0x4138c0
lea ecx, [ebp - 0x244]
push ecx
sub edx, edi
add edx, eax
push edx
push edi
lea ecx, [ebp - 0x258]
call fcn.00413d00
jmp 0x4138da
jae 0x4138da
lea esi, [edx + eax]
cmp esi, edi
je 0x4138da
push ebx
push edi
push esi
call fcn.0042bfd0
add esp, 0xc
mov dword [ebp - 0x254], esi
lea ecx, [ebp - 0x23c]
call fcn.00421dcc
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.00421b2c
lea ecx, [ebp - 0x280]
call fcn.00424883
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
call fcn.0042497c
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.00414ae0
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 2
call fcn.00424893
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x268]
cmp eax, ebx
je 0x413984
push eax
call fcn.0042b4be
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.00421be6
mov cx, word [ebp + 8]
mov word [ebp - 0x21c], cx
xor eax, eax
jmp 0x4139c0
movzx ecx, word [eax + str.:lockxls.data]
mov word [ebp + eax - 0x21a], cx
add eax, 2
cmp cx, bx
jne 0x4139c0
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.0042ce3d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x413a42
mov ecx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x254]
cmp ecx, eax
je 0x413a24
push esi
sub eax, ecx
push eax
push 1
push ecx
call fcn.0042cd05
add esp, 0x10
push esi
call fcn.0042cb3a
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.00421a83
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], 0xffffffff
call fcn.00424893
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.0042bea8
mov esp, ebp
pop ebp
ret 4