Function at 0x40d620
Capabilities:
Check os version
Delete file
Delete registry value
Get common file path
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x854
mov eax, dword [0x4f2500]
xor eax, esp
mov dword [esp + 0x850], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x206
xor ebx, ebx
lea edx, [esp + 0x44e]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x30], eax
mov word [esp + 0x454], cx
call fcn.004276b0
add esp, 0xc
push 0x206
lea ecx, [esp + 0x246]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x24c], ax
call fcn.004276b0
mov eax, dword [0x4f7510]
add esp, 0xc
cmp eax, ebx
jne 0x40d6b0
push 0x24d0
call fcn.0042336c
add esp, 4
cmp eax, ebx
je 0x40d6a9
mov esi, eax
call fcn.00415ef0
jmp 0x40d6ab
xor eax, eax
mov dword [0x4f7510], eax
cmp dword [eax + 0x22c4], ebx
mov eax, 0x4cbd48
jne 0x40d6c2
mov eax, 0x4cbc74
lea esi, [esp + 0x10]
call fcn.004032d0
cmp dword [0x4f7510], ebx
jne 0x40d6f8
push 0x24d0
call fcn.0042336c
add esp, 4
cmp eax, ebx
je 0x40d6f2
mov esi, eax
call fcn.00415ef0
mov dword [0x4f7510], eax
jmp 0x40d6f8
mov dword [0x4f7510], ebx
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40d72b
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x448]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x4f36ec]
mov edx, dword [eax + 0xc]
mov ecx, 0x4f36ec
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x448]
push eax
push 0x4cd9c8
lea edi, [esp + 0x34]
call fcn.00404650
add esp, 8
cmp dword [0x4f7510], ebx
jne 0x40d787
push 0x24d0
call fcn.0042336c
add esp, 4
cmp eax, ebx
je 0x40d781
mov esi, eax
call fcn.00415ef0
mov dword [0x4f7510], eax
jmp 0x40d787
mov dword [0x4f7510], ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x40d7a6
lea edi, [esp + 0x240]
mov ebx, esi
call fcn.00412fd0
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x448]
push ecx
push 0x4cd9e4
lea edi, [esp + 0x34]
call fcn.00404650
lea eax, [esp + 0x248]
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d7d0
sub eax, edx
sar eax, 1
cmp eax, ebx
ja 0x40d82f
cmp dword [0x4f7510], ebx
jne 0x40d810
push 0x24d0
call fcn.0042336c
add esp, 4
cmp eax, ebx
je 0x40d80a
mov esi, eax
call fcn.00415ef0
mov dword [0x4f7510], eax
jmp 0x40d810
mov dword [0x4f7510], ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp dword [esp + 0x2c], ebx
je 0x40d82f
mov ebx, dword [esp + 0x2c]
lea edi, [esp + 0x240]
call fcn.00412fd0
xor ebx, ebx
mov eax, dword [0x4f7510]
cmp eax, ebx
jne 0x40d859
push 0x24d0
call fcn.0042336c
add esp, 4
cmp eax, ebx
je 0x40d852
mov esi, eax
call fcn.00415ef0
jmp 0x40d854
xor eax, eax
mov dword [0x4f7510], eax
lea edx, [esp + 0x240]
push edx
lea ecx, [esp + 0x20]
push ecx
call fcn.00413de0
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 0x48c]
cmp ecx, ebx
je 0x40da9f
call sym.Setup.exe_public:_bool___thiscall_DuiLib::COptionUI::IsSelected_void_const
test al, al
je 0x40da9f
push 0x206
lea ecx, [esp + 0x656]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x65c], ax
call fcn.004276b0
add esp, 0xc
cmp dword [0x4f7510], ebx
jne 0x40d8d7
push 0x24d0
call fcn.0042336c
add esp, 4
cmp eax, ebx
je 0x40d8d1
mov esi, eax
call fcn.00415ef0
mov dword [0x4f7510], eax
jmp 0x40d8d7
mov dword [0x4f7510], ebx
lea edx, [esp + 0x34]
push edx
push ebx
push ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40da9f
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x650]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [esp + 0x34]
push edx
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp esi, ebx
je 0x40da9f
call fcn.0040a700
mov ebx, 1
push ebx
call fcn.0040a700
mov eax, dword [eax + 0x22c4]
push eax
lea eax, [esp + 0x658]
lea esi, [esp + 0x20]
call fcn.00414330
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x40d95a
mov edx, str._main
lea edi, [esp + 0x1c]
call fcn.004033c0
jmp 0x40d986
js 0x40d977
push str._main
push esi
call fcn.00424e3d
add esp, 8
test eax, eax
je 0x40d977
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x40d986
lea ecx, [esp + 0x1c]
push ecx
mov edx, str.__main
call fcn.00404370
mov edx, dword [0x4f36ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f36ec
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
call fcn.0040a700
add eax, 0x410
push eax
push str._s_resdesk.ico
lea edi, [esp + 0x1c]
call fcn.00404650
mov eax, dword [esp + 0x18]
add esp, 8
cmp dword [eax - 4], ebx
jle 0x40d9d0
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00403690
mov edi, dword [esp + 0x18]
cmp dword [edi - 4], ebx
jle 0x40d9eb
mov eax, dword [edi - 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403690
mov edi, dword [esp + 0x18]
call fcn.0040a700
push edi
call fcn.0040a700
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
add eax, 0xc30
push eax
push esi
lea ecx, [esp + 0x65c]
call fcn.00412e10
mov ecx, ebx
mov eax, dword [ecx - 8]
push eax
push ecx
call fcn.00423a17
add esp, 8
test eax, eax
js 0x40dae1
mov ecx, ebx
cmp eax, dword [ecx - 8]
jg 0x40dae1
mov dword [ecx - 0xc], eax
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00423a17
add esp, 8
test eax, eax
js 0x40dae1
cmp eax, dword [edi - 8]
jg 0x40dae1
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40da83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40da9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x494]
test ecx, ecx
je 0x40dc61
call sym.Setup.exe_public:_bool___thiscall_DuiLib::COptionUI::IsSelected_void_const
test al, al
je 0x40dc0a
mov eax, dword [0x4f7510]
test eax, eax
jne 0x40daf2
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x40daeb
mov esi, eax
call fcn.00415ef0
jmp 0x40daed
push 0x80070057
call fcn.00402e50
xor eax, eax
mov dword [0x4f7510], eax
lea ecx, [eax + 0xc30]
push 1
mov edi, str.GamePlusPlus
call fcn.004048b0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], 0x114
call esi
cmp dword [esp + 0x3c], 6
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jb 0x40db34
push 0x4cda38
call fcn.004060e0
test eax, eax
jne 0x40db42
mov ecx, 0x4cda38
call fcn.00406570
test eax, eax
je 0x40db8b
push 0x4cda38
call fcn.00405ea0
lea eax, [esp + 0x14]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0
call ebx
test eax, eax
jne 0x40db8b
mov edi, dword [esp + 0x14]
push 0x4cda38
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test edi, edi
je 0x40db8b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], 0x114
call esi
cmp dword [esp + 0x3c], 6
jb 0x40dbaf
push 0x4cbc74
call fcn.004060e0
test eax, eax
jne 0x40dbbd
mov ecx, 0x4cbc74
call fcn.00406570
test eax, eax
je 0x40dc06
push 0x4cbc74
call fcn.00405ea0
lea edx, [esp + 0x14]
push edx
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0
call ebx
test eax, eax
jne 0x40dc06
mov edi, dword [esp + 0x14]
push 0x4cbc74
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test edi, edi
je 0x40dc06
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
jmp 0x40dc59
push str.GamePlusPlus
call fcn.00405ea0
lea eax, [esp + 0x14]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40dc57
mov edi, dword [esp + 0x14]
push str.GamePlusPlus
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test edi, edi
je 0x40dc57
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
call fcn.00419460
add esp, 4
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x490]
test ecx, ecx
je 0x40e39a
call sym.Setup.exe_public:_bool___thiscall_DuiLib::COptionUI::IsSelected_void_const
test al, al
je 0x40e39a
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [0x4f36ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f36ec
call eax
push 0x206
lea edx, [esp + 0x3e]
add eax, 0x10
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x2c], eax
mov word [esp + 0x44], cx
call fcn.004276b0
add esp, 0xc
cmp dword [0x4f7510], ebx
jne 0x40dce7
push 0x24d0
call fcn.0042336c
add esp, 4
cmp eax, ebx
je 0x40dce1
mov esi, eax
call fcn.00415ef0
mov dword [0x4f7510], eax
jmp 0x40dce7
mov dword [0x4f7510], ebx
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x17
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40dd88
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp edi, ebx
je 0x40dd88
cmp dword [esi - 4], 1
jle 0x40dd3e
mov ecx, dword [esi - 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00403690
mov esi, dword [esp + 0x10]
push esi
lea eax, [esp + 0x3c]
push eax
push str._s_s
lea edi, [esp + 0x2c]
call fcn.00404650
mov eax, dword [esi - 8]
add esp, 0xc
push eax
push esi
call fcn.00423a17
add esp, 8
cmp eax, ebx
jl 0x40dae1
cmp eax, dword [esi - 8]
jg 0x40dae1
mov edx, dword [esp + 0x20]
push edx
xor ecx, ecx
mov dword [esi - 0xc], eax
push ebx
mov word [esi + eax*2], cx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, dword [0x4f36ec]
mov edx, dword [eax + 0xc]
mov ecx, 0x4f36ec
call edx
add eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [0x4f7510]
cmp eax, ebx
jne 0x40ddc8
push 0x24d0
call fcn.0042336c
add esp, 4
cmp eax, ebx
je 0x40ddc1
mov esi, eax
call fcn.00415ef0
jmp 0x40ddc3
xor eax, eax
mov dword [0x4f7510], eax
cmp dword [eax + 0x22c4], ebx
mov eax, 0x4cbc74
jne 0x40ddda
mov eax, 0x4cbd48
lea esi, [esp + 0x18]
call fcn.004032d0
mov esi, dword [esp + 0x18]
cmp dword [esi - 4], 1
jle 0x40ddff
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403690
mov esi, dword [esp + 0x18]
push esi
lea edx, [esp + 0x3c]
push edx
push str._s_s
lea edi, [esp + 0x34]
call fcn.00404650
mov eax, dword [esi - 8]
add esp, 0xc
push eax
push esi
call fcn.00423a17
add esp, 8
cmp eax, ebx
jl 0x40dae1
cmp eax, dword [esi - 8]
jg 0x40dae1
mov edi, dword [esp + 0x28]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [edi - 4], 1
jle 0x40de59
mov edx, dword [edi - 0xc]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00403690
mov edi, dword [esp + 0x28]
mov eax, dword [0x4f7510]
cmp eax, ebx
jne 0x40de83
push 0x24d0
call fcn.0042336c
add esp, 4
cmp eax, ebx
je 0x40de7c
mov esi, eax
call fcn.00415ef0
jmp 0x40de7e
xor eax, eax
mov dword [0x4f7510], eax
mov ebx, eax
test eax, eax
jne 0x40deb2
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x40dea8
mov esi, eax
call fcn.00415ef0
mov dword [0x4f7510], eax
jmp 0x40deb2
mov dword [0x4f7510], 0
mov ecx, dword [ebx + 0x22c4]
push 1
push ecx
mov eax, edi
lea esi, [esp + 0x2c]
call fcn.00414330
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00423a17
add esp, 8
test eax, eax
js 0x40dae1
cmp eax, dword [edi - 8]
jg 0x40dae1
mov ebx, dword [esp + 0x1c]
xor edx, edx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], dx
mov eax, dword [ebx - 0xc]
test eax, eax
jne 0x40df08
mov edx, str._main
lea edi, [esp + 0x1c]
call fcn.004033c0
jmp 0x40df34
js 0x40df25
push str._main
push ebx
call fcn.00424e3d
add esp, 8
test eax, eax
je 0x40df25
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
jne 0x40df38
lea eax, [esp + 0x1c]
push eax
mov edx, str.__main
call fcn.00404370
mov ebx, dword [esp + 0x1c]
mov edx, dword [0x4f36ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f36ec
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [0x4f7510]
test eax, eax
jne 0x40df79
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x40df72
mov esi, eax
call fcn.00415ef0
jmp 0x40df74
xor eax, eax
mov dword [0x4f7510], eax
add eax, 0x410
push eax
push str._s_resdesk.ico
lea edi, [esp + 0x1c]
call fcn.00404650
mov eax, dword [esp + 0x18]
mov esi, 1
add esp, 8
cmp dword [eax - 4], esi
jle 0x40dfac
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00403690
mov eax, dword [esp + 0x24]
cmp dword [eax - 4], esi
jle 0x40dfc3
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00403690
mov eax, dword [esp + 0x20]
cmp dword [eax - 4], esi
jle 0x40dfda
mov edx, dword [eax - 0xc]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00403690
mov eax, dword [0x4f7510]
test eax, eax
jne 0x40e004
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x40dffd
mov esi, eax
call fcn.00415ef0
jmp 0x40dfff
xor eax, eax
mov dword [0x4f7510], eax
mov edi, eax
test eax, eax
jne 0x40e033
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x40e029
mov esi, eax
call fcn.00415ef0
mov dword [0x4f7510], eax
jmp 0x40e033
mov dword [0x4f7510], 0
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
push esi
add edi, 0xc30
push edi
mov edi, dword [esp + 0x28]
push ecx
mov edx, ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edi
call fcn.00412e10
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00423a17
add esp, 8
test eax, eax
js 0x40dae1
cmp eax, dword [edi - 8]
jg 0x40dae1
mov dword [edi - 0xc], eax
xor edx, edx
mov word [edi + eax*2], dx
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00423a17
add esp, 8
test eax, eax
js 0x40dae1
cmp eax, dword [esi - 8]
jg 0x40dae1
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov esi, ebx
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00423a17
add esp, 8
test eax, eax
js 0x40dae1
cmp eax, dword [esi - 8]
jg 0x40dae1
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], dx
mov eax, dword [esp + 0x28]
cmp dword [eax - 4], 1
jle 0x40e0e4
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00403690
mov eax, dword [0x4f7510]
test eax, eax
jne 0x40e10e
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x40e107
mov esi, eax
call fcn.00415ef0
jmp 0x40e109
xor eax, eax
mov dword [0x4f7510], eax
mov ebx, eax
test eax, eax
jne 0x40e13d
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x40e133
mov esi, eax
call fcn.00415ef0
mov dword [0x4f7510], eax
jmp 0x40e13d
mov dword [0x4f7510], 0
mov edx, dword [ebx + 0x22c4]
mov ebx, dword [esp + 0x28]
push edx
mov eax, ebx
lea esi, [esp + 0x34]
call fcn.004143e0
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.00423a17
add esp, 8
test eax, eax
js 0x40dae1
cmp eax, dword [ebx - 8]
jg 0x40dae1
mov dword [ebx - 0xc], eax
xor ecx, ecx
mov word [ebx + eax*2], cx
mov eax, dword [esp + 0x10]
mov esi, 1
cmp dword [eax - 4], esi
jle 0x40e196
mov edx, dword [eax - 0xc]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00403690
mov eax, dword [esp + 0x30]
cmp dword [eax - 4], esi
jle 0x40e1ad
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00403690
cmp dword [edi - 4], esi
jle 0x40e1c4
mov eax, dword [edi - 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00403690
mov edi, dword [esp + 0x20]
mov eax, dword [0x4f7510]
test eax, eax
jne 0x40e1ee
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x40e1e7
mov esi, eax
call fcn.00415ef0
jmp 0x40e1e9
xor eax, eax
mov dword [0x4f7510], eax
mov dword [esp + 0x20], eax
test eax, eax
jne 0x40e217
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x40e210
mov esi, eax
call fcn.00415ef0
jmp 0x40e212
xor eax, eax
mov dword [0x4f7510], eax
mov ebx, eax
test eax, eax
jne 0x40e246
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x40e23c
mov esi, eax
call fcn.00415ef0
mov dword [0x4f7510], eax
jmp 0x40e246
mov dword [0x4f7510], 0
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
push esi
add edx, 0xe38
push edx
add ebx, 0xe38
push ebx
mov ebx, dword [esp + 0x1c]
mov edx, 0x4cb44c
mov ecx, edi
call fcn.00412e10
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00423a17
add esp, 8
test eax, eax
js 0x40dae1
cmp eax, dword [esi - 8]
jg 0x40dae1
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00423a17
add esp, 8
test eax, eax
js 0x40dae1
cmp eax, dword [edi - 8]
jg 0x40dae1
mov dword [edi - 0xc], eax
xor edx, edx
mov word [edi + eax*2], dx
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.00423a17
add esp, 8
test eax, eax
js 0x40dae1
cmp eax, dword [ebx - 8]
jg 0x40dae1
mov dword [ebx - 0xc], eax
xor ecx, ecx
add esi, 0xfffffff0
mov word [ebx + eax*2], cx
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40e2fe
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e31e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e33e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e35e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e37e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e39a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x4f7510]
test eax, eax
jne 0x40e3c4
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x40e3bd
mov esi, eax
call fcn.00415ef0
jmp 0x40e3bf
xor eax, eax
mov dword [0x4f7510], eax
mov edi, eax
test eax, eax
jne 0x40e3eb
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x40e3e4
mov esi, eax
call fcn.00415ef0
jmp 0x40e3e6
xor eax, eax
mov dword [0x4f7510], eax
lea ecx, [edi + 0xe38]
push eax
call fcn.004129a0
mov eax, dword [0x4f7510]
test eax, eax
jne 0x40e44e
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x40e43b
mov esi, eax
call fcn.00415ef0
mov dword [0x4f7510], eax
test eax, eax
jne 0x40e44e
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x40e447
mov esi, eax
call fcn.00415ef0
jmp 0x40e449
mov dword [0x4f7510], 0
jmp 0x40e421
xor eax, eax
mov dword [0x4f7510], eax
mov ebx, eax
test eax, eax
jne 0x40e475
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x40e46e
mov esi, eax
call fcn.00415ef0
jmp 0x40e470
xor eax, eax
mov dword [0x4f7510], eax
mov edi, eax
test eax, eax
jne 0x40e4a4
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x40e49a
mov esi, eax
call fcn.00415ef0
mov dword [0x4f7510], eax
jmp 0x40e4a4
mov dword [0x4f7510], 0
lea ecx, [esp + 0x14]
push ecx
push 0x4cda5c
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40e4d3
add edi, 0x410
lea eax, [ebx + 0x820]
push edi
lea ebx, [esp + 0x18]
call fcn.00412cd0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e4f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e513
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e533
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x85c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042292e
mov esp, ebp
pop ebp
ret 4