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

Disassembly:
push 0xffffffffffffffff
push 0x425e7d
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x4321e0]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4321e0]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2b0]
lea ebp, [eax + 0x2c]
mov eax, dword [ebp]
mov ecx, 0x42bccc
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404df6
test dx, dx
je 0x404df2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404df6
add eax, 4
add ecx, 4
test dx, dx
jne 0x404dd0
xor eax, eax
jmp 0x404dfb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404e54
lea ecx, [esp + 0x14]
call fcn.004048d0
mov edi, eax
mov eax, ebp
mov dword [esp + 0x2a8], 0
call fcn.00406520
mov dword [esp + 0x2a8], 0xffffffff
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x433164
je 0x404e54
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404e54
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00417bee
add esp, 4
mov edx, dword [ebp]
cmp dword [edx - 8], 0
je 0x405112
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x9e]
push ecx
mov word [esp + 0xa0], ax
call fcn.0041a210
add esp, 0xc
lea edx, [esp + 0x94]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [esp + 0x94]
lea esi, [esp + 0x14]
call fcn.00401f30
push str.udsfavoriteitems.zip
push str.udsfavoriteitems.zip
mov dword [esp + 0x2b0], 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea edi, [esp + 0x18]
call fcn.004067e0
push 0x42bea8
push 0x81
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x404f00
mov esi, dword [esp + 0x14]
push esi
call fcn.00411000
add esp, 4
test al, al
je 0x404f00
mov eax, dword [ebp]
push eax
mov ecx, esi
call fcn.00410ac0
add esp, 4
lea eax, [esp + 0x1c]
push eax
call fcn.00404b40
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x2b0], 2
call fcn.00406320
mov eax, dword [esp + 0x1c]
lea edx, [eax - 0xc]
cmp edx, 0x433164
je 0x404f4a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404f4a
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00417bee
add esp, 4
mov ebx, 7
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], edi
mov word [esp + 0x60], ax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], edi
mov word [esp + 0x7c], cx
mov dword [esp + 0x58], vtable.FavoritesUrlBinder.0
mov byte [esp + 0x2a8], 5
mov eax, dword [esp + 0x18]
xor edx, edx
mov ecx, eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], edi
mov word [esp + 0x40], dx
lea esi, [ecx + 2]
jmp 0x404fa0
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x404fa0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x40]
call fcn.00401670
mov byte [esp + 0x2a8], 6
mov eax, dword [ebp]
xor ecx, ecx
mov word [esp + 0x24], cx
mov ecx, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], edi
lea esi, [ecx + 2]
jmp 0x404fe0
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x404fe0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x24]
call fcn.00401670
push 0xffffffffffffffff
push edi
mov eax, esi
lea ecx, [esp + 0x64]
mov byte [esp + 0x2b0], bl
call fcn.004012b0
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x44]
lea ecx, [esp + 0x80]
call fcn.004012b0
mov esi, 8
cmp dword [esp + 0x38], esi
jb 0x405039
mov edx, dword [esp + 0x24]
push edx
call fcn.004178bc
add esp, 4
xor eax, eax
mov byte [esp + 0x2a8], 5
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], edi
mov word [esp + 0x24], ax
cmp dword [esp + 0x54], esi
jb 0x405063
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004178bc
add esp, 4
lea ecx, [esp + 0x58]
call fcn.0040fed0
mov ebp, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x90], esi
jb 0x40508d
mov edx, dword [esp + 0x7c]
push edx
call fcn.004178bc
add esp, 4
xor eax, eax
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], edi
mov word [esp + 0x7c], ax
cmp dword [esp + 0x74], esi
jb 0x4050b5
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004178bc
add esp, 4
mov eax, dword [esp + 0x18]
xor edx, edx
lea ecx, [eax - 0xc]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], edi
mov word [esp + 0x60], dx
cmp ecx, 0x433164
je 0x4050f1
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4050f1
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00417bee
add esp, 4
lea eax, [ebp - 0xc]
cmp eax, 0x433164
je 0x405112
lea esi, [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x405112
push esi
call fcn.00417bee
add esp, 4
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.004178c7
add esp, 0x298
ret 4