Function at 0x4e01c0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x420
mov ecx, dword [0x7cf790]
test ecx, ecx
je 0x4e0500
mov edx, dword [0x7cf78c]
test edx, edx
je 0x4e0500
xor eax, eax
lea esi, [ebp - 0x41c]
lea ebx, [ebp - 0x214]
mov word [ebp - 0x214], ax
mov dword [esp + 4], esi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
sub esp, 8
mov dword [esp], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5e7dcc
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
sub esp, 0x10
mov edi, eax
call fcn.0057d110
mov esi, dword fs:[0x18]
mov dword [eax], 0x5e6553
mov dword [eax + 4], 0x4b1
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.GetTempFileName_failed_err__lu_n
call fcn.004df840
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp], ebx
call dword [0x7cf790]
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5e6553
mov dword [eax + 4], 0x4b4
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.AddDllDirectory_failed_err__lu_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
setne al
mov dword [esp], eax
call fcn.004df840
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp], edi
call dword [0x7cf78c]
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5e6553
mov dword [eax + 4], 0x4b7
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.RemoveDllDirectory_failed_err__lu_n
call fcn.004df840
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov dword [esi + 0x34], 0xdeadbeef
sub esp, 4
mov dword [esp], ebx
call dword [0x7cf790]
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5e6553
mov dword [eax + 4], 0x4bc
xor eax, eax
test edi, edi
sete al
mov dword [esp + 4], str.AddDllDirectory_succeeded_n
mov dword [esp], eax
call fcn.004df840
call fcn.0057d110
mov dword [eax], 0x5e6553
mov dword [eax + 4], 0x4bd
mov eax, dword [esi + 0x34]
mov dword [esp + 4], 0x5e6856
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 2
sete al
mov dword [esp], eax
call fcn.004df840
mov dword [esp], 0x5e7dc4
call dword [0x7cf790]
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5e6553
mov dword [eax + 4], 0x4bf
xor eax, eax
test edi, edi
sete al
mov dword [esp + 4], str.AddDllDirectory_succeeded_n
mov dword [esp], eax
call fcn.004df840
call fcn.0057d110
mov dword [eax], 0x5e6553
mov dword [eax + 4], 0x4c0
mov eax, dword [esi + 0x34]
mov dword [esp + 4], 0x5e6856
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 0x57
sete al
mov dword [esp], eax
call fcn.004df840
mov dword [esp], 0x5e7dc0
call dword [0x7cf790]
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5e6553
mov dword [eax + 4], 0x4c2
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.AddDllDirectory_failed_err__lu_n
mov dword [esp + 8], eax
xor eax, eax
test edi, edi
setne al
mov dword [esp], eax
call fcn.004df840
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp], edi
call dword [0x7cf78c]
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5e6553
mov dword [eax + 4], 0x4c5
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.RemoveDllDirectory_failed_err__lu_n
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.004df840
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
xor eax, eax
sub esp, 8
lea esi, [esi]
movzx edx, word [eax + 0x5e7dcc]
mov word [ebp + eax - 0x210], dx
add eax, 2
test dx, dx
jne 0x4e0468
mov dword [esp], ebx
call dword [0x7cf790]
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5e6553
mov dword [eax + 4], 0x4c9
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 4], str.AddDllDirectory_succeeded_n
mov dword [esp], eax
call fcn.004df840
call fcn.0057d110
mov dword [eax], 0x5e6553
mov dword [eax + 4], 0x4ca
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
mov dword [esp + 4], 0x5e6856
mov dword [esp + 8], edx
cmp dword [eax + 0x34], 0x57
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004df840
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0057d110
mov dword [eax], 0x5e6553
mov dword [eax + 4], 0x4aa
mov dword [esp], str.AddDllDirectory_not_available_n
call fcn.004dfda0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret