Function at 0x48c330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9890
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.00448e20
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 0x48c574
mov esi, dword [ebp - 0x2c]
jmp 0x48c3a3
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 0x48c3cc
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 0x48c55c
add edi, 0x28
cmp dword [edi], 0
jne 0x48c460
mov eax, dword [ebp - 0x34]
add eax, 0x10
cmp dword [eax + 0x14], 8
jb 0x48c3f3
mov eax, dword [eax]
push 0x4fb0e0
push eax
push edi
call fcn.004b010a
mov eax, dword [edi]
add esp, 0xc
test eax, eax
je 0x48c457
push 2
push 0
push eax
call fcn.004b043d
add esp, 0xc
push dword [edi]
call fcn.004b0a36
add esp, 4
mov esi, eax
push 0
push 0
push dword [edi]
call fcn.004b043d
add esp, 0xc
test esi, esi
jne 0x48c454
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.004bb8ac
add esp, 0x10
mov esi, dword [ebp - 0x2c]
cmp dword [edi], 0
je 0x48c3a0
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 0x48c48e
push 0xffffffffffffffff
push 0
push eax
call fcn.00439070
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 0x48c4b9
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00433850
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x48c4cf
mov esi, dword [esi]
xor eax, eax
push ebx
mov word [esi], ax
call fcn.004a4746
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 0x48c511
mov eax, dword [edi]
test eax, eax
je 0x48c511
push esi
push eax
call fcn.0048c840
push 0x4edd0c
push dword [edi]
call fcn.0048c840
add esp, 0x10
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
test esi, esi
jne 0x48c478
mov eax, dword [edi]
test eax, eax
je 0x48c534
push eax
call fcn.004b4992
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 0x48c3a3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00433850
jmp 0x48c3a3
cmp dword [edi], 0
jne 0x48c574
push 0xffffffffffffffff
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x48c3a3
lea ecx, [ebp - 0x30]
call fcn.00444420
push dword [ebp - 0x30]
call fcn.004a4746
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.004a474b
mov esp, ebp
pop ebp
ret