Function at 0x4f3550
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5719ad
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5c3678]
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 ebx, dword [ebp + 8]
xor edi, edi
cmp dword [ebx + 0x39c], edi
sete al
test al, al
jne 0x4f3900
lea esi, [ebp - 0x240]
call fcn.00476bf0
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x240]
cmp ecx, edi
je 0x4f3900
mov eax, dword [ebx + 0x480]
mov byte [ebx + 0x484], 0
cmp eax, edi
je 0x4f35d0
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x24]
push ecx
call eax
mov dword [ebx + 0x480], edi
lea ecx, [ebp - 0x228]
push ecx
call fcn.00423e10
mov byte [ebp - 4], 1
call fcn.00424330
push 0x100
lea edx, [ebp - 0x228]
push edx
call fcn.00424110
cmp dword [ebp - 0xb8], edi
je 0x4f360e
cmp byte [ebx + 0x48a], 0
mov byte [ebp - 0x22d], 0
jne 0x4f3615
mov byte [ebp - 0x22d], 1
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x234]
push ecx
mov byte [ebp - 0x23c], 0
call fcn.0045c500
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x234]
mov eax, dword [ecx - 0xc]
cmp eax, edi
je 0x4f3693
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4f3693
cmp byte [ebp - 0x22d], 0
jne 0x4f3693
mov eax, dword [ebx + 0x30]
mov esi, dword [ebp - 0x234]
lea edx, [ebp - 0x22c]
push edx
push str.IDI_PROFILE_MASK
push eax
mov dword [ebp - 0x22c], 0x60
call fcn.00476e70
mov ecx, eax
add esp, 0xc
mov eax, esi
call fcn.00477030
mov dword [ebx + 0x480], eax
jmp 0x4f3771
mov ecx, dword [ebx + 0x30]
push edi
push str.IDI_PROFILE_DEF
push ecx
call fcn.004779d0
add esp, 0xc
cmp byte [ebp + 0xc], 0
mov dword [ebx + 0x480], eax
mov byte [ebx + 0x484], 1
je 0x4f3771
call fcn.00424330
mov esi, eax
call fcn.004246f0
test eax, eax
setne dl
mov byte [ebp - 0x22c], dl
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call fcn.0045c820
add esp, 8
lea edi, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.00423c70
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4f371e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x234]
cmp dword [ecx - 0xc], 0
je 0x4f3771
mov eax, dword [ebx + 0x30]
lea edx, [ebp - 0x22c]
push edx
push str.IDI_TOPBAR_PROFILE_PREMIUM_DEF
push eax
mov dword [ebp - 0x22c], 0x60
call fcn.00476e70
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4f3771
mov edi, dword [ebp - 0x234]
push 0x64
push 0x58cffc
call fcn.004d1de0
mov edx, dword [esi]
mov eax, dword [edx]
add esp, 8
push 1
mov ecx, esi
call eax
call fcn.00424330
mov esi, eax
call fcn.004246f0
test eax, eax
setne al
mov byte [ebp - 0x22c], al
cmp al, byte [ebp - 0x23c]
je 0x4f381f
mov ecx, dword [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x22c]
push edx
call fcn.0045c820
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x238]
push ecx
call fcn.0045c820
mov edx, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x238]
add esp, 0x10
push 9
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f37f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4f381f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx + 0x39c]
test eax, eax
jne 0x4f3833
push 0x80004003
call fcn.0053c010
push 1
push 0x9ca4
lea esi, [ebp - 0x22c]
call fcn.0046fb00
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 5
call fcn.00483950
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x4f386a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x4f3893
mov eax, dword [ebx + 0x480]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x108]
push eax
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 0x9c]
push 1
push esi
call ecx
mov ecx, dword [ebx + 0x43c]
test ecx, ecx
je 0x4f38aa
movzx edx, byte [ebx + 0x484]
push edx
call fcn.005249d0
mov byte [ebp - 4], 2
test esi, esi
je 0x4f38ba
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4f38e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [ebp - 0x228]
call fcn.004243a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x240]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
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.0053c15d
mov esp, ebp
pop ebp
ret 8