Function at 0x100764f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x100df00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100ee4f4]
push ebx
push esi
push edi
mov esi, dword [eax]
cmp esi, eax
je 0x10076649
mov eax, dword [esi + 0x10]
xor edi, edi
mov dword [ebp - 0x210], eax
cmp dword [0x100ed9e4], edi
jle 0x10076601
xor ebx, ebx
nop
push eax
mov eax, dword [0x100ed9a8]
add eax, 4
add eax, ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x10076563
mov eax, dword [ebp - 0x210]
inc edi
add ebx, 0xb0
cmp edi, dword [0x100ed9e4]
jl 0x10076530
jmp 0x10076601
cmp edi, 0xffffffff
je 0x10076601
imul edi, edi, 0xb0
push 0xffffffffffffffff
add edi, dword [0x100ed9a8]
lea eax, [edi + 4]
push eax
lea eax, [esi + 0x18]
push 0x40
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov eax, dword [edi + 0x84]
add esp, 0x10
mov dword [esi + 0x98], eax
mov eax, dword [edi + 0x88]
mov dword [esi + 0x9c], eax
mov eax, dword [edi + 0x8c]
mov dword [esi + 0xa0], eax
mov eax, dword [edi + 0x90]
mov dword [esi + 0xa4], eax
mov eax, dword [edi + 0x94]
mov dword [esi + 0xa8], eax
mov eax, dword [edi + 0xa0]
mov dword [esi + 0xac], eax
mov eax, dword [edi + 0xa4]
mov dword [esi + 0xb0], eax
mov eax, dword [edi + 0xac]
and eax, 1
mov dword [esi + 0xb4], eax
mov eax, dword [edi + 0xac]
shr eax, 1
and eax, 1
mov dword [esi + 0xb8], eax
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10076627
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10076623
cmp esi, dword [eax + 8]
jne 0x10076623
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10076613
mov esi, eax
jmp 0x1007663d
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1007663d
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10076631
cmp esi, dword [0x100ee4f4]
jne 0x10076515
push dword [0x100ee4ec]
call dword [sym.imp.HncFoundation.dll_HncFileExist]
test eax, eax
je 0x10076665
push dword [0x100ee4ec]
call dword [sym.imp.HncFoundation.dll_HncDeleteFile]
mov eax, dword [0x100ee4f8]
mov dword [ebp - 0x214], eax
test eax, eax
jle 0x10076797
push 0x100c5df0
push dword [0x100ee4ec]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov eax, dword [ebp - 0x210]
add esp, 0xc
test eax, eax
je 0x10076797
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push eax
push 4
lea eax, [ebp - 0x214]
push 1
push eax
call ebx
mov eax, dword [0x100ee4f4]
add esp, 0x10
mov esi, dword [eax]
cmp esi, eax
je 0x10076788
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 1
push 0
push dword [ebp - 0x210]
lea edi, [esi + 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov dword [edi], eax
push dword [ebp - 0x210]
push 0xa8
push 1
push edi
call ebx
push dword [esi + 0xc4]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push 0x208
push 1
push eax
call ebx
mov eax, dword [esi + 8]
add esp, 0x44
cmp byte [eax + 0xd], 0
je 0x10076764
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10076760
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x10076760
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10076750
mov esi, eax
jmp 0x1007677c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1007677c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10076770
cmp esi, dword [0x100ee4f4]
jne 0x100766d1
push dword [ebp - 0x210]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100be194
mov esp, ebp
pop ebp
ret