Function at 0x507de0
Capabilities:
Delete registry value
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bfb60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
lea edx, [ebp - 0x264]
mov eax, dword [esi]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0
mov ecx, dword [eax + 0x58]
push ecx
push 0x6688dc
push edx
call fcn.0057f2ea
add esp, 0xc
lea eax, [ebp - 0x264]
mov ecx, ebx
push eax
call fcn.00502040
mov edi, dword [esi + 0x3c]
test edi, edi
jne 0x507e50
mov ecx, dword [esi + 0x40]
push ecx
push 0x668898
jmp 0x508026
mov eax, dword [ebx + 0x78]
cmp edi, eax
jne 0x507e5e
test eax, eax
je 0x507e5e
mov dword [ebx + 0x78], esi
mov ecx, dword [edi]
add ecx, 0x10
call fcn.0050c290
mov ecx, dword [edi + 0x10]
push ecx
call fcn.00580313
add esp, 4
cmp eax, 0xffffffff
jne 0x507e9f
mov edx, dword [edi + 0x10]
lea eax, [ebp - 0x264]
push edx
push 0x667b78
push eax
call fcn.0057f2ea
add esp, 0xc
lea ecx, [ebp - 0x264]
push ecx
mov ecx, ebx
call fcn.00502040
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x507eff
cmp dword [esi + 0x18], 1
jne 0x507eb1
mov eax, dword [esi + 0x40]
jmp 0x507eb4
mov eax, dword [edi + 0x40]
push eax
lea edx, [ebp - 0x18]
push 0x668740
push edx
call fcn.0057f2ea
mov ecx, dword [ebx + 0x74]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x507eff
lea edx, [ebp - 0x18]
push eax
push edx
lea eax, [ebp - 0x264]
push 0x66885c
push eax
call fcn.0057f2ea
add esp, 0x10
lea ecx, [ebp - 0x264]
push ecx
mov ecx, ebx
call fcn.00502040
mov eax, dword [esi + 0x18]
cmp eax, 2
jne 0x508018
mov ecx, dword [esi]
mov edx, dword [edi + 0x40]
add ecx, 0x10
mov dword [esi + 0x40], edx
call fcn.0050c290
mov eax, dword [edi + 0x10]
mov ecx, dword [esi + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x507f5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi + 0x10]
push eax
mov eax, dword [esi + 0x10]
push edx
push eax
lea ecx, [ebp - 0x264]
push 0x667c18
push ecx
call fcn.0057f2ea
add esp, 0x14
lea edx, [ebp - 0x264]
push edx
jmp 0x50803c
mov eax, dword [edi + 0x10]
mov ecx, esi
push eax
call fcn.005085a0
test eax, eax
je 0x507f75
push 0x668830
jmp 0x50803c
mov ecx, dword [esi + 0x10]
push ecx
mov ecx, dword [esi]
add ecx, 0x10
call fcn.0050c300
test eax, eax
je 0x507fac
mov edx, dword [esi + 0x10]
push eax
push edx
lea eax, [ebp - 0x264]
push 0x6677b8
push eax
call fcn.0057f2ea
add esp, 0x10
lea ecx, [ebp - 0x264]
push ecx
jmp 0x50803c
mov edx, dword [edi + 0x38]
mov ecx, dword [esi]
mov dword [esi + 0x38], edx
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
mov dword [ecx + 0x30], edx
mov eax, dword [eax + 0x34]
mov dword [ecx + 0x34], eax
mov eax, dword [ebx + 0x20]
cmp edi, eax
jne 0x507ffb
mov dword [ebx + 0x20], esi
test edi, edi
je 0x507fe0
mov ecx, edi
call fcn.00508510
push edi
call fcn.00597102
add esp, 4
xor eax, eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [eax + 0x38]
cmp edi, ecx
je 0x508013
mov eax, ecx
test eax, eax
jne 0x507ffb
mov ecx, dword [esi + 0x40]
push ecx
push 0x6687e8
jmp 0x508026
mov dword [eax + 0x38], esi
jmp 0x507fcc
cmp eax, 1
je 0x507fcc
mov ecx, dword [esi + 0x40]
push ecx
push 0x6687b0
lea edx, [ebp - 0x264]
push edx
call fcn.0057f2ea
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
mov ecx, ebx
call fcn.00502040
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4