Function at 0x10a359f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xf8]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
push edi
mov ecx, ebx
lea eax, [ebp - 0x48]
mov dword [ebp - 8], 0x3d
mov dword [ebp - 0x46], 0x424c4f56
call fcn.010a3566
mov eax, dword [ebx + 0x34]
lea esi, [ebx + 0x44]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor edx, edx
mov dword [ebp - 0x24], eax
mov ax, word [ebx + 0x38]
cmp ax, dx
mov word [ebp - 0x14], dx
mov word [ebp - 0x12], dx
mov word [ebp - 0x20], ax
je 0x10a3605
mov word [ebp - 0x1e], 0x3d
mov ecx, dword [ebp - 0x20]
add ecx, 0x3d
jmp 0x10a360c
mov ecx, dword [ebp - 8]
mov word [ebp - 0x1e], dx
mov ax, word [ebx + 0x3c]
cmp ax, dx
mov word [ebp - 0x1c], ax
je 0x10a3622
mov word [ebp - 0x1a], cx
add ecx, dword [ebp - 0x1c]
jmp 0x10a3626
mov word [ebp - 0x1a], dx
mov ax, word [ebx + 0x40]
push dword [ebp - 4]
mov esi, dword [sym.imp.msvcrt.dll_fwrite]
mov word [ebp - 0x18], ax
neg ax
mov dword [ebp - 0x2c], edx
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0x1c]
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x18]
add eax, ecx
mov ecx, dword [ebp - 0x20]
xor edi, edi
lea eax, [eax + ecx + 0x3d]
inc edi
push edi
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x48]
push 0x24
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x10a36fc
push dword [ebp - 4]
lea eax, [ebp - 0x24]
push edi
push 0x19
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x10a36fc
cmp word [ebp - 0x20], 0
je 0x10a36a6
push dword [ebp - 4]
movzx ecx, word [ebp - 0x20]
movzx eax, word [ebx + 0x3a]
push ecx
add eax, ebx
push edi
push eax
call esi
movzx ecx, word [ebp - 0x20]
add esp, 0x10
cmp eax, ecx
jne 0x10a36fc
cmp word [ebp - 0x1c], 0
je 0x10a36ca
push dword [ebp - 4]
movzx ecx, word [ebp - 0x1c]
movzx eax, word [ebx + 0x3e]
push ecx
add eax, ebx
push edi
push eax
call esi
movzx ecx, word [ebp - 0x1c]
add esp, 0x10
cmp eax, ecx
jne 0x10a36fc
cmp word [ebp - 0x18], 0
je 0x10a36ee
push dword [ebp - 4]
movzx ecx, word [ebp - 0x18]
movzx eax, word [ebx + 0x42]
push ecx
add eax, ebx
push edi
push eax
call esi
movzx ecx, word [ebp - 0x18]
add esp, 0x10
cmp eax, ecx
jne 0x10a36fc
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_fflush]
test eax, eax
pop ecx
je 0x10a371f
mov esi, dword [ebp + 8]
push edi
push 2
push esi
call fcn.010a2357
mov word [esi + 0xd6], di
mov word [esi + 0xd4], di
mov ax, 0xfde7
jmp 0x10a383e
mov eax, dword [ebp + 8]
cmp word [eax + 0xd2], 2
jne 0x10a383b
cmp word [eax + 0xd4], 0
jne 0x10a383b
mov ecx, dword [eax + 0xf0]
mov eax, dword [eax + 0x3ac]
push ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.msvcrt.dll_ftell]
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
push edi
mov dword [ecx + 0x3ac], eax
lea eax, [ebp - 0x48]
push 0x24
push eax
call esi
add esp, 0x14
cmp eax, edi
jne 0x10a37e7
push dword [ebp - 4]
lea eax, [ebp - 0x24]
push edi
push 0x19
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x10a37e7
cmp word [ebp - 0x20], 0
je 0x10a37c3
push dword [ebp - 4]
movzx ecx, word [ebp - 0x20]
movzx eax, word [ebx + 0x3a]
push ecx
add eax, ebx
push edi
push eax
call esi
movzx ecx, word [ebp - 0x20]
add esp, 0x10
cmp eax, ecx
je 0x10a37c3
mov esi, dword [ebp + 8]
push edi
push 2
push esi
call fcn.010a2357
mov word [esi + 0xd6], di
mov bx, 0xfde7
jmp 0x10a37f8
cmp word [ebp - 0x1c], 0
je 0x10a3804
push dword [ebp - 4]
movzx ecx, word [ebp - 0x1c]
movzx eax, word [ebx + 0x3e]
push ecx
add eax, ebx
push edi
push eax
call esi
movzx ecx, word [ebp - 0x1c]
add esp, 0x10
cmp eax, ecx
je 0x10a3804
push edi
push 0
push dword [ebp + 8]
xor bx, bx
call fcn.010a2357
mov esi, dword [ebp + 8]
mov word [esi + 0xd4], di
mov ax, bx
jmp 0x10a383e
cmp word [ebp - 0x18], 0
je 0x10a383b
push dword [ebp - 4]
movzx ecx, word [ebp - 0x18]
movzx eax, word [ebx + 0x42]
push ecx
add eax, ebx
push edi
push eax
call esi
movzx ecx, word [ebp - 0x18]
add esp, 0x10
cmp eax, ecx
je 0x10a383b
mov esi, dword [ebp + 8]
push edi
push 0
push esi
call fcn.010a2357
mov word [esi + 0xd4], di
xor ax, ax
pop edi
pop esi
pop ebx
leave
ret 0xc