Function at 0x10001c80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
push edi
sub esp, 0xc
mov dword [ebp - 0x14], edx
push ecx
lea ecx, [ebp - 0xe4]
call fcn.100034d0
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0xe4]
call fcn.10003770
lea ecx, [ebp - 0xe4]
mov esi, dword [eax + 8]
add esi, dword [eax]
mov edi, dword [eax + 0xc]
adc edi, dword [eax + 4]
sub esp, 0xc
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
call fcn.10003880
push esi
call fcn.1000560d
add esp, 4
lea ecx, [ebp - 0xe4]
mov ebx, eax
push edi
push esi
push ebx
call fcn.100039b0
lea ecx, [ebp - 0xd4]
call fcn.10003ef0
test eax, eax
jne 0x10001d20
mov eax, dword [ebp - 0xe4]
lea ecx, [ebp - 0xe4]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10001b80
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x28]
movzx eax, byte [ebx]
xor edi, edi
mov ecx, dword [esi]
mov byte [ecx], al
movzx eax, byte [ebx + 1]
mov byte [ecx + 1], al
movzx eax, byte [ebx + 2]
mov byte [ecx + 2], al
movzx eax, byte [ebx + 3]
mov byte [ecx + 3], al
mov eax, dword [ecx]
sub eax, 5
shr eax, 1
mov dword [ecx], eax
lea ecx, [ebx + 0x18]
lea eax, [ecx + 0x13]
cmp edx, eax
ja 0x10001d5a
lea eax, [ebp - 0x15]
movups xmm0, xmmword [ecx]
mov eax, dword [ecx + 0x10]
lea ecx, [ebp - 0x1fc]
mov dword [ebp - 0x18], eax
lea edx, [ecx + 1]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x10], edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001d73
push 0
lea eax, [ebp - 0x10]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x1fc]
push eax
push 0xdeadbeef
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x64
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Beep]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
call dword [sym.imp.USER32.dll_SetCursorPos]
mov eax, dword [esi]
push dword [eax]
call fcn.1000560d
mov esi, eax
xor ecx, ecx
mov eax, dword [ebp - 0x14]
add esp, 4
mov dword [eax], esi
cmp dword [ebp - 8], ecx
jl 0x10001e05
jg 0x10001dd5
cmp dword [ebp - 0xc], ecx
jbe 0x10001e05
cmp ecx, 0x2c
jne 0x10001de5
mov al, byte [ebp - 0x28]
lea edi, [ecx - 0x2b]
xor byte [ebx + ecx], al
jmp 0x10001df5
mov al, byte [ebp + edi - 0x28]
inc edi
xor byte [ecx + ebx], al
xor eax, eax
cmp edi, 0x14
cmovge edi, eax
inc ecx
mov eax, ecx
cdq
cmp edx, dword [ebp - 8]
jl 0x10001dd5
jg 0x10001e05
cmp eax, dword [ebp - 0xc]
jb 0x10001dd5
mov eax, dword [ebp + 8]
lea edx, [ebx + 0x2c]
mov eax, dword [eax]
add dword [eax], 0xffffffd4
mov ecx, dword [eax]
je 0x10001e24
sub edx, esi
mov al, byte [edx + esi]
lea esi, [esi + 1]
mov byte [esi - 1], al
sub ecx, 1
jne 0x10001e16
push 1
push ebx
call fcn.100055a7
mov eax, dword [ebp - 0xe4]
add esp, 8
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe4], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xe8], eax
lea ecx, [ebp - 0xd4]
call fcn.100031a0
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe4], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0xe8], eax
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], vtable.std::ios_base.0
call fcn.10005188
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret