Function at 0x419e20
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x4beb20
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4f55dc]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
push edi
mov eax, dword [0x4f55dc]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov dword [esp + 0x10], ecx
xorps xmm0, xmm0
lea edi, [ecx + 0x24]
xor al, al
movq qword [esp + 0x1c], xmm0
mov dword [esp + 0x1c], edi
mov byte [esp + 0xf], al
mov byte [esp + 0x20], al
test edi, edi
je 0x419eac
mov eax, dword [edi]
test eax, eax
jne 0x419e82
xor al, al
jmp 0x419ea4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x419e9a
cmp eax, 0x80
je 0x419e9a
xor al, al
jmp 0x419ea0
mov byte [edi + 4], 1
mov al, 1
mov ecx, dword [esp + 0x10]
mov byte [esp + 0xf], al
mov byte [esp + 0x20], al
mov dword [esp + 0x70], 0
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov dword [esp + 0x14], eax
cmp esi, eax
je 0x419edc
mov edi, eax
mov ecx, esi
call fcn.0040f450
add esi, 0xf0
cmp esi, edi
jne 0x419ec3
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
lea eax, [esp + 0x48]
push eax
call fcn.0041a620
mov byte [esp + 0x70], 1
xorps xmm0, xmm0
movdqa xmmword [esp + 0x34], xmm0
xor eax, eax
movdqa xmmword [esp + 0x24], xmm0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
mov byte [esp + 0x70], 3
mov dword [esp + 0x40], eax
mov byte [esp + 0x70], 4
lea ecx, [esp + 0x48]
mov byte [esp + 0xe], al
call fcn.0040b100
movzx ecx, byte [esp + 0xe]
test al, al
mov edx, 1
cmove ecx, edx
xor eax, eax
test cl, cl
sete al
xor cl, cl
mov byte [esp + 0xe], cl
lea eax, [eax*2 + 1]
cmp eax, 2
jne 0x419f94
push ecx
push edx
push edx
push 0x40000000
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x38]
call fcn.00443040
test al, al
je 0x419f8f
mov cl, 1
jmp 0x419fbe
push ecx
push 2
jmp 0x419fa5
cmp eax, 1
jne 0x419fa3
mov cl, dl
push ecx
mov byte [esp + 0x12], cl
push eax
jmp 0x419fa5
push ecx
push eax
push 1
push 0x40000000
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x38]
call fcn.00443040
mov cl, byte [esp + 0xe]
test al, al
je 0x41a03f
test cl, cl
je 0x419fd8
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x419fd8
mov eax, dword [ecx]
lea edx, [esp + 0x48]
push edx
call dword [eax + 4]
lea eax, [esp + 0x14]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x34]
movlpd qword [esp + 0x24], xmm0
call fcn.00443260
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x41a01d
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x41a01d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], 0xffffffff
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
mov dword [esp + 0x38], 0
cmovae eax, dword [esp + 0x28]
xor ecx, ecx
mov byte [esp + 0xe], 1
mov word [eax], cx
jmp 0x41a044
mov byte [esp + 0xe], 0
mov byte [esp + 0x70], 1
lea ecx, [esp + 0x24]
call fcn.00442fa0
mov byte [esp + 0x70], 0
cmp dword [esp + 0x5c], 8
jb 0x41a06a
push dword [esp + 0x48]
call fcn.0049c766
add esp, 4
xor eax, eax
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
mov dword [esp + 0x70], 0xffffffff
test edi, edi
je 0x41a0ae
cmp byte [esp + 0xf], al
je 0x41a0ae
mov eax, dword [edi]
test eax, eax
je 0x41a0a0
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [edi + 4], 0
mov dword [esp + 0x1c], 0
jmp 0x41a0b2
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0xe]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.0049bfa3
mov esp, ebp
pop ebp
ret