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

Disassembly:
push 0xffffffffffffffff
push 0x64cce8
mov eax, dword fs:[0]
push eax
mov eax, 0x42bc
call fcn.00614970
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0x42b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x42d0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x42e0]
mov ebx, ecx
mov dword [esp + 0x30], eax
call fcn.00514630
mov ecx, ebx
call fcn.005145f0
mov ecx, ebx
call fcn.00514760
mov ecx, dword [ebx + 4]
xor ebp, ebp
mov edi, 1
cmp ecx, ebp
je 0x5152e7
push edi
call fcn.00438660
test eax, eax
jne 0x5152e7
cmp dword [ebx + 8], ebp
je 0x5152c9
mov ecx, dword [ebx + 4]
cmp dword [ecx + 0x30], ebp
je 0x5152e7
lea ecx, [esp + 0x14]
call fcn.004ed490
mov dword [esp + 0x42d8], ebp
mov edx, dword [ebx + 4]
push edx
lea ecx, [esp + 0x18]
call fcn.004ed4b0
cmp eax, ebp
je 0x5152d3
mov dword [esp + 0x42d8], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004ed4a0
mov eax, 4
jmp 0x515c3d
mov dword [esp + 0x42d8], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004ed4a0
lea ecx, [esp + 0x1c]
call fcn.00402500
mov dword [esp + 0x42d8], edi
lea ecx, [esp + 0x28]
call fcn.00402500
mov byte [esp + 0x42d8], 2
lea ecx, [esp + 0x20]
call fcn.00402500
mov byte [esp + 0x42d8], 3
lea ecx, [esp + 0x24]
call fcn.00402500
mov byte [esp + 0x42d8], 4
lea ecx, [esp + 0x2c]
call fcn.00402500
mov byte [esp + 0x42d8], 5
mov esi, dword [esp + 0x42e8]
cmp esi, ebp
je 0x515369
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.005225c0
add esp, 0x14
jmp 0x5153cf
push 0x1f
push str.www.internetdownloadmanager.com
lea ecx, [esp + 0x24]
call fcn.00402960
push 0x10
push 0x696e08
lea ecx, [esp + 0x30]
call fcn.00402960
push 0x696e04
push 0x696e00
push 0x696dfc
push str.register
lea edx, [esp + 0x30]
push str._s._s_s_s
push edx
call fcn.00402f80
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.005ad3a0
mov byte [esp + 0x42d8], 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.005ab130
lea ecx, [esp + 0xd5c]
call fcn.005745e0
mov byte [esp + 0x42d8], 7
lea ecx, [esp + 0x34]
push ecx
push 0x400
lea esi, [ebx + 0xc]
push esi
lea ecx, [esp + 0xd68]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebp
call fcn.005710c0
test eax, eax
je 0x51546b
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x51546b
cmp dword [esp + 0x38], ebp
je 0x51546b
push eax
lea edx, [esp + 0x1f0]
push str.IDM_DataType_a1:_s
push edx
mov byte [esp + 0x1f4], 1
call fcn.00402f80
add esp, 0xc
jmp 0x51547a
push 0x400
push esi
lea ecx, [esp + 0x6c]
call fcn.005bfb00
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x51548b
push eax
call fcn.0061477c
add esp, 4
push 0xa
push str.text_plain
lea ecx, [esp + 0x13c]
call fcn.00402960
cmp dword [ebx + 0x514], ebp
je 0x5154da
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x4c], ebp
mov byte [esp + 0xac5], 0
call fcn.004ae530
add esp, 4
cmp dword [esp + 0x988], ebp
jne 0x5154d2
cmp byte [esp + 0xae4], 0
je 0x5154e8
mov dword [ebx + 0x518], edi
jmp 0x5154e8
mov byte [esp + 0xac1], 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.005ab230
mov ecx, dword [ebx + 8]
cmp ecx, ebp
je 0x51550c
mov eax, edi
cmp dword [ebx + 0x51c], ebp
je 0x515511
mov eax, 4
mov dword [esp + 0x48], eax
cmp ecx, ebp
je 0x515526
cmp dword [ebx + 0x51c], ebp
jne 0x515526
mov eax, dword [ebx + 4]
jmp 0x515528
xor eax, eax
mov dword [esp + 0x44], eax
mov byte [esp + 0xafc], 1
mov byte [esp + 0x1cb], 0
mov byte [esp + 0x39d], 1
mov byte [esp + 0x39e], 1
cmp dword [ebx + 0x51c], ebp
je 0x51555c
mov byte [esp + 0x208], 1
push edi
lea ecx, [esp + 0x48]
call fcn.005bb720
mov eax, dword [esp + 0x980]
cmp eax, 3
je 0x515593
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, ebp
je 0x515652
push 0xc8
call esi
mov eax, dword [esp + 0x980]
cmp eax, 3
jne 0x515578
mov eax, dword [esp + 0x94]
push 0x676aec
push eax
call fcn.00615f0d
mov edi, eax
add esp, 8
cmp edi, ebp
jne 0x515704
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00616da3
add esp, 4
lea ecx, [esp + 0x44]
call fcn.005b1f50
mov byte [esp + 0x42d8], 6
lea ecx, [esp + 0xd5c]
call fcn.005cede0
mov byte [esp + 0x42d8], 5
lea ecx, [esp + 0x44]
call fcn.005ad5a0
mov byte [esp + 0x42d8], 4
lea ecx, [esp + 0x2c]
call fcn.00402570
mov byte [esp + 0x42d8], 3
lea ecx, [esp + 0x24]
call fcn.00402570
mov byte [esp + 0x42d8], 2
lea ecx, [esp + 0x20]
call fcn.00402570
mov byte [esp + 0x42d8], 1
lea ecx, [esp + 0x28]
call fcn.00402570
mov dword [esp + 0x42d8], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402570
mov eax, 4
jmp 0x515c3d
mov eax, dword [esp + 0x94]
cmp eax, ebp
je 0x515666
push eax
call fcn.00616da3
add esp, 4
lea ecx, [esp + 0x44]
call fcn.005b1f50
cmp byte [esp + 0x208], 0
jne 0x5155cb
mov byte [esp + 0x42d8], 6
lea ecx, [esp + 0xd5c]
call fcn.005cede0
mov byte [esp + 0x42d8], 5
lea ecx, [esp + 0x44]
call fcn.005ad5a0
mov byte [esp + 0x42d8], 4
lea ecx, [esp + 0x2c]
call fcn.00402570
mov byte [esp + 0x42d8], 3
lea ecx, [esp + 0x24]
call fcn.00402570
mov byte [esp + 0x42d8], 2
lea ecx, [esp + 0x20]
call fcn.00402570
mov byte [esp + 0x42d8], 1
lea ecx, [esp + 0x28]
call fcn.00402570
mov dword [esp + 0x42d8], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402570
mov eax, 8
jmp 0x515c3d
push edi
call fcn.0061a794
push eax
call fcn.0061853a
mov esi, eax
lea ebp, [esi + 1]
push ebp
call fcn.005e76b2
push ebp
push 0
push eax
mov dword [esp + 0x2c], eax
call fcn.00613900
mov edx, dword [esp + 0x2c]
push edi
push esi
push 1
push edx
call fcn.00618228
push edi
mov ebp, eax
call fcn.00615be7
mov eax, dword [esp + 0xc0]
push eax
call fcn.00616da3
add esp, 0x30
lea ecx, [esp + 0x44]
call fcn.005b1f50
mov ecx, dword [esp + 0x14]
push 0x100
lea edx, [esp + 0x41d0]
push 0
push edx
mov byte [ecx + esi], 0
call fcn.00613900
add esp, 0xc
mov esi, ebp
cmp ebp, 0x100
jb 0x515785
mov esi, 0x100
mov edi, dword [esp + 0x14]
push esi
lea eax, [esp + 0x41d0]
push edi
push eax
call fcn.00614de0
mov ecx, dword [esp + 0x3c]
push esi
push edi
push ecx
call fcn.00614de0
mov edx, dword [0x74f74c]
mov eax, edx
add esp, 0x18
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5157b2
sub eax, edi
push eax
push edx
push esi
lea edx, [esp + 0x41d8]
push edx
lea ecx, [ebx + 0x508]
call fcn.00447de0
lea esi, [ebx + 0x43e]
mov edx, esi
lea ecx, [esp + 0x41cc]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x515800
test al, al
je 0x5157fc
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x515800
add ecx, 2
add edx, 2
test al, al
jne 0x5157e0
xor eax, eax
jmp 0x515805
sbb eax, eax
sbb eax, 0xffffffff
xor eax, eax
jne 0x5159f8
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 0x515818
sub eax, edx
lea esi, [esp + eax + 0x41ce]
mov al, byte [esi]
test al, al
je 0x5159d2
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp al, 0x4c
jne 0x515879
mov eax, dword [0x74ea0c]
test eax, eax
je 0x5158f7
push str.nExpDt
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [0x74ea0c]
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push str.nLst
mov dword [esp + 0x2c], 1
push ecx
jmp 0x5158f5
lea edi, [ebx + 0x50c]
push edi
push 0x676c78
push esi
call fcn.00614c2e
add esp, 0xc
cmp dword [edi], 0
jle 0x5158f7
mov eax, dword [0x74ea0c]
test eax, eax
je 0x5158ad
push str.nLst
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [0x74ea0c]
cmp dword [0x74f090], 0
mov edx, dword [edi]
mov dword [0x74f4c0], edx
je 0x5158da
mov eax, dword [edi]
mov ecx, dword [0x74f090]
push eax
push 0x14a7
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x5158f7
test eax, eax
je 0x5158f7
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 0x515900
sub eax, edx
add eax, 2
add esi, eax
cmp byte [esi], cl
je 0x5159ad
lea edi, [ebx + 0x510]
push edi
push 0x676c78
push esi
call fcn.00614c2e
add esp, 0xc
cmp dword [edi], 0
jne 0x515936
mov dword [edi], 0xffffffff
mov eax, esi
lea edx, [eax + 1]
jmp 0x515940
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x515940
sub eax, edx
add eax, 2
add esi, eax
cmp byte [esi], cl
je 0x5159ad
lea edx, [esp + 0x18]
push edx
push 0x676c78
push esi
mov dword [esp + 0x24], 0
call fcn.00614c2e
add esp, 0xc
cmp eax, 1
jne 0x5159ad
cmp dword [esp + 0x18], 0
je 0x5159ad
lea eax, [esp + 0x3c]
push eax
call fcn.006169e1
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 [0x74ea0c]
push str.ptrk_scdt
push ecx
mov dword [esp + 0x58], edx
call ebp
mov edi, dword [esp + 0x30]
mov eax, dword [0x74f090]
test eax, eax
je 0x5159e9
push 1
push 0x14bb
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x515bb1
mov eax, dword [0x74ea0c]
test eax, eax
je 0x5159ad
push str.nExpDt
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x5159b1
mov dword [0x74f054], 2
jmp 0x515bb1
mov ecx, dword [0x750364]
lea eax, [esp + 0x41cc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x515a25
test dl, dl
je 0x515a21
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x515a25
add eax, 2
add ecx, 2
test dl, dl
jne 0x515a05
xor eax, eax
jmp 0x515a2a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x515a36
lea edi, [eax + 1]
jmp 0x515bb1
mov ecx, dword [0x750368]
lea eax, [esp + 0x41cc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x515a63
test dl, dl
je 0x515a5f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x515a63
add eax, 2
add ecx, 2
test dl, dl
jne 0x515a43
xor eax, eax
jmp 0x515a68
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x515a74
lea edi, [eax + 2]
jmp 0x515bb1
mov ecx, dword [0x750370]
lea eax, [esp + 0x41cc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x515aa1
test dl, dl
je 0x515a9d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x515aa1
add eax, 2
add ecx, 2
test dl, dl
jne 0x515a81
xor eax, eax
jmp 0x515aa6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x515ab2
lea edi, [eax + 7]
jmp 0x515bb1
mov ecx, dword [0x750388]
lea eax, [esp + 0x41cc]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x515ae0
test dl, dl
je 0x515adc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x515ae0
add eax, 2
add ecx, 2
test dl, dl
jne 0x515ac0
xor eax, eax
jmp 0x515ae5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x515af1
lea edi, [eax + 0xa]
jmp 0x515bb1
mov ecx, dword [0x75038c]
lea eax, [esp + 0x41cc]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x515b20
test dl, dl
je 0x515b1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x515b20
add eax, 2
add ecx, 2
test dl, dl
jne 0x515b00
xor eax, eax
jmp 0x515b25
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x515b31
lea edi, [eax + 0xb]
jmp 0x515bb1
mov ecx, dword [0x750390]
lea eax, [esp + 0x41cc]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x515b60
test dl, dl
je 0x515b5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x515b60
add eax, 2
add ecx, 2
test dl, dl
jne 0x515b40
xor eax, eax
jmp 0x515b65
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x515b6e
lea edi, [eax + 0xc]
jmp 0x515bb1
mov ecx, dword [0x75036c]
lea eax, [esp + 0x41cc]
jmp 0x515b80
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x515ba0
test dl, dl
je 0x515b9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x515ba0
add eax, 2
add ecx, 2
test dl, dl
jne 0x515b80
xor eax, eax
jmp 0x515ba5
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.005e76a7
add esp, 4
mov byte [esp + 0x42d8], 6
lea ecx, [esp + 0xd5c]
call fcn.005cede0
mov byte [esp + 0x42d8], 5
lea ecx, [esp + 0x44]
call fcn.005ad5a0
mov byte [esp + 0x42d8], 4
lea ecx, [esp + 0x2c]
call fcn.00402570
mov byte [esp + 0x42d8], 3
lea ecx, [esp + 0x24]
call fcn.00402570
mov byte [esp + 0x42d8], 2
lea ecx, [esp + 0x20]
call fcn.00402570
mov byte [esp + 0x42d8], 1
lea ecx, [esp + 0x28]
call fcn.00402570
mov dword [esp + 0x42d8], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402570
mov eax, edi
mov ecx, dword [esp + 0x42d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x42b8]
xor ecx, esp
call fcn.00613241
add esp, 0x42c8
ret 0xc