Function at 0x10020070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007c175
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x100ac1c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x100200ba
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x100200c6
mov al, 1
jmp 0x10020336
mov dword [ebp - 0x80], 8
call fcn.10024d90
push eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x48], edx
mov ecx, dword [ebp - 0x48]
call fcn.10079460
mov ecx, dword [ebp - 0x30]
call dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
call fcn.10024d90
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x54]
push ecx
call fcn.10024de0
add esp, 8
movzx edx, al
test edx, edx
je 0x10020115
xor al, al
jmp 0x10020336
push 0
push 8
lea ecx, [ebp - 0x2c]
call fcn.1001c6c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.100224f0
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x5c]
call fcn.1001eb70
mov esi, eax
lea ecx, [ebp - 0x2c]
call fcn.10026ac0
add esi, eax
push esi
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100224f0
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x64]
call fcn.1001eb70
push eax
mov edx, dword [ebp - 0x30]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x38]
call sym.MSVCP140D.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.1001dd80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.1001dd80
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 0
je 0x100201d6
cmp dword [ebp - 0x44], 1
je 0x100201dd
cmp dword [ebp - 0x44], 3
je 0x100202f2
jmp 0x1002030a
mov edx, dword [ebp - 0x30]
mov byte [edx + 0x3d], 0
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100224f0
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x70]
call fcn.1001eb70
mov edx, dword [ebp - 0x74]
sub edx, eax
mov dword [ebp - 0x40], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa4]
call fcn.1001dd80
cmp dword [ebp - 0x40], 0
jbe 0x10020270
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 1
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100224f0
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x3c]
or edx, 1
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0x7c]
call fcn.1001eb70
push eax
call dword [sym.imp.ucrtbased.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x10020270
mov dword [ebp - 0x4c], 1
jmp 0x10020277
mov dword [ebp - 0x4c], 0
mov al, byte [ebp - 0x4c]
mov byte [ebp - 0x31], al
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
and ecx, 1
je 0x1002029b
and dword [ebp - 0x3c], 0xfffffffe
lea ecx, [ebp - 0xb0]
call fcn.1001dd80
movzx edx, byte [ebp - 0x31]
test edx, edx
je 0x100202bb
mov byte [ebp - 0x32], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1001df60
mov al, byte [ebp - 0x32]
jmp 0x10020336
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax + 0x3d]
test ecx, ecx
jne 0x100202de
mov byte [ebp - 0x33], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1001df60
mov al, byte [ebp - 0x33]
jmp 0x10020336
cmp dword [ebp - 0x40], 0
jne 0x100202f0
push 0
push 8
lea ecx, [ebp - 0x2c]
call fcn.100220d0
jmp 0x10020322
mov byte [ebp - 0x34], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1001df60
mov al, byte [ebp - 0x34]
jmp 0x10020336
mov byte [ebp - 0x35], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1001df60
mov al, byte [ebp - 0x35]
jmp 0x10020336
jmp 0x10020128
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10079440
mov esp, ebp
pop ebp
ret