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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [ebp - 8], ecx
xor ecx, ecx
mov dword [ebp - 0x18], 0x8008000d
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
cmp eax, ecx
je 0x10bf961
cmp word [eax], cx
je 0x10bf961
mov eax, dword [ebp - 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [ebx + 0x14]
push esi
push edi
push 7
add eax, 0x78
pop ecx
lea esi, [ebx + 0x3e4]
lea edi, [ebp - 0x48]
push eax
mov dword [ebp - 4], eax
rep movsd dword es:[edi], dword [esi]
call fcn.010a094e
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10bf355
mov dword [ebp - 0x18], 0x8008000e
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bf959
test byte [eax + 0x1c], 1
je 0x10bf959
push dword [ebp - 4]
push 0x100b8c8
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
jmp 0x10bf959
mov edi, dword [ebp - 4]
push edi
mov esi, eax
push 0
push esi
call sub.msvcrt.dll_memset
lea eax, [edi + esi]
lea ecx, [esi + 0x78]
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp ecx, eax
ja 0x10bf378
cmp edi, 0x78
jae 0x10bf39c
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bf39c
test byte [eax + 0x1c], 1
je 0x10bf39c
push 0x100b8c8
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
mov edx, dword [ebp - 0x10]
push 0x1e
pop ecx
mov esi, ebx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 0x78]
mov dword [ebp - 0xc], 0x78
test esi, esi
je 0x10bf92c
cmp esi, edx
jl 0x10bf92c
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x3e4]
lea edi, [eax + esi]
cmp edi, dword [ebp - 0x14]
ja 0x10bf92c
cmp eax, dword [ebp - 4]
ja 0x10bf92c
cmp dword [ebp - 0x48], 0
jbe 0x10bf405
and dword [esi], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x3e4]
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x24], esi
add esi, eax
mov dword [ebp - 0xc], 0x80
test esi, esi
je 0x10bf911
cmp esi, edx
jl 0x10bf911
mov eax, dword [ecx]
mov eax, dword [eax + 0x3fc]
lea edi, [eax + esi]
cmp edi, dword [ebp - 0x14]
ja 0x10bf911
cmp eax, dword [ebp - 4]
ja 0x10bf911
cmp dword [ebp - 0x30], 0
jbe 0x10bf455
mov dword [esi], 6
mov eax, dword [ecx]
mov eax, dword [eax + 0x3fc]
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x1c], esi
add esi, eax
add dword [ebp - 0xc], 8
test esi, esi
je 0x10bf8f6
cmp esi, edx
jl 0x10bf8f6
mov eax, dword [ecx]
mov eax, dword [eax + 0x3f0]
lea edx, [eax + esi]
cmp edx, dword [ebp - 0x14]
ja 0x10bf8f6
cmp eax, dword [ebp - 4]
ja 0x10bf8f6
cmp dword [ebp - 0x3c], 0
jbe 0x10bf4a5
mov dword [esi], 3
mov eax, dword [ecx]
mov eax, dword [eax + 0x3f0]
mov dword [esi + 4], eax
add esi, 8
mov dword [ebp - 0x20], esi
add esi, eax
add dword [ebp - 0xc], 8
mov dword [ebp - 0x28], 0x98
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x28]
push dword [eax + ecx]
mov ecx, ebx
call fcn.010bec28
mov ecx, ebx
jmp 0x10bf639
mov ecx, dword [edi]
lea eax, [ebp + ecx*4 - 0x48]
mov ebx, dword [eax]
mov dword [ebp - 0x2c], eax
test ebx, ebx
jne 0x10bf508
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bf62b
test byte [eax + 0x1c], 2
je 0x10bf62b
push dword [edi + 4]
push 0x100b8c8
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
jmp 0x10bf62b
mov eax, ecx
sub eax, 0
je 0x10bf5dd
sub eax, 3
je 0x10bf5a0
dec eax
dec eax
je 0x10bf568
dec eax
jne 0x10bf6ad
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10bf6d4
cmp eax, dword [ebp - 0x10]
jl 0x10bf6d4
mov ecx, dword [ebp - 0x30]
add eax, ecx
cmp eax, dword [ebp - 0x14]
ja 0x10bf6d4
cmp ecx, dword [ebp - 4]
ja 0x10bf6d4
push ecx
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
push edi
call fcn.010bed49
add dword [ebp - 0x1c], 0x10
jmp 0x10bf619
test esi, esi
je 0x10bf6fa
cmp esi, dword [ebp - 0x10]
jl 0x10bf6fa
mov eax, dword [ebp - 0x34]
lea ecx, [eax + esi]
cmp ecx, dword [ebp - 0x14]
ja 0x10bf6fa
cmp eax, dword [ebp - 4]
ja 0x10bf6fa
mov ecx, dword [ebp - 8]
push eax
push esi
push edi
call fcn.010bef16
add esi, eax
jmp 0x10bf619
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10bf720
cmp eax, dword [ebp - 0x10]
jl 0x10bf720
mov ecx, dword [ebp - 0x3c]
add eax, ecx
cmp eax, dword [ebp - 0x14]
ja 0x10bf720
cmp ecx, dword [ebp - 4]
ja 0x10bf720
push ecx
push dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
push edi
call fcn.010bedec
add dword [ebp - 0x20], eax
jmp 0x10bf619
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10bf77a
cmp eax, dword [ebp - 0x10]
jl 0x10bf77a
mov ecx, dword [ebp - 0x48]
add eax, ecx
cmp eax, dword [ebp - 0x14]
ja 0x10bf77a
cmp ecx, dword [ebp - 4]
ja 0x10bf77a
push ecx
push dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
push edi
call fcn.010bec71
add dword [ebp - 0x24], 0xc
test eax, eax
je 0x10bf746
mov ecx, dword [ebp - 0x2c]
sub ebx, eax
add dword [ebp - 0xc], eax
mov dword [ecx], ebx
push dword [edi + 8]
mov ecx, dword [ebp - 8]
call fcn.010bec28
mov ecx, dword [ebp - 8]
push 0x10
mov edi, eax
push edi
call fcn.010bebf5
test eax, eax
jne 0x10bf4c5
add dword [ebp - 0x28], 4
cmp dword [ebp - 0x28], 0x3e4
jl 0x10bf4ac
mov edi, dword [ebp - 4]
cmp dword [ebp - 0xc], edi
jne 0x10bf8cc
mov esi, dword [ebp - 0x10]
push edi
push esi
call fcn.010b5b18
mov dword [esi + 0xc], eax
mov eax, dword [0x10ed030]
mov ebx, 0x10ed030
cmp eax, ebx
je 0x10bf7a0
test byte [eax + 0x1c], 4
je 0x10bf7a0
push edi
push dword [ebp + 8]
mov edi, 0x100b8c8
push edi
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104adee
jmp 0x10bf7a5
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bf950
test byte [eax + 0x1c], 1
je 0x10bf950
push ecx
push 0x100b8c8
push 0x16
jmp 0x10bf76a
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bf950
test byte [eax + 0x1c], 1
je 0x10bf950
push 0x100b8c8
push 0x13
jmp 0x10bf945
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bf950
test byte [eax + 0x1c], 1
je 0x10bf950
push 0x100b8c8
push 0x15
jmp 0x10bf945
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bf950
test byte [eax + 0x1c], 1
je 0x10bf950
push 0x100b8c8
push 0x14
jmp 0x10bf945
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bf950
test byte [eax + 0x1c], 1
je 0x10bf950
push dword [edi + 4]
push 0x100b8c8
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
jmp 0x10bf950
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bf950
test byte [eax + 0x1c], 1
je 0x10bf950
push 0x100b8c8
push 0x12
jmp 0x10bf945
mov edi, 0x100b8c8
xor esi, esi
push esi
push 0x80
push 2
push 1
call fcn.010bbf68
push eax
push esi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x10bf88e
push 0x2080
push dword [ebp + 8]
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10bf804
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x10bf804
test byte [eax + 0x1c], 2
je 0x10bf804
push edi
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
push esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10bf847
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 4]
je 0x10bf87d
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x10bf880
test byte [eax + 0x1c], 1
je 0x10bf880
push ecx
push dword [ebp - 4]
push edi
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102cde9
jmp 0x10bf880
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x10bf86d
test byte [eax + 0x1c], 1
je 0x10bf86d
push esi
push edi
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
test esi, esi
jle 0x10bf87d
and esi, 0x1000ffff
or esi, 0x80080000
mov dword [ebp - 0x18], esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10bf950
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x10bf8b4
test byte [eax + 0x1c], 1
je 0x10bf8b4
push esi
push edi
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027ecb
test esi, esi
jle 0x10bf8c4
and esi, 0x1000ffff
or esi, 0x80080000
mov dword [ebp - 0x18], esi
jmp 0x10bf950
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bf950
test byte [eax + 0x1c], 1
je 0x10bf950
push dword [ebp - 0xc]
push edi
push 0x100b8c8
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102cde9
jmp 0x10bf950
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bf950
test byte [eax + 0x1c], 1
je 0x10bf950
push 0x100b8c8
push 0x10
jmp 0x10bf945
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bf950
test byte [eax + 0x1c], 1
je 0x10bf950
push 0x100b8c8
push 0xf
jmp 0x10bf945
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bf950
test byte [eax + 0x1c], 1
je 0x10bf950
push 0x100b8c8
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
push dword [ebp - 0x10]
call fcn.010a093d
pop ecx
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
jmp 0x10bf98a
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bf985
test byte [eax + 0x1c], 1
je 0x10bf985
push 0x100b8c8
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
mov eax, 0x80080057
leave
ret 4