Function at 0x48dbd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ff45
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.004de0ba
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 0x48dc57
lea ecx, [ebp - 0x3c]
call fcn.0048e130
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.004de0fd
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 0x48dc83
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 0x48de5e
add edi, 0x28
cmp dword [edi], 0
jne 0x48dd0c
mov eax, dword [ebp - 0x34]
add eax, 0x10
cmp dword [eax + 0x14], 8
jb 0x48dcaa
mov eax, dword [eax]
push 0x538678
push eax
push edi
call fcn.004e9669
mov eax, dword [edi]
add esp, 0xc
test eax, eax
je 0x48dd03
push 2
push 0
push eax
call fcn.004e9c99
push dword [edi]
call fcn.004ea292
push 0
push 0
push dword [edi]
mov esi, eax
call fcn.004e9c99
add esp, 0x1c
test esi, esi
jne 0x48dd00
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.004f5c5c
add esp, 0x10
mov esi, dword [ebp - 0x2c]
cmp dword [edi], 0
je 0x48dc54
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 0x48dd52
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x48dd46
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0044a770
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 0x48dd9f
mov eax, dword [esi + 8]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x48dd95
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48de7f
mov eax, edx
push ecx
push eax
call fcn.004de0ea
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.004de0ea
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 0x48ddf2
mov eax, dword [edi]
test eax, eax
je 0x48ddf2
push esi
push eax
call fcn.0048e2b0
push 0x538680
push dword [edi]
call fcn.0048e2b0
add esp, 0x10
mov esi, dword [ebp - 0x2c]
test ebx, ebx
jne 0x48dd30
mov eax, dword [edi]
test eax, eax
je 0x48de12
push eax
call fcn.004f2f90
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 0x48dc57
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48de4c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48de7f
push edx
push ecx
call fcn.004de0ea
mov esi, dword [ebp - 0x2c]
add esp, 8
jmp 0x48dc57
cmp dword [edi], 0
jne 0x48dc2e
push 0xffffffffffffffff
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x48dc57
jmp 0x48dc2e
call fcn.004e32da
int3