Function at 0x10aede4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov edx, dword [ebp + 0x10]
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x10]
push edi
mov edi, ecx
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x34]
mov dword [ebp - 8], ecx
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edx]
and dword [edx], 0
xor edx, edx
mov dword [eax], 1
cmp dword [edi], edx
mov dword [ebp - 4], ecx
je 0x10aef04
mov eax, dword [ebx]
cmp eax, edx
mov word [ebx + 0xa48], dx
je 0x10aee41
cmp eax, 0xffffffff
je 0x10aee41
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx], 0xffffffff
mov ecx, 0x48545058
cmp dword [edi], ecx
jne 0x10aee5e
mov word [ebx + 0x220], 1
mov eax, dword [edi + 8]
mov dword [ebx + 0x224], eax
jmp 0x10aee66
and word [ebx + 0x220], 0
mov eax, dword [edi]
cmp eax, 0x4d555343
jne 0x10aee7a
mov word [ebx + 0xa48], 1
jmp 0x10aee90
cmp eax, 0x42444d58
je 0x10aee90
cmp eax, ecx
je 0x10aee90
cmp eax, 0x474c4f58
jne 0x10af211
mov eax, dword [edi]
and dword [ebx + 0x218], 0
and dword [ebx + 0x21c], 0
mov dword [ebx + 8], eax
mov eax, dword [edi + 8]
mov dword [ebx + 0x210], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0x214], eax
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
lea eax, [ebx + 0x218]
add dword [eax], ecx
mov ecx, dword [eax]
adc dword [eax + 4], 0
cmp ecx, dword [ebx + 0x210]
jne 0x10aeef9
mov eax, dword [eax + 4]
cmp eax, dword [ebx + 0x214]
jne 0x10aeef9
mov eax, dword [ebp - 0x18]
mov word [eax + 0x44], 1
mov eax, dword [ebx]
test eax, eax
je 0x10aeef9
cmp eax, 0xffffffff
je 0x10aeef9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx], 0xffffffff
mov ax, word [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp word [ebx + 0xa48], dx
je 0x10aef15
xor ax, ax
jmp 0x10af1ac
cmp word [ebx + 0x220], dx
je 0x10af03a
mov edx, dword [ebx + 0x224]
cmp ecx, edx
jae 0x10aef33
mov dword [eax], edx
jmp 0x10af032
mov eax, dword [ebp - 0x18]
and word [eax + 0x44], 0
mov eax, dword [esi + 0x14]
cmp byte [eax + 0x28], 0x1e
mov esi, dword [ebp + 0xc]
mov edx, esi
jne 0x10aefc0
call fcn.010aeb25
add dword [ebp + 0xc], eax
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x448]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.010aeb25
mov esi, dword [ebp + 0xc]
add dword [ebp + 0xc], eax
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x648]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.010aeb25
mov esi, dword [ebp + 0xc]
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x248]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0xc]
add esi, eax
mov edx, esi
call fcn.010aeb25
lea edi, [ebx + 0x848]
jmp 0x10af011
call fcn.010aeb25
add dword [ebp + 0xc], eax
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x248]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.010aeb25
mov esi, dword [ebp + 0xc]
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [ebx + 0x448]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0xc]
add esi, eax
mov edx, esi
call fcn.010aeb25
lea edi, [ebx + 0x648]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x224]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
and word [ebx + 0x220], 0
xor ax, ax
jmp 0x10aeefd
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jbe 0x10af30a
mov edi, dword [ebx + 0x218]
or edi, dword [ebx + 0x21c]
jne 0x10af30a
push 4
pop edi
cmp ecx, edi
jae 0x10af066
mov dword [eax], edi
jmp 0x10aeeb5
mov esi, dword [edx]
add esi, 4
cmp esi, ecx
jbe 0x10af07f
mov cx, word [edx]
add cx, di
movzx ecx, cx
mov dword [eax], ecx
jmp 0x10aeeb5
and dword [ebp - 0x14], 0
lea eax, [edx + 4]
jmp 0x10af093
cmp cx, 0x5c
jne 0x10af091
mov dword [ebp - 0xc], eax
inc eax
inc eax
mov cx, word [eax]
test cx, cx
jne 0x10af088
mov esi, dword [ebp - 0xc]
mov edx, esi
call fcn.010aeb25
mov ecx, eax
shr ecx, 2
lea edi, [ebp - 0x41c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
add edi, 4
mov edx, edi
call fcn.010aeb25
mov esi, dword [ebp + 0xc]
cmp eax, dword [esi]
je 0x10af0e1
mov edx, edi
call fcn.010aeb25
shr eax, 1
lea eax, [esi + eax*2 + 4]
mov ax, word [eax]
mov word [ebp - 0x14], ax
cmp dword [ebx + 8], 0x474c4f58
jne 0x10af108
xor eax, eax
mov ax, word [ebx + 0x22a]
push eax
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp + 8]
call fcn.010aea1a
jmp 0x10af239
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov al, byte [eax + 0x28]
cmp al, 0x1e
jne 0x10af21a
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
test edx, edx
mov dword [eax + 0x2210], 0x7fffffff
mov word [ebx + 0x22a], 1
je 0x10af239
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x9c]
shr eax, 7
and eax, 3
cmp eax, 1
jne 0x10af1b6
cmp word [ebp - 0x14], 0x45
je 0x10af19c
call fcn.010aeb25
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
lea ecx, [ebx + 0x448]
push ecx
mov dword [ebp - 8], eax
call esi
mov edi, eax
lea eax, [ebp - 0x41c]
push eax
call esi
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, 0x224
sub ecx, eax
mov eax, dword [ebp - 8]
add edi, ecx
mov ecx, eax
lea edi, [ebx + edi*2]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10af236
mov ecx, dword [ebp - 4]
mov word [ebx + 0xa48], 1
mov ax, 0xfeb1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
jmp 0x10aeefd
cmp eax, 2
jne 0x10af239
cmp word [ebp - 0x14], 0x46
je 0x10af200
call fcn.010aeb25
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
lea ecx, [ebx + 0x648]
push ecx
mov dword [ebp - 8], eax
call esi
mov edi, eax
lea eax, [ebp - 0x41c]
push eax
call esi
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, 0x324
sub ecx, eax
mov eax, dword [ebp - 8]
add edi, ecx
mov ecx, eax
lea edi, [ebx + edi*2]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10af236
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov word [ebx + 0xa48], 1
mov dword [ecx], eax
mov ax, 0xfeb1
jmp 0x10aeefd
cmp al, 0x1f
jne 0x10af239
mov eax, dword [ebp - 8]
mov dword [eax + 0x2210], 0x7fffffff
mov word [ebx + 0x22a], 1
jmp 0x10af239
mov esi, dword [ebp + 0xc]
mov ax, word [esi]
mov ecx, dword [ebp + 0x10]
add ax, 4
movzx eax, ax
add esi, 4
mov edx, esi
mov dword [ecx], eax
call fcn.010aeb25
push dword [ebp - 0x14]
mov ecx, eax
shr ecx, 2
lea edi, [ebp - 0x41c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x41c]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
push eax
push edi
push dword [edi]
call fcn.010aeb4d
mov esi, eax
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x10af2a2
lea eax, [ebp - 0x41c]
push eax
push 0xffffffffffffffff
push 0x1012178
push dword [edi]
call fcn.01079347
mov ax, 0xfe40
jmp 0x10aeefd
mov edx, esi
call fcn.010aeb25
lea edx, [ebx + 0x10]
mov ecx, eax
shr ecx, 2
mov dword [ebx + 0xc], eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push 0xa000080
push 2
push esi
push esi
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x10af2e5
mov dword [ebp - 0x10], 0xfffffe30
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
sub dword [ebp - 4], eax
add dword [ebp + 0xc], eax
cmp word [ebp - 0x10], si
pop ecx
jne 0x10aeeb5
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10aeeb5
mov edx, dword [ebx + 0x218]
mov edi, dword [ebx + 0x210]
xor eax, eax
add ecx, edx
adc eax, dword [ebx + 0x21c]
cmp eax, dword [ebx + 0x214]
jb 0x10af33e
ja 0x10af336
cmp ecx, edi
jbe 0x10af33e
sub edi, dword [ebx + 0x218]
jmp 0x10af341
mov edi, dword [ebp - 4]
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10af364
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x10]
add dword [eax], ecx
jmp 0x10aeeb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
je 0x10af392
cmp eax, 0x27
je 0x10af392
push 0x100d7e8
push eax
push 0x101215c
push dword [esi]
call fcn.01079347
mov dword [ebp - 0x10], 0xfffffe40
jmp 0x10aeeb5
mov ax, 0xfe06
jmp 0x10aeefd