Function at 0x44c9be
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48babd
mov eax, dword fs:[0]
push eax
mov eax, 0x4354
call fcn.0042b180
mov eax, dword [0x4b135c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0xc]
lea esi, [ebx + 0x340]
push esi
mov dword [ebp - 0x4350], edi
mov dword [ebp - 0x4360], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
cmp dword [ebp + 0x14], 3
mov dword [ebp - 0x4348], eax
mov dword [ebp - 4], eax
je 0x44ccfa
cmp dword [ebp + 0x14], 2
je 0x44ca40
cmp dword [ebp + 0x14], 1
je 0x44ca40
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x10000
jmp 0x44cdae
cmp dword [ebx + 4], 0xffffffff
je 0x44ca4e
push dword [ebx]
call fcn.0044f28b
pop ecx
mov ecx, dword [ebx]
or dword [ebx + 4], 0xffffffff
mov eax, dword [ebp + 8]
cmp eax, dword [ecx + 4]
jl 0x44ca6b
mov dword [ebp - 0x4348], 0x10000
jmp 0x44cda1
cmp eax, dword [ecx + 0x10]
jge 0x44ca77
push ecx
call fcn.0044f31c
pop ecx
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
cmp dword [eax + 0x10], ecx
jge 0x44ca98
mov esi, ecx
push dword [ebx]
call fcn.0044f35b
mov eax, dword [ebx]
pop ecx
cmp dword [eax + 0x10], esi
jl 0x44ca83
lea esi, [ebx + 0x340]
lea eax, [ebp - 0x4344]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.0044c3d4
test byte [ebp - 0x423c], 0x10
je 0x44caef
cmp dword [ebp + 0x14], 1
je 0x44cda1
push 0x103
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x4340]
push eax
call fcn.0044c886
lea eax, [ebp - 0x218]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0044c173
add esp, 0x14
jmp 0x44cd8d
cmp dword [ebp + 0x14], 1
je 0x44cc26
movzx ecx, word [edi]
mov eax, edi
mov edx, edi
test cx, cx
je 0x44cc0b
mov dword [ebp - 0x4358], 0x2f
mov dword [ebp - 0x4354], 0x5c
cmp cx, word [ebp - 0x4358]
je 0x44cb2f
cmp cx, word [ebp - 0x4354]
jne 0x44cb32
lea eax, [edx + 2]
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x44cb1d
mov dword [ebp - 0x435c], eax
cmp eax, edi
je 0x44cc0b
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004713df
mov eax, dword [ebp - 0x435c]
sub eax, edi
sar eax, 1
pop ecx
pop ecx
lea eax, [eax*2 - 2]
cmp eax, 0x208
jae 0x44cc3a
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
mov eax, dword [ebp - 0x4358]
cmp word [ebp - 0x218], ax
je 0x44cbae
mov eax, dword [ebp - 0x4354]
cmp word [ebp - 0x218], ax
je 0x44cbae
cmp word [ebp - 0x216], 0x3a
mov byte [ebp - 0x4349], cl
jne 0x44cbb5
mov byte [ebp - 0x4349], 1
lea eax, [ebp - 0x218]
push 0x49827c
push eax
call fcn.004713ff
mov edi, eax
lea eax, [ebp - 0x218]
push 0x498284
push eax
call fcn.004713ff
add esp, 0x10
test eax, eax
setne cl
test edi, edi
setne al
or cl, al
or cl, byte [ebp - 0x4349]
jne 0x44cc05
lea eax, [ebp - 0x218]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0044c173
pop ecx
pop ecx
mov edi, dword [ebp - 0x4350]
xor eax, eax
push eax
push dword [ebp - 0x423c]
push 2
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44cc3f
mov dword [ebp - 0x4348], 0x200
jmp 0x44cda1
call fcn.0041dea5
push dword [ebx]
call fcn.0044f4a2
mov dword [esp], 0x4000
jmp 0x44cc72
je 0x44cc8e
push 0
lea ecx, [ebp - 0x4354]
push ecx
push eax
lea eax, [ebp - 0x4218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44cc87
push 0x4000
lea eax, [ebp - 0x4218]
push eax
push dword [ebx]
call fcn.0044f711
add esp, 0xc
test eax, eax
jns 0x44cc4f
mov byte [ebp - 0x4348], 1
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x44ccbf
cmp byte [ebp - 0x4348], 0
jne 0x44ccbf
lea eax, [ebp - 0x4228]
push eax
lea eax, [ebp - 0x4238]
push eax
lea eax, [ebp - 0x4230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 1
je 0x44cccc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx]
call fcn.0044f28b
cmp byte [ebp - 0x4348], 0
pop ecx
je 0x44ccec
mov dword [ebp - 0x4348], 0x400
jmp 0x44cda1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x44cdae
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 4]
je 0x44cd5d
cmp dword [ebx + 4], 0xffffffff
je 0x44cd13
push dword [ebx]
call fcn.0044f28b
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebx]
or dword [ebx + 4], 0xffffffff
cmp eax, dword [ecx + 4]
jge 0x44ca5c
cmp eax, dword [ecx + 0x10]
jge 0x44cd2e
push ecx
call fcn.0044f31c
pop ecx
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
cmp dword [eax + 0x10], ecx
jge 0x44cd4f
mov edi, ecx
push dword [ebx]
call fcn.0044f35b
mov eax, dword [ebx]
pop ecx
cmp dword [eax + 0x10], edi
jl 0x44cd3a
mov edi, dword [ebp - 0x4350]
push dword [ebx]
call fcn.0044f4a2
mov eax, dword [ebp + 8]
pop ecx
mov dword [ebx + 4], eax
push dword [ebp + 0x10]
push edi
push dword [ebx]
call fcn.0044f711
mov edi, eax
add esp, 0xc
test edi, edi
jle 0x44cd7d
mov dword [ebp - 0x4348], 0x600
jmp 0x44cda1
push dword [ebx]
call fcn.0044f28b
or dword [ebx + 4], 0xffffffff
pop ecx
test edi, edi
jne 0x44cd97
xor eax, eax
mov dword [ebp - 0x4348], eax
jmp 0x44cda1
mov dword [ebp - 0x4348], 0x5000000
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x4348]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret 0x10