Function at 0x10bf511
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 0x10bfbb6
cmp word [eax], cx
je 0x10bfbb6
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.010a0a62
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10bf5aa
mov dword [ebp - 0x18], 0x8008000e
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bfbae
test byte [eax + 0x1c], 1
je 0x10bfbae
push dword [ebp - 4]
push 0x100b8c8
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
jmp 0x10bfbae
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 0x10bf5cd
cmp edi, 0x78
jae 0x10bf5f1
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bf5f1
test byte [eax + 0x1c], 1
je 0x10bf5f1
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 0x10bfb81
cmp esi, edx
jl 0x10bfb81
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x3e4]
lea edi, [eax + esi]
cmp edi, dword [ebp - 0x14]
ja 0x10bfb81
cmp eax, dword [ebp - 4]
ja 0x10bfb81
cmp dword [ebp - 0x48], 0
jbe 0x10bf65a
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 0x10bfb66
cmp esi, edx
jl 0x10bfb66
mov eax, dword [ecx]
mov eax, dword [eax + 0x3fc]
lea edi, [eax + esi]
cmp edi, dword [ebp - 0x14]
ja 0x10bfb66
cmp eax, dword [ebp - 4]
ja 0x10bfb66
cmp dword [ebp - 0x30], 0
jbe 0x10bf6aa
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 0x10bfb4b
cmp esi, edx
jl 0x10bfb4b
mov eax, dword [ecx]
mov eax, dword [eax + 0x3f0]
lea edx, [eax + esi]
cmp edx, dword [ebp - 0x14]
ja 0x10bfb4b
cmp eax, dword [ebp - 4]
ja 0x10bfb4b
cmp dword [ebp - 0x3c], 0
jbe 0x10bf6fa
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.010bee4a
mov ecx, ebx
jmp 0x10bf88e
mov ecx, dword [edi]
lea eax, [ebp + ecx*4 - 0x48]
mov ebx, dword [eax]
mov dword [ebp - 0x2c], eax
test ebx, ebx
jne 0x10bf75d
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bf880
test byte [eax + 0x1c], 2
je 0x10bf880
push dword [edi + 4]
push 0x100b8c8
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
jmp 0x10bf880
mov eax, ecx
sub eax, 0
je 0x10bf832
sub eax, 3
je 0x10bf7f5
dec eax
dec eax
je 0x10bf7bd
dec eax
jne 0x10bf902
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10bf929
cmp eax, dword [ebp - 0x10]
jl 0x10bf929
mov ecx, dword [ebp - 0x30]
add eax, ecx
cmp eax, dword [ebp - 0x14]
ja 0x10bf929
cmp ecx, dword [ebp - 4]
ja 0x10bf929
push ecx
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
push edi
call fcn.010bef9e
add dword [ebp - 0x1c], 0x10
jmp 0x10bf86e
test esi, esi
je 0x10bf94f
cmp esi, dword [ebp - 0x10]
jl 0x10bf94f
mov eax, dword [ebp - 0x34]
lea ecx, [eax + esi]
cmp ecx, dword [ebp - 0x14]
ja 0x10bf94f
cmp eax, dword [ebp - 4]
ja 0x10bf94f
mov ecx, dword [ebp - 8]
push eax
push esi
push edi
call fcn.010bf16b
add esi, eax
jmp 0x10bf86e
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10bf975
cmp eax, dword [ebp - 0x10]
jl 0x10bf975
mov ecx, dword [ebp - 0x3c]
add eax, ecx
cmp eax, dword [ebp - 0x14]
ja 0x10bf975
cmp ecx, dword [ebp - 4]
ja 0x10bf975
push ecx
push dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
push edi
call fcn.010bf041
add dword [ebp - 0x20], eax
jmp 0x10bf86e
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10bf9cf
cmp eax, dword [ebp - 0x10]
jl 0x10bf9cf
mov ecx, dword [ebp - 0x48]
add eax, ecx
cmp eax, dword [ebp - 0x14]
ja 0x10bf9cf
cmp ecx, dword [ebp - 4]
ja 0x10bf9cf
push ecx
push dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
push edi
call fcn.010beec6
add dword [ebp - 0x24], 0xc
test eax, eax
je 0x10bf99b
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.010bee4a
mov ecx, dword [ebp - 8]
push 0x10
mov edi, eax
push edi
call fcn.010bee93
test eax, eax
jne 0x10bf71a
add dword [ebp - 0x28], 4
cmp dword [ebp - 0x28], 0x3e4
jl 0x10bf701
mov edi, dword [ebp - 4]
cmp dword [ebp - 0xc], edi
jne 0x10bfb21
mov esi, dword [ebp - 0x10]
push edi
push esi
call fcn.010b5cde
mov dword [esi + 0xc], eax
mov eax, dword [0x10ed030]
mov ebx, 0x10ed030
cmp eax, ebx
je 0x10bf9f5
test byte [eax + 0x1c], 4
je 0x10bf9f5
push edi
push dword [ebp + 8]
mov edi, 0x100b8c8
push edi
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01059d60
jmp 0x10bf9fa
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bfba5
test byte [eax + 0x1c], 1
je 0x10bfba5
push ecx
push 0x100b8c8
push 0x16
jmp 0x10bf9bf
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bfba5
test byte [eax + 0x1c], 1
je 0x10bfba5
push 0x100b8c8
push 0x13
jmp 0x10bfb9a
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bfba5
test byte [eax + 0x1c], 1
je 0x10bfba5
push 0x100b8c8
push 0x15
jmp 0x10bfb9a
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bfba5
test byte [eax + 0x1c], 1
je 0x10bfba5
push 0x100b8c8
push 0x14
jmp 0x10bfb9a
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bfba5
test byte [eax + 0x1c], 1
je 0x10bfba5
push dword [edi + 4]
push 0x100b8c8
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
jmp 0x10bfba5
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bfba5
test byte [eax + 0x1c], 1
je 0x10bfba5
push 0x100b8c8
push 0x12
jmp 0x10bfb9a
mov edi, 0x100b8c8
xor esi, esi
push esi
push 0x80
push 2
push 1
call fcn.010bc1bc
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 0x10bfae3
push 0x2080
push dword [ebp + 8]
mov dword [ebp - 0x28], esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10bfa59
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x10bfa59
test byte [eax + 0x1c], 2
je 0x10bfa59
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 0x10bfa9c
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 4]
je 0x10bfad2
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x10bfad5
test byte [eax + 0x1c], 1
je 0x10bfad5
push ecx
push dword [ebp - 4]
push edi
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102cb22
jmp 0x10bfad5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x10bfac2
test byte [eax + 0x1c], 1
je 0x10bfac2
push esi
push edi
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
test esi, esi
jle 0x10bfad2
and esi, 0x1000ffff
or esi, 0x80080000
mov dword [ebp - 0x18], esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10bfba5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x10ed030]
cmp eax, ebx
je 0x10bfb09
test byte [eax + 0x1c], 1
je 0x10bfb09
push esi
push edi
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010294b2
test esi, esi
jle 0x10bfb19
and esi, 0x1000ffff
or esi, 0x80080000
mov dword [ebp - 0x18], esi
jmp 0x10bfba5
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bfba5
test byte [eax + 0x1c], 1
je 0x10bfba5
push dword [ebp - 0xc]
push edi
push 0x100b8c8
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102cb22
jmp 0x10bfba5
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bfba5
test byte [eax + 0x1c], 1
je 0x10bfba5
push 0x100b8c8
push 0x10
jmp 0x10bfb9a
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bfba5
test byte [eax + 0x1c], 1
je 0x10bfba5
push 0x100b8c8
push 0xf
jmp 0x10bfb9a
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bfba5
test byte [eax + 0x1c], 1
je 0x10bfba5
push 0x100b8c8
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
push dword [ebp - 0x10]
call fcn.010a0a51
pop ecx
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
jmp 0x10bfbdf
mov eax, dword [0x10ed030]
cmp eax, 0x10ed030
je 0x10bfbda
test byte [eax + 0x1c], 1
je 0x10bfbda
push 0x100b8c8
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01027e15
mov eax, 0x80080057
leave
ret 4