Function at 0x48db50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510365
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x550144]
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
xor ebx, ebx
push 0x20
mov dword [ebp - 0x38], ebx
call fcn.004de4da
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x3c], esi
mov dword [esi], esi
mov dword [esi + 4], esi
push 0xffffffffffffffff
mov dword [ebp - 4], ebx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x48dbd7
lea ecx, [ebp - 0x3c]
call fcn.0048e0b0
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.004de51d
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x34]
push 0xffffffffffffffff
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x3c]
lea ecx, [edi + 0x2c]
cmp eax, ecx
je 0x48dc03
mov eax, esi
mov esi, dword [ecx]
mov dword [ecx], eax
mov eax, ebx
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], ebx
mov dword [ecx + 4], eax
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test ebx, ebx
je 0x48ddde
add edi, 0x28
cmp dword [edi], 0
jne 0x48dc8c
mov eax, dword [ebp - 0x34]
add eax, 0x10
cmp dword [eax + 0x14], 8
jb 0x48dc2a
mov eax, dword [eax]
push 0x538870
push eax
push edi
call fcn.004e9a89
mov eax, dword [edi]
add esp, 0xc
test eax, eax
je 0x48dc83
push 2
push 0
push eax
call fcn.004ea0b9
push dword [edi]
call fcn.004ea6b2
push 0
push 0
push dword [edi]
mov esi, eax
call fcn.004ea0b9
add esp, 0x1c
test esi, esi
jne 0x48dc80
push dword [edi]
lea eax, [ebp - 0x30]
mov word [ebp - 0x30], 0xfeff
push 2
push 1
push eax
mov byte [ebp - 0x2e], 0
call fcn.004f607c
add esp, 0x10
mov esi, dword [ebp - 0x2c]
cmp dword [edi], 0
je 0x48dbd4
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
nop dword [eax + eax]
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
add eax, 8
cmp ecx, eax
je 0x48dcd2
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x48dcc6
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0044a760
mov esi, dword [esi]
dec ebx
mov dword [ebp - 0x38], ebx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x1c]
cmp ecx, 8
jb 0x48dd1f
mov eax, dword [esi + 8]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x48dd15
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48ddff
mov eax, edx
push ecx
push eax
call fcn.004de50a
add esp, 8
xor eax, eax
mov dword [esi + 0x18], 0
push 0x20
push esi
mov dword [esi + 0x1c], 7
mov word [esi + 8], ax
call fcn.004de50a
add esp, 8
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 0x48dd72
mov eax, dword [edi]
test eax, eax
je 0x48dd72
push esi
push eax
call fcn.0048e230
push 0x538878
push dword [edi]
call fcn.0048e230
add esp, 0x10
mov esi, dword [ebp - 0x2c]
test ebx, ebx
jne 0x48dcb0
mov eax, dword [edi]
test eax, eax
je 0x48dd92
push eax
call fcn.004f33b0
add esp, 4
mov dword [edi], 0
mov edi, dword [ebp - 0x34]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
cmp edx, 8
jb 0x48dbd7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48ddcc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48ddff
push edx
push ecx
call fcn.004de50a
mov esi, dword [ebp - 0x2c]
add esp, 8
jmp 0x48dbd7
cmp dword [edi], 0
jne 0x48dbae
push 0xffffffffffffffff
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x48dbd7
jmp 0x48dbae
call fcn.004e36fa
int3