Function at 0x10037aa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d845
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
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 0x10037aea
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3e]
test edx, edx
jne 0x10037af6
mov al, 1
jmp 0x10037d6b
mov dword [ebp - 0x7c], 8
call fcn.100382b0
movzx eax, ax
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
call fcn.10079460
mov ecx, dword [ebp - 0x30]
call dword [ebp - 0x4c]
mov word [ebp - 0x42], ax
call fcn.100382b0
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x42]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.100382e0
add esp, 8
movzx eax, al
test eax, eax
je 0x10037b4a
xor al, al
jmp 0x10037d6b
push 0
push 8
lea ecx, [ebp - 0x2c]
call fcn.1001c6c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x94]
push edx
lea ecx, [ebp - 0x2c]
call fcn.100224f0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x58]
call fcn.1001eb70
mov esi, eax
lea ecx, [ebp - 0x2c]
call fcn.10026ac0
add esi, eax
push esi
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.100224f0
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x60]
call fcn.1001eb70
push eax
mov eax, dword [ebp - 0x30]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx + 0x38]
call sym.MSVCP140D.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.1001dd80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x94]
call fcn.1001dd80
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 0
je 0x10037c0b
cmp dword [ebp - 0x48], 1
je 0x10037c12
cmp dword [ebp - 0x48], 3
je 0x10037d27
jmp 0x10037d3f
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x3e], 0
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.100224f0
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x6c]
call fcn.1001eb70
mov ecx, dword [ebp - 0x70]
sub ecx, eax
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.1001dd80
cmp dword [ebp - 0x40], 0
jbe 0x10037ca5
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
push 1
lea edx, [ebp - 0xac]
push edx
lea ecx, [ebp - 0x2c]
call fcn.100224f0
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3c]
or ecx, 1
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x78]
call fcn.1001eb70
push eax
call dword [sym.imp.ucrtbased.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x10037ca5
mov dword [ebp - 0x50], 1
jmp 0x10037cac
mov dword [ebp - 0x50], 0
mov dl, byte [ebp - 0x50]
mov byte [ebp - 0x31], dl
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
and eax, 1
je 0x10037cd0
and dword [ebp - 0x3c], 0xfffffffe
lea ecx, [ebp - 0xac]
call fcn.1001dd80
movzx ecx, byte [ebp - 0x31]
test ecx, ecx
je 0x10037cf0
mov byte [ebp - 0x32], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1001df60
mov al, byte [ebp - 0x32]
jmp 0x10037d6b
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 0x3e]
test eax, eax
jne 0x10037d13
mov byte [ebp - 0x33], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1001df60
mov al, byte [ebp - 0x33]
jmp 0x10037d6b
cmp dword [ebp - 0x40], 0
jne 0x10037d25
push 0
push 8
lea ecx, [ebp - 0x2c]
call fcn.100220d0
jmp 0x10037d57
mov byte [ebp - 0x34], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1001df60
mov al, byte [ebp - 0x34]
jmp 0x10037d6b
mov byte [ebp - 0x35], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1001df60
mov al, byte [ebp - 0x35]
jmp 0x10037d6b
jmp 0x10037b5d
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