Function at 0x101d462
Capabilities:
Write file on windows

Disassembly:
push 0x34
push 0x1002b58
call fcn.01032098
and dword [ebp - 0x30], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax + reloc.msvcrt.dll___p__fmode]
mov ebx, dword [ebp + 0xc]
mov dword [ebx + reloc.msvcrt.dll___p__fmode], edx
lea edi, [ecx + ebx]
mov ecx, dword [eax + reloc.msvcrt.dll___p__fmode]
imul ecx, ecx, 0x58
mov esi, dword [eax + reloc.msvcrt.dll___p__fmode]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x38], edx
lea ecx, [edx + ebx]
mov dword [ebx + reloc.msvcrt.dll___p__fmode], ecx
mov ecx, dword [eax + reloc.msvcrt.dll___p__fmode]
imul ecx, ecx, 0x58
add edx, ecx
and dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + reloc.msvcrt.dll___p__fmode]
jae 0x101d3ce
imul ecx, ecx, 0x58
mov dword [ebp - 0x34], ecx
mov esi, dword [ebx + reloc.msvcrt.dll___p__fmode]
mov dword [ecx + esi + 0x50], edx
and dword [ebp - 4], 0
mov esi, dword [eax + reloc.msvcrt.dll___p__fmode]
add esi, ecx
mov ecx, dword [esi + 0x54]
mov esi, dword [esi + 0x50]
lea edi, [edx + ebx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [eax + reloc.msvcrt.dll___p__fmode]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
add edx, dword [esi + ecx + 0x54]
inc dword [ebp - 0x20]
jmp 0x101d358
mov ecx, dword [ebp - 0x38]
mov dword [ebx + reloc.msvcrt.dll___p__fmode], ecx
push 0
lea ecx, [ebp - 0x24]
push ecx
push dword [eax + 0x5e8]
call fcn.01021bdc
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x101d4ca
mov eax, dword [ebp - 0x1c]
mov dword [ebx + reloc.msvcrt.dll___p__fmode], eax
mov ecx, dword [ebp - 0x24]
lea edi, [eax + ebx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x24]
mov dword [ebx + reloc.msvcrt.dll___p__fmode], ecx
add eax, ecx
and dword [ebx + reloc.msvcrt.dll___p__fmode], 0
mov edx, dword [ebp + 8]
add edx, 0x59c
mov dword [ebp - 0x40], edx
mov ecx, dword [edx]
cmp ecx, edx
je 0x101d4c2
jmp 0x101d43f
mov ecx, dword [ebp - 0x2c]
mov edx, ecx
mov dword [ebp - 0x3c], edx
mov ecx, dword [ecx]
mov dword [ebp - 0x2c], ecx
lea esi, [edx + 0xc]
lea edi, [eax + ebx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebx + reloc.msvcrt.dll___p__fmode], 0
jne 0x101d462
mov dword [ebx + reloc.msvcrt.dll___p__fmode], eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x101d483
push ecx
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x3c]
jmp 0x101d485
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov esi, dword [edx + 8]
lea edi, [eax + ebx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + reloc.msvcrt.dll___p__fmode]
test ecx, ecx
jne 0x101d4ac
mov dword [ebx + reloc.msvcrt.dll___p__fmode], eax
add eax, dword [ebp - 0x28]
inc ecx
mov dword [ebx + reloc.msvcrt.dll___p__fmode], ecx
mov ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x2c], ecx
jne 0x101d43c
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor esi, esi
inc esi
push dword [ebp - 0x30]
call fcn.01035abf
mov eax, esi
call fcn.010320d3
ret 0xc