Function at 0x407480
Capabilities:
Delete file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44585b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
mov eax, dword [0x45bb34]
push ebx
push esi
push edi
mov dword [esp + 0x244], eax
mov ebx, ecx
mov byte [esp + 0x30], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x448200
push str.data0.dat
stosb byte es:[edi], al
call fcn.0042acb6
add esp, 8
test eax, eax
je 0x4074e8
push eax
call fcn.0042a859
jmp 0x407574
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SOFTWAREKYLINKHAN
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407bb6
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.InstallPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407bb6
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407557
sub eax, edx
mov dword [esp + 0x1c], eax
je 0x407bb6
lea eax, [esp + 0x30]
push eax
call fcn.004371d8
add esp, 4
push 0x104
lea ecx, [esp + 0x13c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x138]
lea esi, [ebx + 0x7c]
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4075a0
sub eax, edi
push eax
lea edx, [esp + 0x13c]
push edx
mov ecx, esi
call fcn.00401880
call fcn.0043c543
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
mov esi, dword [esi]
push 0x448200
push esi
mov dword [esp + 0x25c], 0
call fcn.0042acb6
add esp, 8
mov esi, eax
test esi, esi
push 0
je 0x40767f
push pe_overlay
push esi
call fcn.0042ac11
add esp, 0xc
test eax, eax
push esi
jne 0x407675
push 1
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0042a993
add esp, 0x10
cmp eax, 1
jne 0x407674
mov al, byte [esp + 0xc]
test al, al
je 0x4076bb
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407637
sub eax, edx
push eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401a50
push esi
push 1
lea edx, [esp + 0x14]
push 1
push edx
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0
call fcn.0042a993
mov edi, dword [esp + 0x20]
add esp, 0x10
cmp eax, 1
je 0x407624
push esi
call fcn.0042a859
add esp, 4
push 0
push 0
push 0x4484b0
mov ecx, ebx
call fcn.004390ad
add edi, 0xfffffff0
mov dword [esp + 0x254], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407bc6
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
jmp 0x407bc6
push 0x447e30
lea ecx, [esp + 0x1c]
call fcn.004064e0
push edi
mov ecx, ebx
mov byte [esp + 0x258], 1
call fcn.00406590
test eax, eax
jne 0x4078c3
mov eax, dword [ebx + 0x8c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
lea esi, [ebx + 0x8c]
jne 0x407700
push 0x447e30
mov ecx, esi
call fcn.00401d90
push esi
lea ecx, [esp + 0x24]
push 0x448494
push ecx
call fcn.00401bb0
push 0x448478
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x26c], 2
call fcn.00405ac0
add esp, 0x18
lea ecx, [esp + 0x20]
mov byte [esp + 0x254], 4
call fcn.004012f0
mov eax, dword [ebx + 0x84]
mov ecx, dword [eax - 0xc]
test ecx, ecx
lea esi, [ebx + 0x84]
je 0x407801
mov ecx, dword [ebx + 0x88]
mov eax, dword [ecx - 0xc]
test eax, eax
lea edi, [ebx + 0x88]
je 0x407801
push esi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00405a10
push 0x448468
push eax
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x26c], 5
call fcn.00405ac0
push edi
push eax
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x278], 6
call fcn.00405a10
push 0x448460
push eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x284], 7
call fcn.00405ac0
add esp, 0x30
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x258], 8
call fcn.00401ae0
lea ecx, [esp + 0x14]
call fcn.004012f0
lea ecx, [esp + 0x24]
call fcn.004012f0
lea ecx, [esp + 0x28]
call fcn.004012f0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x254], 4
call fcn.004012f0
jmp 0x40780f
push 0x448444
lea ecx, [esp + 0x10]
call fcn.00401d90
push esi
lea ecx, [esp + 0x28]
push 0x448434
push ecx
call fcn.00401bb0
push 0x448430
push eax
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x26c], 9
call fcn.00405ac0
lea ecx, [ebx + 0x88]
push ecx
push eax
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x278], 0xa
call fcn.00405a10
add esp, 0x24
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x258], 0xb
call fcn.00401ae0
lea ecx, [esp + 0x1c]
call fcn.004012f0
lea ecx, [esp + 0x28]
call fcn.004012f0
lea ecx, [esp + 0x24]
mov byte [esp + 0x254], 4
call fcn.004012f0
mov eax, dword [esp + 0x18]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.004064e0
lea ecx, [ebx + 0x194]
call fcn.00403620
mov ecx, dword [esp + 0xc]
push 0
push 0
push ecx
mov ecx, ebx
call fcn.004390ad
lea ecx, [esp + 0xc]
call fcn.004012f0
jmp 0x407ba2
lea eax, [ebx + 0x84]
push eax
lea edx, [esp + 0x28]
push 0x448434
push edx
call fcn.00401bb0
push 0x448430
push eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x26c], 0xc
call fcn.00405ac0
lea ecx, [ebx + 0x88]
push ecx
push eax
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x278], 0xd
call fcn.00405a10
add esp, 0x24
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x258], 0xe
call fcn.00401ae0
lea ecx, [esp + 0x1c]
call fcn.004012f0
lea ecx, [esp + 0x28]
call fcn.004012f0
lea ecx, [esp + 0x24]
mov byte [esp + 0x254], 1
call fcn.004012f0
mov edx, dword [esp + 0x18]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.004064e0
lea ecx, [ebx + 0x194]
call fcn.00403620
push esi
push 4
lea eax, [esp + 0x34]
push 1
push eax
call fcn.0042a993
add esp, 0x10
cmp eax, 4
je 0x407984
push esi
call fcn.0042a859
add esp, 4
jmp 0x407b92
push str..dat
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00405ac0
add esp, 0xc
lea edi, [ebx + 0x80]
push eax
mov ecx, edi
mov byte [esp + 0x258], 0xf
call fcn.00401cc0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x254], 1
call fcn.004012f0
push esi
call fcn.0042ab41
push 2
push 0
push esi
mov dword [esp + 0x30], eax
call fcn.0042ac11
add esp, 0x10
test eax, eax
push esi
jne 0x407977
call fcn.0042ab41
sub eax, dword [esp + 0x24]
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
jle 0x407976
push eax
call fcn.0043c539
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
push 0
push eax
push esi
call fcn.0042ac11
add esp, 0x10
test eax, eax
jne 0x407b7f
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push esi
push ecx
push 1
push edx
call fcn.0042a993
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp eax, ecx
jne 0x407b7f
push esi
call fcn.0042a859
mov eax, dword [edi]
push 0x448300
push eax
call fcn.0042acb6
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x407a99
mov eax, dword [esp + 0xc]
push eax
call fcn.0043c53e
push edi
lea ecx, [esp + 0x24]
push 0x448414
push ecx
call fcn.00401bb0
add esp, 0x10
push eax
mov ecx, edi
mov byte [esp + 0x258], 0x10
call fcn.00401cc0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x254], 1
call fcn.004012f0
mov edx, dword [edi]
push esi
push esi
push edx
jmp 0x407b9b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push esi
push eax
push 1
push ecx
call fcn.0042b054
push esi
call fcn.0042a859
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
push eax
push esi
mov dword [esp + 0x40], 0
call fcn.00404a00
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
add esp, 0x20
cmp ecx, eax
push esi
je 0x407afc
call fcn.0043c53e
mov edx, dword [edi]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0
push 0x4483f4
jmp 0x407b9b
call fcn.0043c53e
add esp, 4
mov ecx, ebx
call fcn.00405250
test al, al
jne 0x407b23
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0
push 0x4483e4
jmp 0x407b9b
lea ecx, [esp + 0x14]
call fcn.00401430
mov ecx, dword [ebx + 0x88]
mov edx, dword [ebx + 0x84]
push ecx
push edx
lea eax, [esp + 0x1c]
push 0x4483cc
push eax
mov byte [esp + 0x264], 0x11
call fcn.00401b90
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.0043b9c0
lea ecx, [esp + 0x14]
call fcn.004012f0
lea ecx, [esp + 0x18]
call fcn.004012f0
lea ecx, [esp + 0x10]
call fcn.004012f0
mov al, 1
jmp 0x407bc8
mov edx, dword [esp + 0xc]
push edx
call fcn.0043c53e
push esi
call fcn.0042a859
add esp, 8
push 0
push 0
push 0x4484b0
mov ecx, ebx
call fcn.004390ad
lea ecx, [esp + 0x18]
call fcn.004012f0
lea ecx, [esp + 0x10]
call fcn.004012f0
jmp 0x407bc6
push 0
push 0
mov ecx, ebx
push 0x448390
call fcn.004390ad
xor al, al
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x244]
call fcn.004296f9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret