Function at 0x10075396
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x101042d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, ecx
mov dword [ebp - 0x50], edx
sar eax, 6
and ecx, 0x3f
imul ecx, ecx, 0x38
mov dword [ebp - 0x48], eax
push ebx
mov eax, dword [eax*4 + 0x10105340]
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x34], ebx
mov eax, dword [eax + ecx + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleOutputCP]
cmp byte [ebx + 0x14], 0
mov dword [ebp - 0x58], eax
jne 0x100753f1
mov ecx, ebx
call fcn.1006a280
mov eax, dword [ebx + 0xc]
mov esi, dword [ebp + 8]
mov edi, esi
mov edx, dword [eax + 8]
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0x5c], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x50]
mov edi, eax
cmp eax, dword [ebp - 0x40]
jae 0x100756b2
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov al, byte [edi]
mov byte [ebp - 0x2b], al
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], 1
mov ecx, dword [eax*4 + 0x10105340]
cmp edx, 0xfde9
jne 0x10075529
add ecx, dword [ebp - 0x3c]
mov eax, ebx
mov dword [ebp - 0x4c], ecx
lea edx, [ecx + 0x2e]
mov ecx, edx
cmp byte [ecx], bl
je 0x10075454
inc eax
inc ecx
cmp eax, 5
jl 0x10075449
mov ecx, dword [ebp - 0x40]
sub ecx, edi
mov dword [ebp - 0x24], eax
test eax, eax
je 0x100754d5
movzx eax, byte [edx]
movsx eax, byte [eax + 0x10011038]
inc eax
mov dword [ebp - 0x30], eax
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
cmp eax, ecx
jg 0x1007564f
mov esi, dword [ebp - 0x24]
mov ecx, ebx
mov al, byte [edx]
mov byte [ebp + ecx - 0x10], al
inc ecx
inc edx
cmp ecx, esi
jl 0x10075481
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp + 8]
test ecx, ecx
jle 0x100754aa
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x10]
push ecx
add eax, edx
push edi
push eax
call sym.ucrtbase.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov ecx, ebx
mov edx, dword [ebp - 0x4c]
mov byte [edx + ecx + 0x2e], bl
inc ecx
cmp ecx, eax
jl 0x100754b2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x64]
xor eax, eax
mov dword [ebp - 0x60], ebx
cmp dword [ebp - 0x30], 4
lea edx, [ebp - 0x4c]
jmp 0x10075500
movzx eax, byte [edi]
movsx eax, byte [eax + 0x10011038]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, ecx
jg 0x10075678
xor eax, eax
mov dword [ebp - 0x6c], ebx
cmp dword [ebp - 0x28], 4
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x68], ebx
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], edi
push dword [ebp - 0x34]
sete al
inc eax
push ecx
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], eax
call fcn.1006b64a
add esp, 0xc
cmp eax, 0xffffffff
je 0x100756b2
add edi, dword [ebp - 0x28]
dec edi
jmp 0x100755b0
mov eax, dword [ebp - 0x3c]
mov dl, byte [eax + ecx + 0x2d]
test dl, 4
je 0x10075555
mov al, byte [eax + ecx + 0x2e]
and dl, 0xfb
push dword [ebp - 0x34]
mov byte [ebp - 0x18], al
mov al, byte [edi]
mov byte [ebp - 0x17], al
mov eax, dword [ebp - 0x3c]
push 2
mov byte [eax + ecx + 0x2d], dl
lea edx, [ebp - 0x18]
jmp 0x1007559d
mov eax, dword [ebp - 0x34]
mov dh, byte [edi]
movzx ecx, dh
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp word [eax + ecx*2], bx
jge 0x10075596
lea eax, [edi + 1]
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x40]
jae 0x10075689
push dword [ebp - 0x34]
mov edx, edi
lea ecx, [ebp - 0x38]
push 2
call fcn.1006bdb6
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x100756b2
mov edi, dword [ebp - 0x30]
jmp 0x100755b0
push dword [ebp - 0x34]
mov edx, edi
push 1
lea ecx, [ebp - 0x38]
call fcn.1006bdb6
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x100756b2
push ebx
push ecx
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x20]
push 5
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x38]
inc edi
push eax
call fcn.1002d9e9
add esp, 0x18
mov dword [ebp - 0x30], eax
test eax, eax
je 0x100756b2
push ebx
lea ecx, [ebp - 0x44]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
je 0x100756aa
mov eax, dword [esi + 8]
sub eax, dword [ebp - 0x50]
add eax, edi
mov dword [ebp - 0x28], eax
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x44], eax
jb 0x100756b2
cmp byte [ebp - 0x2b], 0xa
jne 0x10075642
push 0xd
pop eax
push ebx
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x44]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
je 0x100756aa
cmp dword [ebp - 0x44], 1
jb 0x100756b2
inc dword [esi + 8]
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov dword [ebp - 0x28], eax
cmp edi, dword [ebp - 0x40]
jae 0x100756b2
mov edx, dword [ebp - 0x5c]
jmp 0x10075417
test ecx, ecx
jle 0x10075673
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x24]
add edx, 0x2e
mov eax, dword [eax*4 + 0x10105340]
add eax, dword [ebp - 0x3c]
add edx, eax
mov al, byte [ebx + edi]
inc ebx
mov byte [edx], al
inc edx
cmp ebx, ecx
jl 0x10075668
add dword [esi + 4], ecx
jmp 0x100756b2
test ecx, ecx
jle 0x10075673
mov al, byte [ebx + edi]
inc ebx
mov byte [edx], al
inc edx
cmp ebx, ecx
jl 0x1007567c
jmp 0x10075673
mov edi, dword [ebp - 0x48]
or dl, 4
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edi*4 + 0x10105340]
mov byte [ecx + eax + 0x2e], dh
mov byte [ecx + eax + 0x2d], dl
mov eax, dword [ebp - 0x28]
inc eax
mov dword [esi + 4], eax
jmp 0x100756b2
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [esi], eax
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10068820
leave
ret