Function at 0x10133550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1023c014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0x101d5124
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
mov esi, ecx
push eax
mov dword [ebp - 0x220], esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x101337f4
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x101337f4
push ebx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push eax
push 1
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0xfeff
push 2
push eax
mov dword [ebp - 0x214], 0xa000d
call edi
push dword [ebp - 0x210]
push 0x22
push 2
push str.__HNC_AutoFill_Configuration_V9.00
call edi
push dword [ebp - 0x210]
lea eax, [ebp - 0x214]
push 2
push 2
push eax
call edi
mov ecx, dword [esi + 4]
add esp, 0x30
xor ebx, ebx
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
sub eax, esi
test eax, 0xfffffffc
jle 0x101337cd
nop dword [eax]
mov eax, dword [ecx + 4]
sub eax, esi
sar eax, 2
cmp eax, ebx
jbe 0x10133807
lea eax, [ebx*4]
mov dword [ebp - 0x228], eax
mov eax, dword [eax + esi]
cmp dword [eax + 0x14], 8
jb 0x10133638
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x20c]
push 0x101d5178
push eax
call fcn.1002c230
lea esi, [ebp - 0x20c]
add esp, 0xc
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10133656
push dword [ebp - 0x210]
lea eax, [ebp - 0x214]
sub esi, ecx
push 2
push 2
push eax
sar esi, 1
call edi
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push esi
push 2
push eax
call edi
push dword [ebp - 0x210]
lea eax, [ebp - 0x214]
push 2
push 2
push eax
call edi
add esp, 0x30
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 4]
mov edi, dword [ecx + 4]
mov esi, dword [ecx]
sub edi, esi
sar edi, 2
cmp edi, ebx
jbe 0x10133807
mov eax, dword [ebp - 0x228]
mov eax, dword [esi + eax]
mov edx, dword [eax + 0x28]
sub edx, dword [eax + 0x24]
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x218], eax
jge 0x101337be
mov edi, dword [ebp - 0x21c]
cmp ebx, 1
jne 0x10133757
mov eax, dword [esi + ebx*4]
lea edx, [ebx*4]
mov eax, dword [eax + 0x18]
add eax, edi
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x1013371f
mov edx, dword [eax]
mov eax, dword [eax + 0x10]
test eax, eax
jle 0x10133757
push dword [ebp - 0x210]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push eax
push 2
push edx
call esi
push dword [ebp - 0x210]
push 1
push 2
push 0x101d5190
call esi
mov eax, dword [ebp - 0x220]
add esp, 0x20
mov ecx, dword [eax + 4]
mov esi, dword [ecx]
mov eax, dword [ecx + 4]
sub eax, esi
sar eax, 2
cmp eax, ebx
jbe 0x10133807
lea eax, [ebx*4]
mov eax, dword [eax + esi]
mov eax, dword [eax + 0x24]
add eax, edi
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x10133780
mov ecx, dword [eax]
push dword [ebp - 0x210]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [eax + 0x10]
push 2
push ecx
call esi
push dword [ebp - 0x210]
lea eax, [ebp - 0x214]
push 2
push 2
push eax
call esi
inc dword [ebp - 0x218]
add esp, 0x20
add edi, 0x18
mov dword [ebp - 0x21c], edi
jmp 0x101336b4
inc ebx
cmp ebx, edi
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jl 0x10133610
push dword [ebp - 0x210]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008548c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.1008548c
mov esp, ebp
pop ebp
ret 4
call fcn.10014370
int3