Function at 0x405320
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503cb5
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x543720]
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 dword [ebp - 0x4c0], ecx
mov eax, dword [ebp + 8]
mov edi, 0x20019
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x4b8], eax
mov eax, 0x20119
cmovne edi, eax
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4c4], edi
call fcn.00406080
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4053b7
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x4f676552
push ecx
push eax
mov dword [ebp - 0x1c], 0x4b6e6570
mov dword [ebp - 0x18], 0x78457965
mov word [ebp - 0x14], 0x57
call ebx
mov dword [esi + 0x54], eax
lea eax, [ebp - 0x4b0]
push eax
mov eax, dword [esi + 0x54]
push edi
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push dword [ebp - 0x4b8]
call eax
test eax, eax
jne 0x40599a
cmp dword [ebp - 0x4b0], eax
je 0x40599a
push 0x208
push eax
mov dword [ebp - 0x4b4], eax
mov word [ebp - 0x478], ax
lea eax, [ebp - 0x476]
push eax
mov dword [ebp - 0x48c], 0x104
call fcn.004e4b60
add esp, 0xc
mov edi, dword [ebp - 0x4b0]
call fcn.00406080
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x40544a
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x45676552
push ecx
push eax
mov dword [ebp - 0x3c], 0x4b6d756e
mov dword [ebp - 0x38], 0x78457965
mov word [ebp - 0x34], 0x57
call ebx
mov dword [esi + 0x48], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x48c]
push eax
lea eax, [ebp - 0x478]
push eax
push dword [ebp - 0x4b4]
mov eax, dword [esi + 0x48]
push edi
call eax
cmp eax, 0x103
je 0x40595a
lea ecx, [ebp - 0x4a8]
call fcn.004059c0
mov dword [ebp - 4], 0
inc dword [ebp - 0x4b4]
call fcn.00401500
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x405950
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x488], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x488]
push 0x529b18
push eax
call fcn.004067d0
mov esi, dword [ebp - 0x488]
add esp, 0xc
cmp dword [esi - 0xc], 0
jne 0x405513
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4054fc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4a8]
call fcn.00405b60
jmp 0x405411
push ecx
lea ecx, [ebp - 0x4c8]
mov dword [ebp - 0x47c], 0
call fcn.00405cd0
mov byte [ebp - 4], 4
mov edx, eax
push ecx
lea ecx, [ebp - 0x4bc]
call fcn.00405ea0
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x488]
push ecx
mov edx, eax
lea ecx, [ebp - 0x47c]
call fcn.00405de0
add esp, 4
mov byte [ebp - 4], 7
or ecx, 0xffffffff
mov edx, dword [ebp - 0x4bc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40557d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
or ecx, 0xffffffff
mov edx, dword [ebp - 0x4c8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4055a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x47c]
mov dword [ebp - 0x4ac], 0
call fcn.00406080
mov edi, eax
mov eax, dword [edi + 4]
test eax, eax
je 0x4055e8
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x4f676552
push ecx
push eax
mov dword [ebp - 0x2c], 0x4b6e6570
mov dword [ebp - 0x28], 0x78457965
mov word [ebp - 0x24], 0x57
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x54], eax
lea eax, [ebp - 0x4ac]
push eax
push dword [ebp - 0x4c4]
mov eax, dword [edi + 0x54]
push 0
push ebx
push dword [ebp - 0x4b8]
call eax
test eax, eax
je 0x405630
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov edx, dword [ebp - 0x47c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40562b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40590b
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x268], ax
lea eax, [ebp - 0x266]
push eax
call fcn.004e4b60
mov ebx, dword [ebp - 0x4ac]
add esp, 0xc
mov dword [ebp - 0x480], 0x104
mov dword [ebp - 0x484], 7
call fcn.00406080
mov edi, eax
mov eax, dword [edi + 4]
test eax, eax
je 0x405695
movdqa xmm0, xmmword [0x52e7a0]
lea ecx, [ebp - 0x54]
push ecx
push eax
movdqu xmmword [ebp - 0x54], xmm0
mov byte [ebp - 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x50], eax
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x484]
push eax
mov eax, dword [edi + 0x50]
push 0
push str.DisplayName
push ebx
call eax
lea ecx, [ebp - 0x268]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4056c0
sub ecx, edx
lea eax, [ebp - 0x268]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4a8]
call fcn.00406500
push 0x104
lea eax, [ebp - 0x268]
mov dword [ebp - 0x480], 0x104
push 0
push eax
call fcn.004e4b60
mov ebx, dword [ebp - 0x4ac]
add esp, 0xc
call fcn.00406080
mov edi, eax
mov eax, dword [edi + 4]
test eax, eax
je 0x405735
movdqa xmm0, xmmword [0x52e7a0]
lea ecx, [ebp - 0x54]
push ecx
push eax
movdqu xmmword [ebp - 0x54], xmm0
mov byte [ebp - 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x50], eax
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x484]
push eax
mov eax, dword [edi + 0x50]
push 0
push str.DisplayVersion
push ebx
call eax
lea ecx, [ebp - 0x268]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405760
sub ecx, edx
lea eax, [ebp - 0x268]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00406500
push 0x104
lea eax, [ebp - 0x268]
mov dword [ebp - 0x480], 0x104
push 0
push eax
call fcn.004e4b60
mov ebx, dword [ebp - 0x4ac]
add esp, 0xc
call fcn.00406080
mov edi, eax
mov eax, dword [edi + 4]
test eax, eax
je 0x4057d5
movdqa xmm0, xmmword [0x52e7a0]
lea ecx, [ebp - 0x54]
push ecx
push eax
movdqu xmmword [ebp - 0x54], xmm0
mov byte [ebp - 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x50], eax
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x484]
push eax
mov eax, dword [edi + 0x50]
push 0
push str.Publisher
push ebx
call eax
lea ecx, [ebp - 0x268]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405800
sub ecx, edx
lea eax, [ebp - 0x268]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4a0]
call fcn.00406500
mov eax, dword [ebp - 0x4a8]
cmp dword [eax - 0xc], 0
je 0x40588a
mov ecx, dword [esi - 0xc]
test ecx, ecx
js 0x405946
cmp word [esi], 0x4b
jne 0x405878
cmp ecx, 1
jl 0x405946
cmp word [esi + 2], 0x42
jne 0x405878
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov edx, dword [ebp - 0x47c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405873
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40590b
mov ecx, dword [ebp - 0x4c0]
lea eax, [ebp - 0x4a8]
push eax
call fcn.00405fb0
push 0x104
lea eax, [ebp - 0x478]
mov dword [ebp - 0x48c], 0x104
push 0
push eax
call fcn.004e4b60
mov ebx, dword [ebp - 0x4ac]
add esp, 0xc
call fcn.00406080
mov edi, eax
mov eax, dword [edi + 4]
test eax, eax
je 0x4058e1
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x43676552
push ecx
push eax
mov dword [ebp - 0x1c], 0x65736f6c
mov dword [ebp - 0x18], 0x79654b
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x34]
push ebx
call eax
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov edx, dword [ebp - 0x47c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40590b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405929
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4a8]
call fcn.00405b60
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x405411
push 0x80070057
call fcn.00405170
push 0x80004005
call fcn.00405170
mov edi, dword [ebp - 0x4b0]
call fcn.00406080
mov esi, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x40598d
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x43676552
push ecx
push eax
mov dword [ebp - 0x1c], 0x65736f6c
mov dword [ebp - 0x18], 0x79654b
call ebx
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x34]
push edi
call eax
mov eax, 1
jmp 0x40599c
xor eax, eax
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.004e03e9
mov esp, ebp
pop ebp
ret 8