Function at 0x10031ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044788
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1005a894]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x10031f30
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x10031f3c
mov al, 1
jmp 0x100320e1
mov dword [ebp - 0x48], 8
call fcn.10020c90
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.10020c90
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.10020ca0
add esp, 8
movzx eax, al
test eax, eax
je 0x10031f7f
xor al, al
jmp 0x100320e1
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.10001cb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x28]
call fcn.1000d660
mov ecx, eax
call fcn.10010060
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.10013db0
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000d660
mov ecx, eax
call fcn.10010060
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x38]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x10031ffb
cmp dword [ebp - 0x38], 1
je 0x10032002
cmp dword [ebp - 0x38], 3
je 0x1003209d
jmp 0x100320b5
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x28]
call fcn.1000d660
mov ecx, eax
call fcn.10010060
mov edx, dword [ebp - 0x44]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x10032066
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000d660
mov ecx, eax
call fcn.10010060
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x10032066
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10001e70
mov al, byte [ebp - 0x2d]
jmp 0x100320e1
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x10032089
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10001e70
mov al, byte [ebp - 0x2e]
jmp 0x100320e1
cmp dword [ebp - 0x34], 0
jne 0x1003209b
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.10004df0
jmp 0x100320cd
mov byte [ebp - 0x2f], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10001e70
mov al, byte [ebp - 0x2f]
jmp 0x100320e1
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10001e70
mov al, byte [ebp - 0x30]
jmp 0x100320e1
jmp 0x10031f92
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10041701
mov esp, ebp
pop ebp
ret