Function at 0xb10ef49
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb1202d0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0xa4020c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, eax
mov esi, dword [ebp + 0x10]
and eax, 0x3f
mov ebx, dword [ebp + 0x18]
imul ecx, eax, 0x38
sar edx, 6
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], edx
mov eax, dword [edx*4 + 0xa4186c0]
mov dword [ebp - 0x4c], ecx
mov eax, dword [ecx + eax + 0x18]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x14]
add eax, esi
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
cmp byte [ebx + 0x14], 0
mov dword [ebp - 0x70], eax
jne 0xb10efc2
mov ecx, ebx
call fcn.0b0fef60
mov eax, dword [ebx + 0xc]
mov esi, dword [ebp + 8]
mov edi, esi
mov ecx, dword [eax + 8]
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0x74], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x64]
mov edx, eax
mov dword [ebp - 0x2c], edx
cmp eax, dword [ebp - 0x50]
jae 0xb10f2f3
mov edi, dword [ebp - 0x4c]
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov al, byte [edx]
mov byte [ebp - 0x2d], al
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x34], 1
cmp ecx, 0xfde9
jne 0xb10f13c
mov eax, dword [eax*4 + 0xa4186c0]
mov ecx, ebx
add eax, 0x2e
add eax, edi
mov dword [ebp - 0x54], eax
cmp byte [eax], 0
je 0xb10f029
inc ecx
inc eax
cmp ecx, 5
jl 0xb10f01d
mov edi, dword [ebp - 0x50]
sub edi, edx
mov dword [ebp - 0x34], ecx
test ecx, ecx
jle 0xb10f0df
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax]
movsx eax, byte [eax + 0xa402510]
inc eax
mov dword [ebp - 0x38], eax
sub eax, ecx
mov dword [ebp - 0x48], eax
cmp eax, edi
jg 0xb10f27c
mov edi, ebx
mov ebx, dword [ebp - 0x54]
mov al, byte [ebx]
mov byte [ebp + edi - 0x18], al
inc edi
inc ebx
cmp edi, ecx
jl 0xb10f05c
mov esi, dword [ebp - 0x48]
xor ebx, ebx
test esi, esi
jle 0xb10f084
push esi
lea eax, [ebp - 0x18]
add eax, ecx
push edx
push eax
call fcn.0b0f7670
mov ecx, dword [ebp - 0x34]
add esp, 0xc
mov edi, dword [ebp - 0x4c]
mov edx, ebx
mov esi, dword [ebp - 0x44]
mov eax, dword [esi*4 + 0xa4186c0]
add eax, edi
mov byte [eax + edx + 0x2e], bl
inc edx
cmp edx, ecx
jl 0xb10f08c
push dword [ebp - 0x3c]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x7c]
xor eax, eax
xorps xmm0, xmm0
cmp dword [ebp - 0x38], 4
push ecx
sete al
movlpd qword [ebp - 0x7c], xmm0
inc eax
push eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0b10c708
add esp, 0x14
cmp eax, 0xffffffff
je 0xb10f2f3
jmp 0xb10f130
movzx eax, byte [edx]
movsx eax, byte [eax + 0xa402510]
inc eax
mov dword [ebp - 0x48], eax
cmp eax, edi
jg 0xb10f2a9
push dword [ebp - 0x3c]
xor ecx, ecx
mov dword [ebp - 0x38], edx
cmp eax, 4
xorps xmm0, xmm0
lea eax, [ebp - 0x58]
movlpd qword [ebp - 0x58], xmm0
push eax
sete cl
lea eax, [ebp - 0x38]
inc ecx
push ecx
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x34], ecx
push eax
call fcn.0b10c708
add esp, 0x14
cmp eax, 0xffffffff
je 0xb10f2f3
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x48]
dec eax
jmp 0xb10f1cb
mov ecx, dword [eax*4 + 0xa4186c0]
mov dword [ebp - 0x48], ecx
mov ah, byte [ecx + edi + 0x2d]
test ah, 4
je 0xb10f16d
mov al, byte [ecx + edi + 0x2e]
and ah, 0xfb
push dword [ebp - 0x3c]
mov byte [ebp - 0x20], al
mov al, byte [edx]
mov byte [ebp - 0x1f], al
mov byte [ecx + edi + 0x2d], ah
lea eax, [ebp - 0x20]
push 2
push eax
jmp 0xb10f1b3
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [edx]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp word [eax + ecx*2], bx
jge 0xb10f1ad
lea eax, [edx + 1]
mov dword [ebp - 0x38], eax
cmp eax, dword [ebp - 0x50]
jae 0xb10f2ca
push dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
push 2
push edx
push eax
call fcn.0b10c2c4
add esp, 0x10
cmp eax, 0xffffffff
je 0xb10f2f3
mov eax, dword [ebp - 0x38]
jmp 0xb10f1cb
push dword [ebp - 0x3c]
push 1
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.0b10c2c4
add esp, 0x10
cmp eax, 0xffffffff
je 0xb10f2f3
mov eax, dword [ebp - 0x2c]
push ebx
push ebx
inc eax
push 5
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push eax
push ebx
push dword [ebp - 0x70]
call fcn.0b10e9c8
add esp, 0x20
mov dword [ebp - 0x38], eax
test eax, eax
je 0xb10f2f3
push ebx
lea ecx, [ebp - 0x60]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xb10f2eb
mov eax, dword [esi + 8]
sub eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x2c]
add eax, edx
mov dword [ebp - 0x54], eax
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x60], eax
jb 0xb10f2f3
cmp byte [ebp - 0x2d], 0xa
jne 0xb10f26f
push 0xd
pop eax
push ebx
mov word [ebp - 0x5c], ax
lea eax, [ebp - 0x60]
push eax
push 1
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xb10f2eb
cmp dword [ebp - 0x60], 1
jb 0xb10f2f3
inc dword [esi + 8]
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
cmp edx, dword [ebp - 0x50]
jae 0xb10f2f3
mov ecx, dword [ebp - 0x74]
jmp 0xb10efee
test edi, edi
jle 0xb10f2a4
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx*4 + 0xa4186c0]
add edx, dword [ebp - 0x4c]
mov cl, byte [ebx + eax]
add edx, ebx
inc ebx
mov byte [edx + esi + 0x2e], cl
cmp ebx, edi
jl 0xb10f286
mov esi, dword [ebp + 8]
add dword [esi + 4], edi
jmp 0xb10f2f3
test edi, edi
jle 0xb10f2a4
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax*4 + 0xa4186c0]
mov al, byte [ebx + edx]
add ecx, esi
mov byte [ecx + ebx + 0x2e], al
inc ebx
cmp ebx, edi
jl 0xb10f2b0
jmp 0xb10f2a1
mov eax, dword [ebp - 0x48]
mov cl, byte [edx]
mov byte [eax + edi + 0x2e], cl
mov eax, dword [ebp - 0x44]
mov eax, dword [eax*4 + 0xa4186c0]
or byte [eax + edi + 0x2d], 4
mov eax, dword [ebp - 0x54]
inc eax
mov dword [esi + 4], eax
jmp 0xb10f2f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0b0f5922
leave
ret