Function at 0x10acf3e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x34]
and dword [ebp - 8], 0
push ebx
mov ebx, dword [edx + 0x10]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [esi]
mov dword [ebp - 4], ecx
mov ecx, dword [edx + 0x14]
and dword [esi], 0
mov esi, dword [ebp + 0x14]
mov dword [eax], 1
cmp dword [esi], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edi
je 0x10ad025
mov eax, dword [ebx]
test eax, eax
je 0x10acfbd
cmp eax, 0xffffffff
je 0x10acfbd
test byte [ebx + 4], 1
push eax
je 0x10acfb1
mov eax, dword [ebp - 4]
push dword [eax]
push dword [edx]
call fcn.0108aece
test eax, eax
je 0x10acfb7
mov eax, dword [ebp - 4]
or dword [eax + 0x18], 4
mov dword [ebp - 8], 0xfffffe30
jmp 0x10acfb7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
test al, 4
jne 0x10acfe5
test byte [ecx + 0x44], 1
je 0x10acfd5
test al, 8
je 0x10acfd5
test al, 0x10
je 0x10acfe5
mov eax, dword [esi]
cmp eax, 0x48545058
je 0x10acfee
cmp eax, 0x44455445
je 0x10ad005
mov ax, 0xfeb1
jmp 0x10ad3cd
or dword [ebx + 4], 8
mov eax, dword [esi + 8]
push 1
push eax
call dword [sym.imp.msvcrt.dll_calloc]
pop ecx
pop ecx
mov dword [ebx + 0x14], eax
jmp 0x10ad009
and dword [ebx + 4], 0xfffffff7
xor eax, eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov ecx, dword [esi + 8]
mov dword [ebx + 0x28], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebx + 0x2c], ecx
mov dword [ebp - 0xc], eax
jmp 0x10ad2fe
test byte [ebx + 4], 8
je 0x10ad0e6
mov edx, dword [esi + 8]
cmp edi, edx
jae 0x10ad040
mov dword [eax], edx
xor ax, ax
jmp 0x10ad3cd
mov eax, dword [ecx + 0x40]
push dword [eax + 4]
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov ecx, dword [esi + 8]
and word [ebp + eax*2 - 0x812], 0
mov edi, dword [ebx + 0x14]
mov esi, dword [ebp + 0xc]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
mov ecx, eax
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebp - 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebx + 0x14]
mov esi, dword [eax + 0x40]
sub esp, 0x10
add esi, 8
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x814]
push eax
mov eax, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
push dword [esi]
push dword [eax]
call fcn.0108ad6b
or dword [esi + 0x18], 8
test eax, eax
mov ecx, dword [esi + 0x18]
je 0x10ad0cc
or ecx, 4
mov dword [esi + 0x18], ecx
mov dword [ebp - 8], 0xfffffe30
jmp 0x10ad0dd
mov eax, dword [ebp + 0x14]
or ecx, 0x10
mov dword [esi + 0x18], ecx
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
and dword [ebx + 4], 0xfffffff7
jmp 0x10ad3c9
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
test edx, edx
jbe 0x10ad30c
mov esi, dword [ebx + 0x20]
or esi, dword [ebx + 0x24]
jne 0x10ad30c
push 4
pop esi
cmp edi, esi
jae 0x10ad15e
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
add dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x20]
adc dword [ebx + 0x24], 0
cmp eax, dword [ebx + 0x28]
jne 0x10ad3c9
mov eax, dword [ebx + 0x24]
cmp eax, dword [ebx + 0x2c]
jne 0x10ad3c9
mov eax, dword [ebx]
test eax, eax
je 0x10ad3c9
cmp eax, 0xffffffff
je 0x10ad3c9
test byte [ebx + 4], 1
push eax
je 0x10ad3c0
mov eax, dword [ebp - 4]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0108aece
jmp 0x10ad3c6
lea esi, [edx + 4]
cmp esi, edi
jbe 0x10ad173
mov cx, word [ecx]
add cx, 4
movzx ecx, cx
mov dword [eax], ecx
jmp 0x10ad108
cmp edx, 0x400
lea esi, [ecx + 4]
jbe 0x10ad184
mov dword [ecx], 0x3fe
mov eax, dword [ecx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebp - 0x414]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
and word [ebp - 0x16], 0
add eax, 4
mov dword [ecx], eax
lea eax, [ebp - 0x414]
push eax
push dword [edi]
mov eax, edi
call fcn.010acda3
mov esi, eax
test esi, esi
mov dword [ebp + 0x14], esi
jne 0x10ad1e4
lea eax, [ebp - 0x414]
push eax
push 0xffffffffffffffff
push 0x1012178
push esi
push dword [edi]
call fcn.0108a895
mov ax, 0xfe0d
jmp 0x10ad3cd
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea ecx, [eax + eax + 2]
mov dword [ebx + 0x30], ecx
mov eax, ecx
shr ecx, 2
lea edi, [ebx + 0x34]
rep movsd dword es:[edi], dword [esi]
push ebx
mov ecx, eax
mov eax, dword [ebp - 4]
push 1
push dword [ebp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or dword [ebx + 4], 1
push dword [eax]
mov esi, dword [ebp + 8]
push dword [esi]
call fcn.0108ae52
test eax, eax
je 0x10ad2dd
and dword [ebx + 4], 0xfffffffe
push 0x3a
push dword [ebp + 0x14]
xor edi, edi
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x10ad2b8
mov eax, dword [esi]
mov eax, dword [eax + 4]
push dword [eax + 0x54]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
call edi
push dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
call edi
mov ecx, dword [ebp - 0x10]
add ecx, eax
lea eax, [ecx + ecx + 0xa]
push 1
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10ad278
or ax, 0xffff
jmp 0x10ad3cd
push 0x10045a8
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [esi]
mov eax, dword [eax + 4]
push dword [eax + 0x54]
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
push edi
call esi
push 0x1004284
push edi
call esi
push dword [ebp + 0x14]
push edi
call esi
push 0x3a
push edi
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 0x28
mov word [eax], 0x24
mov ecx, edi
jmp 0x10ad2bb
mov ecx, dword [ebp + 0x14]
xor eax, eax
push eax
push 0xa000080
push 2
push eax
push eax
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
mov dword [ebx], eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp dword [ebx], 0xffffffff
jne 0x10ad2e9
mov dword [ebp - 8], 0xfffffe30
push dword [ebp + 0x14]
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
sub dword [ebp - 0xc], eax
add dword [ebp + 0xc], eax
pop ecx
cmp word [ebp - 8], 0
jne 0x10ad108
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x10ad108
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x28]
xor eax, eax
mov ecx, edi
add ecx, esi
adc eax, dword [ebx + 0x24]
cmp eax, dword [ebx + 0x2c]
jb 0x10ad333
ja 0x10ad32e
cmp ecx, edx
jbe 0x10ad333
sub edx, dword [ebx + 0x20]
mov edi, edx
test byte [ebx + 4], 1
je 0x10ad353
mov eax, dword [ebp - 4]
push edi
push dword [ebp + 0xc]
push dword [ebx]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0108ae93
mov dword [ebp - 0x14], edi
jmp 0x10ad37b
push 0
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10ad371
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10ad37b
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
add dword [eax], ecx
xor eax, eax
test eax, eax
je 0x10ad108
cmp eax, 0x70
je 0x10ad3ba
cmp eax, 0x27
je 0x10ad3ba
test byte [ebx + 4], 1
mov dword [ebp - 8], 0xfffffe30
jne 0x10ad108
push 0x100d7e8
push eax
mov eax, dword [ebp + 8]
push 0x101215c
push 0
push dword [eax]
call fcn.0108a895
jmp 0x10ad108
mov ax, 0xfe06
jmp 0x10ad3cd
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx], 0xffffffff
mov ax, word [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10