Function at 0x4d20e0
Capabilities:
Clear file content

Disassembly:
push 0xffffffffffffffff
push 0x591a70
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
xorps xmm0, xmm0
lea edi, [ecx + 0x24]
xor al, al
movq qword [esp + 0x54], xmm0
mov dword [esp + 0x54], edi
mov byte [esp + 0x1a], al
mov byte [esp + 0x58], al
test edi, edi
je 0x4d2166
mov eax, dword [edi]
test eax, eax
jne 0x4d213c
xor al, al
jmp 0x4d215e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4d2154
cmp eax, 0x80
je 0x4d2154
xor al, al
jmp 0x4d215a
mov byte [edi + 4], 1
mov al, 1
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x1a], al
mov byte [esp + 0x58], al
mov dword [esp + 0x68], 0
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov dword [esp + 0x10], eax
cmp esi, eax
je 0x4d2199
mov edi, eax
lea ecx, [ecx]
mov ecx, esi
call fcn.004cb840
add esi, 0xf0
cmp esi, edi
jne 0x4d2180
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
lea eax, [esp + 0x1c]
push eax
call fcn.004d2880
mov byte [esp + 0x68], 1
xorps xmm0, xmm0
movdqu xmmword [esp + 0x44], xmm0
xor eax, eax
mov dword [esp + 0x48], 0
movdqu xmmword [esp + 0x34], xmm0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
mov byte [esp + 0x68], 3
mov dword [esp + 0x50], eax
mov byte [esp + 0x68], 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b], al
call fcn.004b24f0
movzx ecx, byte [esp + 0x1b]
test al, al
mov edx, 1
cmove ecx, edx
xor eax, eax
test cl, cl
push ecx
sete al
lea eax, [eax*2 + 1]
push eax
push ecx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x44]
call fcn.004b84a0
test al, al
jne 0x4d223e
mov byte [esp + 0x1b], al
jmp 0x4d22a3
lea eax, [esp + 0xc]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x44]
movlpd qword [esp + 0x1c], xmm0
call fcn.004b80e0
mov eax, dword [esp + 0x34]
cmp eax, 0xffffffff
je 0x4d2283
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esp + 0x34]
cmp eax, 0xffffffff
je 0x4d2283
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x34], 0xffffffff
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
mov dword [esp + 0x48], 0
cmovae eax, dword [esp + 0x38]
xor ecx, ecx
mov byte [esp + 0x1b], 1
mov word [eax], cx
mov byte [esp + 0x68], 1
lea ecx, [esp + 0x34]
call fcn.004b7de0
mov byte [esp + 0x68], 0
cmp dword [esp + 0x30], 8
jb 0x4d22c9
push dword [esp + 0x1c]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
mov dword [esp + 0x68], 0xffffffff
test edi, edi
je 0x4d230d
cmp byte [esp + 0x1a], al
je 0x4d230d
mov eax, dword [edi]
test eax, eax
je 0x4d22ff
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [edi + 4], 0
mov dword [esp + 0x54], 0
jmp 0x4d2311
mov dword [esp + 0x54], eax
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00564de8
add esp, 0x60
ret