Function at 0x10c4ebf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xe4
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xf8]
xor ebx, ebx
mov eax, dword [edi + 0x1bc]
cmp eax, ebx
je 0x10c4ec11
mov esi, dword [eax]
jmp 0x10c4ec13
xor esi, esi
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCRT.dll_ftell]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xae]
add esp, 4
xor ecx, ecx
cmp eax, ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
mov dword [esp + 0x1c], ecx
jbe 0x10c4ece9
test byte [esi + 0xc], 0x20
jne 0x10c4ece9
mov eax, ecx
and eax, 0xffff
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x9a]
shl edx, 4
add eax, edx
mov ebp, dword [eax]
mov eax, dword [eax + 0xc]
test ebp, ebp
mov dword [esp + 0x20], eax
je 0x10c4ecce
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
inc edi
xor eax, eax
mov dword [esp + 0x18], edi
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
mov dword [esp + 0x14], ecx
push 1
lea ecx, [esp + 0x24]
push 2
push ecx
call ebx
add esp, 0x10
lea edx, [esp + 0x20]
push esi
push 1
push 4
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x10]
push esi
push 1
push 4
push eax
call ebx
mov ecx, dword [esp + 0x20]
add esp, 0x10
push esi
push ecx
push 1
push ebp
call ebx
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x108]
add esp, 0x10
mov eax, dword [edi + 0xae]
inc ecx
mov edx, ecx
mov dword [esp + 0x1c], ecx
and edx, 0xffff
cmp edx, eax
jb 0x10c4ec43
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x92]
add esp, 4
test eax, eax
je 0x10c4ed18
mov ecx, dword [eax]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0x92]
mov eax, dword [edx + 8]
test eax, eax
je 0x10c4ed18
mov eax, dword [eax + 8]
jmp 0x10c4ed1a
xor eax, eax
test eax, eax
je 0x10c4eda7
cmp dword [eax], 1
je 0x10c4ed6b
mov ebp, dword [eax + 4]
test ebp, ebp
je 0x10c4ed6b
mov eax, dword [esp + 0x14]
mov edi, ebp
inc eax
or ecx, 0xffffffff
mov dword [esp + 0x14], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push esi
push 1
lea eax, [esp + 0x18]
dec ecx
push 4
push eax
mov dword [esp + 0x20], ecx
call ebx
mov ecx, dword [esp + 0x20]
add esp, 0x10
push esi
push ecx
push 1
push ebp
call ebx
mov edi, dword [esp + 0x108]
add esp, 0x10
mov eax, dword [edi + 0x92]
test eax, eax
je 0x10c4ed9d
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10c4ed86
cmp ecx, dword [eax + 4]
je 0x10c4ed86
mov ecx, dword [ecx + 4]
jmp 0x10c4ed88
xor ecx, ecx
mov dword [eax + 8], ecx
mov edx, dword [edi + 0x92]
mov eax, dword [edx + 8]
test eax, eax
je 0x10c4ed9d
mov eax, dword [eax + 8]
jmp 0x10c4ed9f
xor eax, eax
test eax, eax
jne 0x10c4ed22
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.10c4ee50
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov eax, dword [edi + 0xae]
mov edi, dword [edi + 0x1bc]
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc4], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], edx
mov eax, dword [edi + 0x18]
add esp, 8
mov dword [esp + 0xcc], eax
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0xd0], ecx
mov edx, dword [edi + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push 0
push esi
mov dword [esp + 0xe4], edx
call edi
add esp, 0xc
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.10c4e8a0
add esp, 8
push 2
push 0
push esi
call edi
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret