Function at 0x10ba73a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [esi + 0x44]
xor edi, edi
mov di, word [eax + 0x540]
push dword [esi + 0x38]
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
push edi
call fcn.0108bee4
test ax, ax
je 0x10ba77e
mov ax, 0xfdff
pop edi
pop esi
pop ebx
leave
ret 0xc
call fcn.0106e781
lea eax, [ebp - 0x3c]
push eax
push edi
call fcn.0108c332
cmp ax, 1
je 0x10ba779
mov cx, word [ebp - 0x30]
cmp cx, bx
je 0x10ba7a3
cmp cx, 5
je 0x10ba7a3
mov ax, 0xfdf8
jmp 0x10ba772
mov eax, dword [esi + 0x40]
mov edx, dword [ebp - 0x34]
cmp edx, eax
jb 0x10ba7b2
mov dword [esi + 0x48], eax
jmp 0x10ba7b5
mov dword [esi + 0x48], edx
mov edi, dword [ebp + 0x10]
mov dword [esi + 0x50], ebx
mov word [esi + 0x58], cx
cmp dword [edi + 0x23f8], ebx
jne 0x10ba7e6
lea eax, [edi + 4]
push eax
push 0x1012e3c
push 0x1012e28
push edi
call fcn.010b983e
cmp eax, ebx
mov dword [edi], eax
jne 0x10ba7fb
jmp 0x10ba9dc
push ebx
push ebx
push dword [edi]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10ba9dc
cmp dword [esi + 0x48], 0xf
push 0xf
push esi
jae 0x10ba820
push dword [ebp + 8]
call fcn.010b9eea
cmp ax, bx
mov dword [ebp - 8], eax
jne 0x10ba8ba
mov ebx, dword [edi + 0x2044]
jmp 0x10ba82b
mov ebx, dword [esi + 0x50]
add ebx, dword [esi + 0x38]
call fcn.0109f691
xor eax, eax
mov ax, word [ebx]
mov dword [ebp + 0x10], 0xd
mov dword [ebp - 0x10], eax
xor eax, eax
mov ax, word [ebx + 0xa]
mov dword [ebp - 0x14], eax
mov al, byte [ebx + 0xe]
and byte [ebp + 0xf], 0
mov byte [ebp - 1], al
cmp dword [esi + 0x48], 0xc
push 0xc
push esi
jae 0x10ba86e
push dword [ebp + 8]
call fcn.010b9eea
test ax, ax
mov dword [ebp - 8], eax
jne 0x10ba8ba
mov ebx, dword [edi + 0x2044]
jmp 0x10ba879
mov ebx, dword [esi + 0x50]
add ebx, dword [esi + 0x38]
call fcn.0109f691
movzx eax, byte [ebp + 0xf]
mov ecx, dword [ebx + 2]
add dword [ebp + 0x10], 0xc
mov dword [edi + eax*8 + 0x2084], ecx
movzx eax, byte [ebp + 0xf]
mov ecx, dword [ebx + 6]
mov dword [edi + eax*8 + 0x2088], ecx
inc byte [ebp + 0xf]
mov bx, word [ebx + 0xa]
movzx eax, bx
cmp dword [esi + 0x48], eax
push eax
push esi
jae 0x10ba8ce
push dword [ebp + 8]
call fcn.010b9eea
test ax, ax
mov dword [ebp - 8], eax
je 0x10ba8d3
lea eax, [edi + 4]
push eax
push edi
push edi
call fcn.010b97ec
mov ax, word [ebp - 8]
jmp 0x10ba772
call fcn.0109f691
add dword [ebp + 0x10], ebx
cmp dword [esi + 0x48], 2
push 2
push esi
jae 0x10ba8fa
push dword [ebp + 8]
call fcn.010b9eea
test ax, ax
mov dword [ebp - 8], eax
jne 0x10ba8ba
mov eax, dword [edi + 0x2044]
mov bx, word [eax]
jmp 0x10ba909
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x38]
mov bx, word [eax + ecx]
call fcn.0109f691
add dword [ebp + 0x10], 2
movzx eax, bx
cmp dword [esi + 0x48], eax
push eax
push esi
jae 0x10ba929
push dword [ebp + 8]
call fcn.010b9eea
test ax, ax
mov dword [ebp - 8], eax
jne 0x10ba8ba
jmp 0x10ba92e
call fcn.0109f691
add dword [ebp + 0x10], ebx
mov ax, word [ebp + 0x10]
cmp ax, word [ebp - 0x10]
jb 0x10ba84d
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edi + 0x23f8]
jle 0x10ba9bc
push dword [edi]
mov ebx, dword [sym.imp.msvcrt.dll_fwrite]
push 1
lea eax, [ebp + 0xf]
push 1
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10ba9dc
push dword [edi]
push eax
lea eax, [ebp - 0x10]
push 2
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10ba9dc
push dword [edi]
push eax
lea eax, [ebp - 0x14]
push 2
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10ba9dc
push dword [edi]
push eax
push eax
lea eax, [ebp - 1]
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x10ba9dc
push dword [edi]
movzx eax, byte [ebp + 0xf]
push eax
lea eax, [edi + 0x2084]
push 8
push eax
call ebx
movzx ecx, byte [ebp + 0xf]
add esp, 0x10
cmp ecx, eax
jne 0x10ba9dc
test byte [ebp - 1], 0x30
jne 0x10ba9c9
xor ebx, ebx
jmp 0x10ba7fb
push 0
push 0
push dword [edi]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
je 0x10ba9e8
mov dword [ebp - 8], 0xfffffdf3
jmp 0x10ba8ba
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x23f8], eax
jmp 0x10ba8c5