Function at 0x413790
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 [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.00424500
push 2
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], ebx
call fcn.00424585
push esi
lea ecx, [ebp - 0x258]
call fcn.00424597
mov eax, dword [edi + 8]
push eax
lea ecx, [ebp - 0x258]
call fcn.00424585
mov eax, dword [edi + 4]
mov esi, dword [eax]
cmp eax, esi
je 0x41386d
lea esp, [esp]
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x258]
call fcn.00424597
lea ecx, [esi + 0x28]
push ecx
lea ecx, [ebp - 0x258]
call fcn.004245f9
cmp byte [esi + 0x39], bl
jne 0x413868
mov eax, dword [esi + 8]
cmp byte [eax + 0x39], bl
jne 0x41384f
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x39], bl
jne 0x413868
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x39], bl
je 0x413844
jmp 0x413868
mov eax, dword [esi + 4]
cmp byte [eax + 0x39], bl
jne 0x413866
cmp esi, dword [eax + 8]
jne 0x413866
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x39], bl
je 0x413857
mov esi, eax
cmp dword [edi + 4], esi
jne 0x413810
mov edi, dword [ebp - 0x254]
mov edx, dword [ebp - 0x258]
mov ecx, edi
sub ecx, edx
lea esi, [ecx - 4]
and esi, 7
jbe 0x4138ca
mov eax, ecx
sub eax, esi
add eax, 8
mov byte [ebp - 0x244], bl
cmp eax, ecx
jbe 0x4138b0
lea ecx, [ebp - 0x244]
push ecx
sub edx, edi
add edx, eax
push edx
push edi
lea ecx, [ebp - 0x258]
call fcn.00413d30
jmp 0x4138ca
jae 0x4138ca
lea esi, [edx + eax]
cmp esi, edi
je 0x4138ca
push ebx
push edi
push esi
call fcn.0042beb0
add esp, 0xc
mov dword [ebp - 0x254], esi
lea ecx, [ebp - 0x23c]
call fcn.00421c1f
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.0042197f
lea ecx, [ebp - 0x280]
call fcn.00424500
lea ecx, [ebp - 0x268]
push ecx
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
call fcn.004245f9
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.00424510
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x268]
cmp eax, ebx
je 0x413974
push eax
call fcn.0042b39e
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.00421a39
mov cx, word [ebp + 8]
mov word [ebp - 0x21c], cx
xor eax, eax
jmp 0x4139b0
movzx ecx, word [eax + str.:lockxls.data]
mov word [ebp + eax - 0x21a], cx
add eax, 2
cmp cx, bx
jne 0x4139b0
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
lea edx, [ebp - 0x21c]
push edx
call edi
lea eax, [ebp - 0x21c]
push 0x454e20
push eax
call fcn.0042cd1d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x413a32
mov ecx, dword [ebp - 0x258]
mov eax, dword [ebp - 0x254]
cmp ecx, eax
je 0x413a14
push esi
sub eax, ecx
push eax
push 1
push ecx
call fcn.0042cbe5
add esp, 0x10
push esi
call fcn.0042ca1a
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.004218d6
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], 0xffffffff
call fcn.00424510
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.0042bd88
mov esp, ebp
pop ebp
ret 4