Function at 0x516330
Capabilities:
Delete registry value
Read file on windows
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x64f4c8
mov eax, dword fs:[0]
push eax
mov eax, 0x42c4
call fcn.00616f00
mov eax, dword [0x74d890]
xor eax, esp
mov dword [esp + 0x42c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x42d8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x42e8]
mov ebx, ecx
mov dword [esp + 0x30], eax
call fcn.00515750
mov ecx, ebx
call fcn.00515710
mov ecx, ebx
call fcn.00515880
mov ecx, dword [ebx + 4]
xor ebp, ebp
mov edi, 1
cmp ecx, ebp
je 0x516407
push edi
call fcn.00438c40
test eax, eax
jne 0x516407
cmp dword [ebx + 8], ebp
je 0x5163e9
mov ecx, dword [ebx + 4]
cmp dword [ecx + 0x30], ebp
je 0x516407
lea ecx, [esp + 0x14]
call fcn.004ee640
mov dword [esp + 0x42e0], ebp
mov edx, dword [ebx + 4]
push edx
lea ecx, [esp + 0x18]
call fcn.004ee660
cmp eax, ebp
je 0x5163f3
mov dword [esp + 0x42e0], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004ee650
mov eax, 4
jmp 0x516d5d
mov dword [esp + 0x42e0], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004ee650
lea ecx, [esp + 0x1c]
call fcn.00402500
mov dword [esp + 0x42e0], edi
lea ecx, [esp + 0x28]
call fcn.00402500
mov byte [esp + 0x42e0], 2
lea ecx, [esp + 0x20]
call fcn.00402500
mov byte [esp + 0x42e0], 3
lea ecx, [esp + 0x24]
call fcn.00402500
mov byte [esp + 0x42e0], 4
lea ecx, [esp + 0x2c]
call fcn.00402500
mov byte [esp + 0x42e0], 5
mov esi, dword [esp + 0x42f0]
cmp esi, ebp
je 0x516489
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.005236e0
add esp, 0x14
jmp 0x5164ef
push 0x1f
push str.www.internetdownloadmanager.com
lea ecx, [esp + 0x24]
call fcn.00402960
push 0x10
push 0x699e30
lea ecx, [esp + 0x30]
call fcn.00402960
push 0x699e2c
push 0x699e28
push 0x699e24
push str.register
lea edx, [esp + 0x30]
push str._s._s_s_s
push edx
call fcn.00402f70
add esp, 0x18
push 5
push str.tcidm
lea ecx, [esp + 0x2c]
call fcn.00402960
push 8
push str.azcfgped
lea ecx, [esp + 0x34]
call fcn.00402960
lea ecx, [esp + 0x44]
call fcn.005aeb50
mov byte [esp + 0x42e0], 6
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
xor eax, eax
cmp esi, ebp
setne al
push ecx
push edx
lea ecx, [esp + 0x54]
inc eax
push eax
call fcn.005ac8f0
lea ecx, [esp + 0xd64]
call fcn.005759b0
mov byte [esp + 0x42e0], 7
lea ecx, [esp + 0x34]
push ecx
push 0x400
lea esi, [ebx + 0xc]
push esi
lea ecx, [esp + 0xd70]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebp
call fcn.00572490
test eax, eax
je 0x51658b
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x51658b
cmp dword [esp + 0x38], ebp
je 0x51658b
push eax
lea edx, [esp + 0x1f0]
push str.IDM_DataType_a1:_s
push edx
mov byte [esp + 0x1f4], 1
call fcn.00402f70
add esp, 0xc
jmp 0x51659a
push 0x400
push esi
lea ecx, [esp + 0x6c]
call fcn.005c1550
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x5165ab
push eax
call fcn.00616d0c
add esp, 4
push 0xa
push str.text_plain
lea ecx, [esp + 0x13c]
call fcn.00402960
cmp dword [ebx + 0x514], ebp
je 0x5165fa
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x4c], ebp
mov byte [esp + 0xacd], 0
call fcn.004afb00
add esp, 4
cmp dword [esp + 0x990], ebp
jne 0x5165f2
cmp byte [esp + 0xaec], 0
je 0x516608
mov dword [ebx + 0x518], edi
jmp 0x516608
mov byte [esp + 0xac9], 1
mov dword [ebx + 0x518], ebp
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x4c]
call fcn.005ac9f0
mov ecx, dword [ebx + 8]
cmp ecx, ebp
je 0x51662c
mov eax, edi
cmp dword [ebx + 0x51c], ebp
je 0x516631
mov eax, 4
mov dword [esp + 0x48], eax
cmp ecx, ebp
je 0x516646
cmp dword [ebx + 0x51c], ebp
jne 0x516646
mov eax, dword [ebx + 4]
jmp 0x516648
xor eax, eax
mov dword [esp + 0x44], eax
mov byte [esp + 0xb04], 1
mov byte [esp + 0x1cb], 0
mov byte [esp + 0x39d], 1
mov byte [esp + 0x39e], 1
cmp dword [ebx + 0x51c], ebp
je 0x51667c
mov byte [esp + 0x208], 1
push edi
lea ecx, [esp + 0x48]
call fcn.005bd160
mov eax, dword [esp + 0x988]
cmp eax, 3
je 0x5166b3
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, ebp
je 0x516772
push 0xc8
call esi
mov eax, dword [esp + 0x988]
cmp eax, 3
jne 0x516698
mov eax, dword [esp + 0x94]
push 0x679b18
push eax
call fcn.0061849d
mov edi, eax
add esp, 8
cmp edi, ebp
jne 0x516824
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00619333
add esp, 4
lea ecx, [esp + 0x44]
call fcn.005b37b0
mov byte [esp + 0x42e0], 6
lea ecx, [esp + 0xd64]
call fcn.005d0a80
mov byte [esp + 0x42e0], 5
lea ecx, [esp + 0x44]
call fcn.005aed50
mov byte [esp + 0x42e0], 4
lea ecx, [esp + 0x2c]
call fcn.00402570
mov byte [esp + 0x42e0], 3
lea ecx, [esp + 0x24]
call fcn.00402570
mov byte [esp + 0x42e0], 2
lea ecx, [esp + 0x20]
call fcn.00402570
mov byte [esp + 0x42e0], 1
lea ecx, [esp + 0x28]
call fcn.00402570
mov dword [esp + 0x42e0], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402570
mov eax, 4
jmp 0x516d5d
mov eax, dword [esp + 0x94]
cmp eax, ebp
je 0x516786
push eax
call fcn.00619333
add esp, 4
lea ecx, [esp + 0x44]
call fcn.005b37b0
cmp byte [esp + 0x208], 0
jne 0x5166eb
mov byte [esp + 0x42e0], 6
lea ecx, [esp + 0xd64]
call fcn.005d0a80
mov byte [esp + 0x42e0], 5
lea ecx, [esp + 0x44]
call fcn.005aed50
mov byte [esp + 0x42e0], 4
lea ecx, [esp + 0x2c]
call fcn.00402570
mov byte [esp + 0x42e0], 3
lea ecx, [esp + 0x24]
call fcn.00402570
mov byte [esp + 0x42e0], 2
lea ecx, [esp + 0x20]
call fcn.00402570
mov byte [esp + 0x42e0], 1
lea ecx, [esp + 0x28]
call fcn.00402570
mov dword [esp + 0x42e0], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402570
mov eax, 8
jmp 0x516d5d
push edi
call fcn.0061cd07
push eax
call fcn.0061aaca
mov esi, eax
lea ebp, [esi + 1]
push ebp
call fcn.005e9aa7
push ebp
push 0
push eax
mov dword [esp + 0x2c], eax
call fcn.00615eb0
mov edx, dword [esp + 0x2c]
push edi
push esi
push 1
push edx
call fcn.0061a7b8
push edi
mov ebp, eax
call fcn.00618177
mov eax, dword [esp + 0xc0]
push eax
call fcn.00619333
add esp, 0x30
lea ecx, [esp + 0x44]
call fcn.005b37b0
mov ecx, dword [esp + 0x14]
push pe_nt_image_headers32
lea edx, [esp + 0x41d8]
push 0
push edx
mov byte [ecx + esi], 0
call fcn.00615eb0
add esp, 0xc
mov esi, ebp
cmp ebp, 0x100
jb 0x5168a5
mov esi, pe_nt_image_headers32
mov edi, dword [esp + 0x14]
push esi
lea eax, [esp + 0x41d8]
push edi
push eax
call fcn.00617370
mov ecx, dword [esp + 0x3c]
push esi
push edi
push ecx
call fcn.00617370
mov edx, dword [0x75390c]
mov eax, edx
add esp, 0x18
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5168d2
sub eax, edi
push eax
push edx
push esi
lea edx, [esp + 0x41e0]
push edx
lea ecx, [ebx + 0x508]
call fcn.00448490
lea esi, [ebx + 0x43e]
mov edx, esi
lea ecx, [esp + 0x41d4]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x516920
test al, al
je 0x51691c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x516920
add ecx, 2
add edx, 2
test al, al
jne 0x516900
xor eax, eax
jmp 0x516925
sbb eax, eax
sbb eax, 0xffffffff
xor eax, eax
jne 0x516b18
xor edi, edi
mov eax, esi
mov dword [esp + 0x30], edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x516938
sub eax, edx
lea esi, [esp + eax + 0x41d6]
mov al, byte [esi]
test al, al
je 0x516af2
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp al, 0x4c
jne 0x516999
mov eax, dword [0x752bcc]
test eax, eax
je 0x516a17
push str.nExpDt
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [0x752bcc]
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push str.nLst
mov dword [esp + 0x2c], 1
push ecx
jmp 0x516a15
lea edi, [ebx + 0x50c]
push edi
push 0x679d04
push esi
call fcn.006171be
add esp, 0xc
cmp dword [edi], 0
jle 0x516a17
mov eax, dword [0x752bcc]
test eax, eax
je 0x5169cd
push str.nLst
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [0x752bcc]
cmp dword [0x753250], 0
mov edx, dword [edi]
mov dword [0x753680], edx
je 0x5169fa
mov eax, dword [edi]
mov ecx, dword [0x753250]
push eax
push 0x14a7
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x516a17
test eax, eax
je 0x516a17
mov edx, dword [edi]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0
push str.nExpDt
mov dword [esp + 0x2c], edx
push eax
call ebp
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x516a20
sub eax, edx
add eax, 2
add esi, eax
cmp byte [esi], cl
je 0x516acd
lea edi, [ebx + 0x510]
push edi
push 0x679d04
push esi
call fcn.006171be
add esp, 0xc
cmp dword [edi], 0
jne 0x516a56
mov dword [edi], 0xffffffff
mov eax, esi
lea edx, [eax + 1]
jmp 0x516a60
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x516a60
sub eax, edx
add eax, 2
add esi, eax
cmp byte [esi], cl
je 0x516acd
lea edx, [esp + 0x18]
push edx
push 0x679d04
push esi
mov dword [esp + 0x24], 0
call fcn.006171be
add esp, 0xc
cmp eax, 1
jne 0x516acd
cmp dword [esp + 0x18], 0
je 0x516acd
lea eax, [esp + 0x3c]
push eax
call fcn.00618f71
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
add esp, 4
push 4
lea eax, [esp + 0x44]
push eax
push 4
push 0
add edx, ecx
mov ecx, dword [0x752bcc]
push str.ptrk_scdt
push ecx
mov dword [esp + 0x58], edx
call ebp
mov edi, dword [esp + 0x30]
mov eax, dword [0x753250]
test eax, eax
je 0x516b09
push 1
push 0x14bb
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x516cd1
mov eax, dword [0x752bcc]
test eax, eax
je 0x516acd
push str.nExpDt
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x516ad1
mov dword [0x753214], 2
jmp 0x516cd1
mov ecx, dword [0x754524]
lea eax, [esp + 0x41d4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x516b45
test dl, dl
je 0x516b41
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x516b45
add eax, 2
add ecx, 2
test dl, dl
jne 0x516b25
xor eax, eax
jmp 0x516b4a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x516b56
lea edi, [eax + 1]
jmp 0x516cd1
mov ecx, dword [0x754528]
lea eax, [esp + 0x41d4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x516b83
test dl, dl
je 0x516b7f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x516b83
add eax, 2
add ecx, 2
test dl, dl
jne 0x516b63
xor eax, eax
jmp 0x516b88
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x516b94
lea edi, [eax + 2]
jmp 0x516cd1
mov ecx, dword [0x754530]
lea eax, [esp + 0x41d4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x516bc1
test dl, dl
je 0x516bbd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x516bc1
add eax, 2
add ecx, 2
test dl, dl
jne 0x516ba1
xor eax, eax
jmp 0x516bc6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x516bd2
lea edi, [eax + 7]
jmp 0x516cd1
mov ecx, dword [0x754548]
lea eax, [esp + 0x41d4]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x516c00
test dl, dl
je 0x516bfc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x516c00
add eax, 2
add ecx, 2
test dl, dl
jne 0x516be0
xor eax, eax
jmp 0x516c05
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x516c11
lea edi, [eax + 0xa]
jmp 0x516cd1
mov ecx, dword [0x75454c]
lea eax, [esp + 0x41d4]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x516c40
test dl, dl
je 0x516c3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x516c40
add eax, 2
add ecx, 2
test dl, dl
jne 0x516c20
xor eax, eax
jmp 0x516c45
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x516c51
lea edi, [eax + 0xb]
jmp 0x516cd1
mov ecx, dword [0x754550]
lea eax, [esp + 0x41d4]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x516c80
test dl, dl
je 0x516c7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x516c80
add eax, 2
add ecx, 2
test dl, dl
jne 0x516c60
xor eax, eax
jmp 0x516c85
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x516c8e
lea edi, [eax + 0xc]
jmp 0x516cd1
mov ecx, dword [0x75452c]
lea eax, [esp + 0x41d4]
jmp 0x516ca0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x516cc0
test dl, dl
je 0x516cbc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x516cc0
add eax, 2
add ecx, 2
test dl, dl
jne 0x516ca0
xor eax, eax
jmp 0x516cc5
sbb eax, eax
sbb eax, 0xffffffff
xor edx, edx
test eax, eax
setne dl
add edx, 3
mov edi, edx
mov eax, dword [esp + 0x14]
push eax
call fcn.005e9ab2
add esp, 4
mov byte [esp + 0x42e0], 6
lea ecx, [esp + 0xd64]
call fcn.005d0a80
mov byte [esp + 0x42e0], 5
lea ecx, [esp + 0x44]
call fcn.005aed50
mov byte [esp + 0x42e0], 4
lea ecx, [esp + 0x2c]
call fcn.00402570
mov byte [esp + 0x42e0], 3
lea ecx, [esp + 0x24]
call fcn.00402570
mov byte [esp + 0x42e0], 2
lea ecx, [esp + 0x20]
call fcn.00402570
mov byte [esp + 0x42e0], 1
lea ecx, [esp + 0x28]
call fcn.00402570
mov dword [esp + 0x42e0], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402570
mov eax, edi
mov ecx, dword [esp + 0x42d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x42c0]
xor ecx, esp
call fcn.006157d3
add esp, 0x42d0
ret 0xc