Function at 0x40efe0
Capabilities:
Delete file
Get hostname
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0b62
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x508164]
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 esi, ecx
cmp dword [esi], 0
mov ebx, dword [ebp + 8]
jne 0x40f035
push 0x4ea434
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40f035
push str.inet_ntop
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
cmp dword [esi + 0x24], 0
jne 0x40f080
cmp dword [esi + 0x20], 8
lea edi, [esi + 0xc]
mov eax, edi
jb 0x40f048
mov eax, dword [edi]
push eax
push 0x4ea378
mov edx, 0x65
call fcn.0040ee00
add esp, 8
test al, al
je 0x40f080
cmp dword [edi + 0x14], 8
jb 0x40f067
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.GetEdpPatchInstallInter
push eax
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x28], eax
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004a5f00
add esp, 0xc
mov dword [ebp - 0x45c], 0x200
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x40f0fd
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.004834d0
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0
push eax
push str.machine
mov ecx, ebx
call fcn.00483fc0
mov ecx, eax
call fcn.00483ad0
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0xffffffff
call fcn.00483a60
push ebx
call fcn.0040f460
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x45c], 0
push eax
push 0x101
push 0
push 0x4ea4c0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f266
lea eax, [ebp - 0x460]
mov dword [ebp - 0x460], 0
push eax
push 0
push 0
push 0
push str.ProductName
push dword [ebp - 0x45c]
call edi
test eax, eax
jne 0x40f25a
push dword [ebp - 0x460]
call fcn.0048d929
mov edi, eax
add esp, 4
test edi, edi
je 0x40f254
lea eax, [ebp - 0x460]
push eax
push edi
push 0
push 0
push str.ProductName
push dword [ebp - 0x45c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f254
mov eax, dword [ebp - 0x460]
lea ecx, [ebp - 0x228]
dec eax
mov dword [ebp - 0x218], 0
push eax
push edi
mov dword [ebp - 0x214], 0xf
mov byte [ebp - 0x228], 0
call fcn.0040e3a0
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x480]
call fcn.00483400
lea eax, [ebp - 0x480]
mov byte [ebp - 4], 2
push eax
push str.edition
mov ecx, ebx
call fcn.00483fc0
mov ecx, eax
call fcn.00483ad0
lea ecx, [ebp - 0x480]
call fcn.00483a60
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x214]
cmp edx, 0x10
jb 0x40f254
mov ecx, dword [ebp - 0x228]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40f24a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f454
push edx
push ecx
call fcn.0048d8eb
add esp, 8
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x45c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0040f760
push ebx
mov ecx, esi
call fcn.0040f990
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x45c], 0
push eax
push 0x101
push 0
push 0x4ea4c0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f328
mov dword [ebp - 0x460], eax
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x460]
mov dword [ebp - 0x464], 4
push eax
push 0
push 0
push str.InstallDate
push dword [ebp - 0x45c]
call edi
test eax, eax
jne 0x40f31c
push eax
push dword [ebp - 0x460]
lea ecx, [ebp - 0x228]
call fcn.00483680
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 3
push eax
push str.installtime
mov ecx, ebx
call fcn.00483fc0
mov ecx, eax
call fcn.00483ad0
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0xffffffff
call fcn.00483a60
push dword [ebp - 0x45c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea ecx, [ebp - 0x480]
call fcn.004835a0
push ecx
lea ecx, [ebp - 0x458]
mov dword [ebp - 4], 4
call fcn.00411a40
mov byte [ebp - 4], 5
call fcn.00413510
test al, al
je 0x40f35f
mov eax, dword [ebp - 0x230]
test eax, eax
jne 0x40f364
mov eax, SysReAllocString
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.00411660
call fcn.00413510
test al, al
je 0x40f389
mov eax, dword [ebp - 0x230]
test eax, eax
jne 0x40f38e
mov eax, SysReAllocString
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.00411660
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 4
call fcn.004119d0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0x480]
push eax
call fcn.00411660
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0x480]
push eax
call fcn.00411660
lea eax, [ebp - 0x480]
mov ecx, ebx
push eax
push str.software
call fcn.00483fc0
mov ecx, eax
call fcn.00483b20
lea ecx, [ebp - 0x480]
mov dword [ebp - 4], 0xffffffff
call fcn.00483a60
push ebx
mov ecx, esi
call fcn.00410330
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40f436
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x24], 0
add esi, 0xc
cmp dword [esi + 0x14], 8
jb 0x40f42f
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
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.0048d8b2
mov esp, ebp
pop ebp
ret 4
call fcn.004b0023
int3