Function at 0x48d430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dadc0
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 0x48d674
mov esi, dword [ebp - 0x2c]
jmp 0x48d4a3
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 0x48d4cc
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 0x48d65c
add edi, 0x28
cmp dword [edi], 0
jne 0x48d560
mov eax, dword [ebp - 0x34]
add eax, 0x10
cmp dword [eax + 0x14], 8
jb 0x48d4f3
mov eax, dword [eax]
push 0x4fb250
push eax
push edi
call fcn.004b10ba
mov eax, dword [edi]
add esp, 0xc
test eax, eax
je 0x48d557
push 2
push 0
push eax
call fcn.004b13ed
add esp, 0xc
push dword [edi]
call fcn.004b19e6
add esp, 4
mov esi, eax
push 0
push 0
push dword [edi]
call fcn.004b13ed
add esp, 0xc
test esi, esi
jne 0x48d554
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.004bc81c
add esp, 0x10
mov esi, dword [ebp - 0x2c]
cmp dword [edi], 0
je 0x48d4a0
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 0x48d58e
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 0x48d5b9
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 0x48d5cf
mov esi, dword [esi]
xor eax, eax
push ebx
mov word [esi], ax
call fcn.004a5788
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 0x48d611
mov eax, dword [edi]
test eax, eax
je 0x48d611
push esi
push eax
call fcn.0048d940
push 0x4eec9c
push dword [edi]
call fcn.0048d940
add esp, 0x10
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
test esi, esi
jne 0x48d578
mov eax, dword [edi]
test eax, eax
je 0x48d634
push eax
call fcn.004b58e1
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 0x48d4a3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00433600
jmp 0x48d4a3
cmp dword [edi], 0
jne 0x48d674
push 0xffffffffffffffff
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x48d4a3
lea ecx, [ebp - 0x30]
call fcn.00446f70
push dword [ebp - 0x30]
call fcn.004a5788
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.004a578d
mov esp, ebp
pop ebp
ret