Function at 0x10b61d8
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10e607c]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [eax + 0xf8]
push esi
mov dword [ebp - 0x4c], eax
push edi
mov ecx, ebx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x50], 0x3d
mov dword [ebp - 0x42], 0x424c4f56
call fcn.010b619a
mov eax, dword [ebx + 0x34]
lea esi, [ebx + 0x44]
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor edx, edx
mov dword [ebp - 0x20], eax
mov ax, word [ebx + 0x38]
cmp ax, dx
mov word [ebp - 0x10], dx
mov word [ebp - 0xe], dx
mov word [ebp - 0x1c], ax
je 0x10b624b
mov word [ebp - 0x1a], 0x3d
mov ecx, dword [ebp - 0x1c]
add ecx, 0x3d
jmp 0x10b6252
mov ecx, dword [ebp - 0x50]
mov word [ebp - 0x1a], dx
mov ax, word [ebx + 0x3c]
cmp ax, dx
mov word [ebp - 0x18], ax
je 0x10b6268
mov word [ebp - 0x16], cx
add ecx, dword [ebp - 0x18]
jmp 0x10b626c
mov word [ebp - 0x16], dx
mov ax, word [ebx + 0x40]
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.msvcrt.dll_fwrite]
mov word [ebp - 0x14], ax
neg ax
mov dword [ebp - 0x28], edx
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0x18]
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x14]
add eax, ecx
mov ecx, dword [ebp - 0x1c]
xor edi, edi
lea eax, [eax + ecx + 0x3d]
inc edi
push edi
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x44]
push 0x24
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x10b6342
push dword [ebp - 0x4c]
lea eax, [ebp - 0x20]
push edi
push 0x19
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x10b6342
cmp word [ebp - 0x1c], 0
je 0x10b62ec
push dword [ebp - 0x4c]
movzx ecx, word [ebp - 0x1c]
movzx eax, word [ebx + 0x3a]
push ecx
add eax, ebx
push edi
push eax
call esi
movzx ecx, word [ebp - 0x1c]
add esp, 0x10
cmp eax, ecx
jne 0x10b6342
cmp word [ebp - 0x18], 0
je 0x10b6310
push dword [ebp - 0x4c]
movzx ecx, word [ebp - 0x18]
movzx eax, word [ebx + 0x3e]
push ecx
add eax, ebx
push edi
push eax
call esi
movzx ecx, word [ebp - 0x18]
add esp, 0x10
cmp eax, ecx
jne 0x10b6342
cmp word [ebp - 0x14], 0
je 0x10b6334
push dword [ebp - 0x4c]
movzx ecx, word [ebp - 0x14]
movzx eax, word [ebx + 0x42]
push ecx
add eax, ebx
push edi
push eax
call esi
movzx ecx, word [ebp - 0x14]
add esp, 0x10
cmp eax, ecx
jne 0x10b6342
push dword [ebp - 0x4c]
call dword [sym.imp.msvcrt.dll_fflush]
test eax, eax
pop ecx
je 0x10b6365
mov esi, dword [ebp - 0x48]
push edi
push 2
push esi
call fcn.010b4ebf
mov word [esi + 0xd6], di
mov word [esi + 0xd4], di
mov ax, 0xfde7
jmp 0x10b6484
mov eax, dword [ebp - 0x48]
cmp word [eax + 0xd2], 2
jne 0x10b6481
cmp word [eax + 0xd4], 0
jne 0x10b6481
mov ecx, dword [eax + 0xf0]
mov eax, dword [eax + 0x3ac]
push ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x28], eax
call dword [sym.imp.msvcrt.dll_ftell]
push dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
push edi
mov dword [ecx + 0x3ac], eax
lea eax, [ebp - 0x44]
push 0x24
push eax
call esi
add esp, 0x14
cmp eax, edi
jne 0x10b642d
push dword [ebp - 0x4c]
lea eax, [ebp - 0x20]
push edi
push 0x19
push eax
call esi
add esp, 0x10
cmp eax, edi
jne 0x10b642d
cmp word [ebp - 0x1c], 0
je 0x10b6409
push dword [ebp - 0x4c]
movzx ecx, word [ebp - 0x1c]
movzx eax, word [ebx + 0x3a]
push ecx
add eax, ebx
push edi
push eax
call esi
movzx ecx, word [ebp - 0x1c]
add esp, 0x10
cmp eax, ecx
je 0x10b6409
mov esi, dword [ebp - 0x48]
push edi
push 2
push esi
call fcn.010b4ebf
mov word [esi + 0xd6], di
mov bx, 0xfde7
jmp 0x10b643e
cmp word [ebp - 0x18], 0
je 0x10b644a
push dword [ebp - 0x4c]
movzx ecx, word [ebp - 0x18]
movzx eax, word [ebx + 0x3e]
push ecx
add eax, ebx
push edi
push eax
call esi
movzx ecx, word [ebp - 0x18]
add esp, 0x10
cmp eax, ecx
je 0x10b644a
push edi
push 0
push dword [ebp - 0x48]
xor bx, bx
call fcn.010b4ebf
mov esi, dword [ebp - 0x48]
mov word [esi + 0xd4], di
mov ax, bx
jmp 0x10b6484
cmp word [ebp - 0x14], 0
je 0x10b6481
push dword [ebp - 0x4c]
movzx ecx, word [ebp - 0x14]
movzx eax, word [ebx + 0x42]
push ecx
add eax, ebx
push edi
push eax
call esi
movzx ecx, word [ebp - 0x14]
add esp, 0x10
cmp eax, ecx
je 0x10b6481
mov esi, dword [ebp - 0x48]
push edi
push 0
push esi
call fcn.010b4ebf
mov word [esi + 0xd4], di
xor ax, ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret 0xc