Function at 0x100c527e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x102223f8]
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 + 0x10233470]
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.10096d3f
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 0x100c560a
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 + 0x10233470]
mov dword [ebp - 0x24], eax
cmp ecx, 0xfde9
jne 0x100c5464
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 0x100c533f
inc ecx
cmp ecx, 5
jl 0x100c5334
mov edx, dword [ebp - 0x60]
sub edx, edi
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jle 0x100c5407
mov esi, dword [ebp - 0x24]
movzx eax, byte [eax + esi + 0x2e]
mov esi, dword [ebp - 0x54]
movsx eax, byte [eax + 0x10222c50]
inc eax
mov dword [ebp - 0x30], eax
sub eax, ecx
mov dword [ebp - 0x24], eax
cmp eax, edx
jg 0x100c558d
mov edx, ebx
test ecx, ecx
jle 0x100c538a
mov esi, dword [ebp - 0x64]
mov al, byte [esi + edx]
mov byte [ebp + edx - 0xc], al
inc edx
cmp edx, ecx
jl 0x100c537b
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x24]
test eax, eax
jle 0x100c53a4
push esi
lea eax, [ebp - 0xc]
add eax, ecx
push edi
push eax
call fcn.100865b0
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
test ecx, ecx
jle 0x100c53c8
mov edx, dword [ebp - 0x48]
mov esi, ebx
mov edi, dword [ebp - 0x4c]
mov eax, dword [edi*4 + 0x10233470]
add eax, edx
mov byte [eax + esi + 0x2e], bl
inc esi
cmp esi, ecx
jl 0x100c53b0
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.100cdf77
add esp, 0x10
cmp eax, 0xffffffff
je 0x100c560a
jmp 0x100c545c
movzx eax, byte [edi]
movsx ecx, byte [eax + 0x10222c50]
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, edx
jg 0x100c55bd
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.100cdf77
add esp, 0x10
cmp eax, 0xffffffff
je 0x100c560a
mov esi, dword [ebp - 0x24]
dec edi
add edi, esi
jmp 0x100c54e6
mov ecx, dword [ebp - 0x48]
mov dl, byte [ecx + eax + 0x2d]
test dl, 4
je 0x100c548e
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 0x100c54d1
mov al, byte [edi]
mov byte [ebp - 0x1d], al
call fcn.100b7aaa
movzx ecx, byte [ebp - 0x1d]
cmp word [eax + ecx*2], bx
jge 0x100c54ce
lea eax, [edi + 1]
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x60]
jae 0x100c55de
push 2
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.100bfa75
add esp, 0xc
cmp eax, 0xffffffff
je 0x100c560a
mov edi, dword [ebp - 0x30]
jmp 0x100c54e6
push 1
push edi
lea eax, [ebp - 0x44]
push eax
call fcn.100bfa75
add esp, 0xc
cmp eax, 0xffffffff
je 0x100c560a
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.100cabec
add esp, 0x20
mov dword [ebp - 0x30], eax
test eax, eax
je 0x100c560a
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 0x100c5601
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 0x100c560a
cmp byte [ebp - 0x27], 0xa
jne 0x100c557c
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 0x100c5601
cmp dword [ebp - 0x5c], 1
jb 0x100c560a
inc dword [ebp - 0x50]
inc esi
mov dword [ebp - 0x54], esi
cmp edi, dword [ebp - 0x60]
jae 0x100c560a
mov ecx, dword [ebp - 0x7c]
jmp 0x100c52fc
test edx, edx
jle 0x100c55b2
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax*4 + 0x10233470]
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 0x100c5594
mov esi, dword [ebp - 0x54]
add esi, edx
cmp byte [ebp - 0x34], 0
mov dword [ebp - 0x54], esi
jmp 0x100c560d
test edx, edx
jle 0x100c55b2
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax*4 + 0x10233470]
mov al, byte [ebx + edi]
add ecx, esi
mov byte [ecx + ebx + 0x2e], al
inc ebx
cmp ebx, edx
jl 0x100c55c4
jmp 0x100c55af
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov bl, byte [ebp - 0x1d]
mov eax, dword [edx*4 + 0x10233470]
mov byte [ecx + eax + 0x2e], bl
mov eax, dword [edx*4 + 0x10233470]
or byte [ecx + eax + 0x2d], 4
inc esi
jmp 0x100c55b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
cmp byte [ebp - 0x34], bl
je 0x100c5619
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.100847aa
leave
ret