Function at 0x48d950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db400
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x511070]
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 edi, ecx
mov dword [ebp - 0x34], edi
push 0
push 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.0044ba40
mov ebx, eax
mov dword [ebp - 0x30], ebx
push 0xffffffffffffffff
mov dword [ebp - 4], 0
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x48db94
mov esi, dword [ebp - 0x2c]
jmp 0x48d9c3
mov edi, dword [ebp - 0x34]
push 0xffffffffffffffff
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x30]
lea ecx, [edi + 0x2c]
cmp eax, ecx
je 0x48d9ec
mov eax, ebx
mov ebx, dword [ecx]
mov dword [ecx], eax
mov eax, esi
mov esi, dword [ecx + 4]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
mov dword [ecx + 4], eax
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x48db7c
add edi, 0x28
cmp dword [edi], 0
jne 0x48da80
mov eax, dword [ebp - 0x34]
add eax, 0x10
cmp dword [eax + 0x14], 8
jb 0x48da13
mov eax, dword [eax]
push 0x4fb3f0
push eax
push edi
call fcn.004b1655
mov eax, dword [edi]
add esp, 0xc
test eax, eax
je 0x48da77
push 2
push 0
push eax
call fcn.004b1988
add esp, 0xc
push dword [edi]
call fcn.004b1f81
add esp, 4
mov esi, eax
push 0
push 0
push dword [edi]
call fcn.004b1988
add esp, 0xc
test esi, esi
jne 0x48da74
push dword [edi]
xor eax, eax
mov word [ebp - 0x3b], ax
push 2
mov byte [ebp - 0x3a], al
lea eax, [ebp - 0x3c]
push 1
push eax
mov word [ebp - 0x3c], 0xfeff
call fcn.004bce1c
add esp, 0x10
mov esi, dword [ebp - 0x2c]
cmp dword [edi], 0
je 0x48d9c0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
mov eax, dword [ebx]
lea ecx, [ebp - 0x28]
add eax, 8
cmp ecx, eax
je 0x48daae
push 0xffffffffffffffff
push 0
push eax
call fcn.00438df0
mov ebx, dword [ebx]
dec esi
mov dword [ebp - 0x2c], esi
lea esi, [ebx + 8]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ecx], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x48dad9
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00433600
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x48daef
mov esi, dword [esi]
xor eax, eax
push ebx
mov word [esi], ax
call fcn.004a5d0e
add esp, 4
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae esi, dword [ebp - 0x28]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x48db31
mov eax, dword [edi]
test eax, eax
je 0x48db31
push esi
push eax
call fcn.0048de60
push 0x4eec9c
push dword [edi]
call fcn.0048de60
add esp, 0x10
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
test esi, esi
jne 0x48da98
mov eax, dword [edi]
test eax, eax
je 0x48db54
push eax
call fcn.004b5ee2
add esp, 4
mov dword [edi], 0
mov edi, dword [ebp - 0x34]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x30]
cmp eax, 8
jb 0x48d9c3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00433600
jmp 0x48d9c3
cmp dword [edi], 0
jne 0x48db94
push 0xffffffffffffffff
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x48d9c3
lea ecx, [ebp - 0x30]
call fcn.00446f70
push dword [ebp - 0x30]
call fcn.004a5d0e
add esp, 4
xor eax, eax
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.004a5d13
mov esp, ebp
pop ebp
ret