Function at 0x10b8abf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 0x274]
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x10], eax
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
xor edx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [edi], edx
mov dword [eax], 1
mov eax, dword [esi]
mov dword [ebp - 0x18], edx
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
test byte [ecx + 0x84], 0x10
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x20], ecx
je 0x10b8b2a
lea ecx, [ebp - 0x14]
push ecx
push 6
push edx
push dword [eax + 0x14]
call fcn.0107a960
test ax, ax
je 0x10b8b27
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x10b8b2a
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10b8b37
mov dword [ebp - 8], 0x10020dc
jmp 0x10b8b5e
mov ecx, dword [esi + 0x14]
mov cl, byte [ecx + 0x2a]
cmp cl, 1
jne 0x10b8b4d
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 8]
jmp 0x10b8b5b
cmp cl, 3
jne 0x10b8b5e
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
test ecx, ecx
je 0x10b8c19
cmp ecx, 0x42444d44
je 0x10b8b84
cmp ecx, 0x474c4f44
je 0x10b8b84
mov ax, 0xfeb1
jmp 0x10b8c12
mov ecx, dword [ebx]
test ecx, ecx
je 0x10b8b9c
cmp ecx, 0xffffffff
je 0x10b8b9c
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx], 0xffffffff
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
and dword [ebx + 0x238], 0
and dword [ebx + 0x23c], 0
mov dword [ebx + 8], ecx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x230], ecx
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x234], eax
mov eax, dword [edi]
add dword [ebx + 0x238], eax
mov eax, dword [ebx + 0x238]
adc dword [ebx + 0x23c], 0
cmp eax, dword [ebx + 0x230]
jne 0x10b8c0e
mov eax, dword [ebx + 0x23c]
cmp eax, dword [ebx + 0x234]
jne 0x10b8c0e
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10b8bf9
mov word [eax + 6], 1
mov eax, dword [ebx]
test eax, eax
je 0x10b8c0e
cmp eax, 0xffffffff
je 0x10b8c0e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx], 0xffffffff
mov ax, word [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x14
mov eax, dword [ebx + 0x238]
or eax, dword [ebx + 0x23c]
mov edx, dword [ebp + 0xc]
jne 0x10b8eae
mov ecx, dword [edx]
test ecx, ecx
jbe 0x10b8eae
push 4
pop eax
cmp dword [ebp - 4], eax
jb 0x10b8c50
add ecx, eax
cmp ecx, dword [ebp - 4]
mov cx, word [edx]
jbe 0x10b8c5a
add cx, ax
movzx eax, cx
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x10b8bc1
add cx, ax
movzx eax, cx
add edx, 4
mov dword [edi], eax
mov dword [ebp - 0x1c], 1
mov eax, edx
jmp 0x10b8c7b
cmp cx, 0x5c
jne 0x10b8c79
mov dword [ebp + 0x14], eax
inc eax
inc eax
mov cx, word [eax]
test cx, cx
jne 0x10b8c70
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x10b8d2e
mov eax, dword [ebp - 0x20]
test byte [eax + 0x84], 0x10
je 0x10b8d2e
mov edx, esi
call fcn.010aeb25
mov ecx, eax
shr ecx, 2
lea edi, [ebp - 0x43c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
xor edi, edi
push edi
push edi
lea ecx, [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x43a]
push ecx
push dword [eax + 0xc]
push eax
call fcn.010a7a67
test ax, ax
je 0x10b8ce4
or ax, 0xffff
jmp 0x10b8c12
push edi
push 0xa000080
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x10b8d22
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1012de4
push dword [ebp - 8]
push edi
push dword [esi]
call fcn.0107f259
mov dword [ebp - 0xc], 0xfffffe40
push dword [esi]
call fcn.010a7422
jmp 0x10b8e90
mov edx, esi
call fcn.010aeb25
mov ecx, eax
shr ecx, 2
lea edi, [ebp - 0x43c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0xc]
add esi, 4
mov edx, esi
call fcn.010aeb25
mov ecx, dword [ebp + 0xc]
shr eax, 1
lea eax, [ecx + eax*2 + 4]
mov ax, word [eax]
mov word [ebp + 0x14], ax
mov eax, dword [ebx + 8]
cmp eax, 0x474c4f44
jne 0x10b8d89
mov eax, dword [ebp - 0x10]
movsx eax, word [eax + 0xa]
push eax
lea eax, [ebp - 0x43c]
push eax
mov eax, dword [ebp + 8]
call fcn.010b884f
jmp 0x10b8da0
cmp eax, 0x42444d44
jne 0x10b8da0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1c], 0x7fffffff
mov word [eax + 0xa], 1
mov edx, esi
call fcn.010aeb25
push dword [ebp + 0x14]
mov ecx, eax
shr ecx, 2
lea edi, [ebp - 0x43c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
push edi
push dword [edi]
lea eax, [ebp - 0x43c]
call fcn.010b8954
mov esi, eax
test esi, esi
mov dword [ebp + 0x18], esi
jne 0x10b8de6
and dword [ebp - 0x1c], esi
lea eax, [ebp - 0x43c]
mov dword [ebp + 0x18], eax
mov esi, eax
push 0x24
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x10b8e01
mov word [eax], 0x3a
dec eax
dec eax
mov dword [ebp + 0x14], eax
jmp 0x10b8e06
mov dword [ebp + 0x14], esi
mov eax, esi
push eax
push dword [edi]
call fcn.010ab332
mov edx, esi
call fcn.010aeb25
mov ecx, eax
shr ecx, 2
mov dword [ebx + 0x18], eax
lea edi, [ebx + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x14]
xor esi, esi
push esi
push 0xa000080
push 2
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x10b8e6d
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push 0x1012de4
push dword [ebp - 8]
push esi
push dword [eax]
call fcn.0107f259
mov dword [ebp - 0xc], 0xfffffe40
cmp edi, esi
je 0x10b8e7e
cmp word [edi + 2], 0x3a
jne 0x10b8e7e
mov word [edi + 2], 0x24
cmp word [ebp - 0x1c], si
je 0x10b8e8e
push dword [ebp + 0x18]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor edi, edi
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
sub dword [ebp - 4], eax
add dword [ebp + 0xc], eax
cmp word [ebp - 0xc], di
mov edi, dword [ebp + 0x10]
jne 0x10b8bc1
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10b8bc1
mov eax, dword [ebx + 0x230]
mov edi, dword [ebx + 0x238]
mov dword [ebp - 0x24], eax
xor eax, eax
add ecx, edi
adc eax, dword [ebx + 0x23c]
cmp eax, dword [ebx + 0x234]
jb 0x10b8eeb
mov eax, dword [ebp - 0x24]
ja 0x10b8ee3
cmp ecx, eax
jbe 0x10b8eeb
sub eax, dword [ebx + 0x238]
jmp 0x10b8eee
mov eax, dword [ebp - 4]
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push edx
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10b8f0f
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + 0x10]
add dword [edi], eax
jmp 0x10b8bc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
je 0x10b8f45
cmp eax, 0x27
je 0x10b8f45
push 0x1007808
push eax
push 0x101215c
push dword [ebp - 8]
push 0
push dword [esi]
call fcn.0107f259
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 0xfffffe40
jmp 0x10b8bc1
mov ax, 0xfe06
jmp 0x10b8c12