Function at 0x101aacae
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x102445d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, eax
and eax, 0x3f
sar edx, 6
imul ecx, eax, 0x38
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [edx*4 + 0x1025a928]
push esi
mov esi, dword [ebp + 0x14]
add esi, ebx
mov dword [ebp - 0x6c], ebx
push edi
mov eax, dword [ecx + eax + 0x18]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x60], esi
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
xor ebx, ebx
mov dword [ebp - 0x78], eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.10177ff5
mov ecx, dword [ebp - 0x3c]
lea edi, [ebp - 0x58]
xor eax, eax
stosd dword es:[edi], eax
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x7c], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x68], edi
cmp edi, esi
jae 0x101ab03a
mov esi, dword [ebp - 0x54]
mov al, byte [edi]
mov byte [ebp - 0x27], al
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x2c], 1
mov eax, dword [eax*4 + 0x1025a928]
mov dword [ebp - 0x24], eax
cmp ecx, 0xfde9
jne 0x101aae94
mov edx, dword [ebp - 0x24]
mov ecx, ebx
mov eax, dword [ebp - 0x48]
add edx, 0x2e
add edx, eax
mov dword [ebp - 0x64], edx
cmp byte [edx + ecx], bl
je 0x101aad6f
inc ecx
cmp ecx, 5
jl 0x101aad64
mov edx, dword [ebp - 0x60]
sub edx, edi
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jle 0x101aae37
mov esi, dword [ebp - 0x24]
movzx eax, byte [eax + esi + 0x2e]
mov esi, dword [ebp - 0x54]
movsx eax, byte [eax + 0x10244910]
inc eax
mov dword [ebp - 0x30], eax
sub eax, ecx
mov dword [ebp - 0x24], eax
cmp eax, edx
jg 0x101aafbd
mov edx, ebx
test ecx, ecx
jle 0x101aadba
mov esi, dword [ebp - 0x64]
mov al, byte [esi + edx]
mov byte [ebp + edx - 0xc], al
inc edx
cmp edx, ecx
jl 0x101aadab
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x24]
test eax, eax
jle 0x101aadd4
push esi
lea eax, [ebp - 0xc]
add eax, ecx
push edi
push eax
call fcn.10167c20
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
test ecx, ecx
jle 0x101aadf8
mov edx, dword [ebp - 0x48]
mov esi, ebx
mov edi, dword [ebp - 0x4c]
mov eax, dword [edi*4 + 0x1025a928]
add eax, edx
mov byte [eax + esi + 0x2e], bl
inc esi
cmp esi, ecx
jl 0x101aade0
mov edi, dword [ebp - 0x68]
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x84]
xor eax, eax
mov dword [ebp - 0x80], ebx
cmp dword [ebp - 0x30], 4
push ecx
sete al
inc eax
push eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.101b7df7
add esp, 0x10
cmp eax, 0xffffffff
je 0x101ab03a
jmp 0x101aae8c
movzx eax, byte [edi]
movsx ecx, byte [eax + 0x10244910]
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, edx
jg 0x101aafed
xor eax, eax
mov dword [ebp - 0x8c], ebx
cmp ecx, 4
mov dword [ebp - 0x88], ebx
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x30], edi
sete al
inc eax
push ecx
push eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.101b7df7
add esp, 0x10
cmp eax, 0xffffffff
je 0x101ab03a
mov esi, dword [ebp - 0x24]
dec edi
add edi, esi
jmp 0x101aaf16
mov ecx, dword [ebp - 0x48]
mov dl, byte [ecx + eax + 0x2d]
test dl, 4
je 0x101aaebe
mov al, byte [ecx + eax + 0x2e]
and dl, 0xfb
mov byte [ebp - 0x14], al
mov al, byte [edi]
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 0x24]
push 2
mov byte [ecx + eax + 0x2d], dl
lea eax, [ebp - 0x14]
push eax
jmp 0x101aaf01
mov al, byte [edi]
mov byte [ebp - 0x1d], al
call fcn.1019d79a
movzx ecx, byte [ebp - 0x1d]
cmp word [eax + ecx*2], bx
jge 0x101aaefe
lea eax, [edi + 1]
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x60]
jae 0x101ab00e
push 2
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.101a5635
add esp, 0xc
cmp eax, 0xffffffff
je 0x101ab03a
mov edi, dword [ebp - 0x30]
jmp 0x101aaf16
push 1
push edi
lea eax, [ebp - 0x44]
push eax
call fcn.101a5635
add esp, 0xc
cmp eax, 0xffffffff
je 0x101ab03a
push ebx
push ebx
push 5
lea eax, [ebp - 0x1c]
inc edi
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x68], edi
push eax
push ebx
push dword [ebp - 0x78]
call fcn.101add02
add esp, 0x20
mov dword [ebp - 0x30], eax
test eax, eax
je 0x101ab03a
push ebx
lea ecx, [ebp - 0x5c]
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101ab031
mov esi, dword [ebp - 0x50]
sub esi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x30]
add esi, edi
mov dword [ebp - 0x54], esi
cmp dword [ebp - 0x5c], eax
jb 0x101ab03a
cmp byte [ebp - 0x27], 0xa
jne 0x101aafac
push 0xd
pop eax
push ebx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x5c]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101ab031
cmp dword [ebp - 0x5c], 1
jb 0x101ab03a
inc dword [ebp - 0x50]
inc esi
mov dword [ebp - 0x54], esi
cmp edi, dword [ebp - 0x60]
jae 0x101ab03a
mov ecx, dword [ebp - 0x7c]
jmp 0x101aad2c
test edx, edx
jle 0x101aafe2
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax*4 + 0x1025a928]
add ecx, dword [ebp - 0x48]
mov al, byte [ebx + edi]
add ecx, ebx
inc ebx
mov byte [ecx + esi + 0x2e], al
cmp ebx, edx
jl 0x101aafc4
mov esi, dword [ebp - 0x54]
add esi, edx
cmp byte [ebp - 0x34], 0
mov dword [ebp - 0x54], esi
jmp 0x101ab03d
test edx, edx
jle 0x101aafe2
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax*4 + 0x1025a928]
mov al, byte [ebx + edi]
add ecx, esi
mov byte [ecx + ebx + 0x2e], al
inc ebx
cmp ebx, edx
jl 0x101aaff4
jmp 0x101aafdf
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov bl, byte [ebp - 0x1d]
mov eax, dword [edx*4 + 0x1025a928]
mov byte [ecx + eax + 0x2e], bl
mov eax, dword [edx*4 + 0x1025a928]
or byte [ecx + eax + 0x2d], 4
inc esi
jmp 0x101aafe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
cmp byte [ebp - 0x34], bl
je 0x101ab049
mov eax, dword [ebp - 0x40]
and dword [eax + 0x350], 0xfffffffd
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x58]
mov ecx, dword [ebp - 4]
mov edi, eax
xor ecx, ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
call fcn.101658c8
leave
ret