Function at 0x10034f10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007d4b5
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 0x10034f5a
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3e]
test edx, edx
jne 0x10034f66
mov al, 1
jmp 0x100351db
mov dword [ebp - 0x7c], 8
call fcn.10035750
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.10035750
mov word [ebp - 0x44], ax
lea ecx, [ebp - 0x42]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.10035780
add esp, 8
movzx eax, al
test eax, eax
je 0x10034fba
xor al, al
jmp 0x100351db
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_unsigned_short_int__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 0x1003507b
cmp dword [ebp - 0x48], 1
je 0x10035082
cmp dword [ebp - 0x48], 3
je 0x10035197
jmp 0x100351af
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 0x10035115
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 0x10035115
mov dword [ebp - 0x50], 1
jmp 0x1003511c
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 0x10035140
and dword [ebp - 0x3c], 0xfffffffe
lea ecx, [ebp - 0xac]
call fcn.1001dd80
movzx ecx, byte [ebp - 0x31]
test ecx, ecx
je 0x10035160
mov byte [ebp - 0x32], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1001df60
mov al, byte [ebp - 0x32]
jmp 0x100351db
mov edx, dword [ebp - 0x30]
movzx eax, byte [edx + 0x3e]
test eax, eax
jne 0x10035183
mov byte [ebp - 0x33], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1001df60
mov al, byte [ebp - 0x33]
jmp 0x100351db
cmp dword [ebp - 0x40], 0
jne 0x10035195
push 0
push 8
lea ecx, [ebp - 0x2c]
call fcn.100220d0
jmp 0x100351c7
mov byte [ebp - 0x34], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1001df60
mov al, byte [ebp - 0x34]
jmp 0x100351db
mov byte [ebp - 0x35], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1001df60
mov al, byte [ebp - 0x35]
jmp 0x100351db
jmp 0x10034fcd
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