Function at 0x436a70
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x4c9b87
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4f8458]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f8458]
xor eax, esp
push eax
lea eax, [esp + 0x284]
mov dword fs:[0], eax
mov esi, dword [esp + 0x294]
push esi
push str.WriteRegAutoRun__bAutoRun_d
push str..UnitInstallHelper.cpp
mov edi, 2
call fcn.004bc4a0
xor ebp, ebp
add esp, 0xc
cmp esi, ebp
mov edi, 0x5005f8
lea esi, [esp + 0x3c]
je 0x436d41
call fcn.00468c50
push eax
mov ebx, str.uninstallinfo.ini
lea esi, [esp + 0x24]
mov dword [esp + 0x290], ebp
call fcn.00407cc0
mov edi, 8
add esp, 4
cmp dword [eax + 0x18], edi
jb 0x436b0a
mov eax, dword [eax + 4]
jmp 0x436b0d
add eax, 4
push eax
push 0x4d77b4
push str.enable
push str.autorun
call dword [0x4cf110]
cmp dword [esp + 0x38], edi
jb 0x436b36
mov eax, dword [esp + 0x24]
push eax
call fcn.00493b60
add esp, 4
mov esi, 7
mov dword [esp + 0x28c], 0xffffffff
cmp dword [esp + 0x54], edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebp
mov word [esp + 0x24], bp
jb 0x436b66
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00493b60
add esp, 4
push 0x206
lea edx, [esp + 0x7a]
push ebp
push edx
mov word [esp + 0x80], bp
call fcn.0049d900
add esp, 0xc
push 0x103
lea eax, [esp + 0x78]
push eax
push ebp
call dword [0x4cf308]
push eax
call dword [0x4cf2d8]
push 1
mov dword [esp + 0x74], esi
push 0x4d7dd0
lea esi, [esp + 0x60]
mov dword [esp + 0x74], ebp
mov word [esp + 0x64], bp
call fcn.004028c0
lea eax, [esp + 0x74]
mov dword [esp + 0x28c], 1
lea edx, [eax + 2]
jmp 0x436bd0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x436bd0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x60]
call fcn.00407d70
push 1
push 0x4d7dd0
lea ecx, [esp + 0x60]
call fcn.00407d70
push 0xf
push 0x4d7dd4
lea ecx, [esp + 0x60]
call fcn.00407d70
xor ebx, ebx
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0x18]
push edx
push 0x20006
push ebp
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov byte [esp + 0x29c], 2
push 0x80000002
mov dword [esp + 0x2c], ebp
call dword [0x4cf030]
mov esi, eax
cmp esi, ebp
jne 0x436c4b
mov ebx, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0x1c], ebx
push esi
push str.WriteRegAutoRun__open_key__ret_d
push str..UnitInstallHelper.cpp
mov edi, 2
call fcn.004bc4a0
add esp, 0xc
cmp esi, ebp
je 0x436c8d
cmp ebx, ebp
je 0x436c72
push ebx
call dword [0x4cf008]
cmp dword [esp + 0x70], 8
jb 0x436c86
mov eax, dword [esp + 0x5c]
push eax
call fcn.00493b60
add esp, 4
xor eax, eax
jmp 0x436e81
cmp dword [esp + 0x70], 8
mov esi, dword [esp + 0x5c]
jae 0x436c9c
lea esi, [esp + 0x5c]
push esi
call dword [0x4cf2d0]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebp
push 0x4d7e18
push ebx
call dword [0x4cf054]
mov esi, eax
push esi
push str.WriteRegAutoRun__set_string_key__ret_d
push str..UnitInstallHelper.cpp
call fcn.004bc4a0
add esp, 0xc
cmp esi, ebp
je 0x436cf7
cmp ebx, ebp
je 0x436cdc
push ebx
call dword [0x4cf008]
cmp dword [esp + 0x70], 8
jb 0x436c86
mov edx, dword [esp + 0x5c]
push edx
call fcn.00493b60
add esp, 4
xor eax, eax
jmp 0x436e81
sub esp, 0x1c
mov edx, str.AutoRun
mov eax, esp
mov dword [esp + 0x34], esp
call fcn.00402960
mov ecx, dword [esp + 0x2b0]
call fcn.004412f0
add esp, 0x1c
cmp ebx, ebp
je 0x436d24
push ebx
call dword [0x4cf008]
cmp dword [esp + 0x70], 8
jb 0x436e7c
mov eax, dword [esp + 0x5c]
push eax
call fcn.00493b60
add esp, 4
jmp 0x436e7c
call fcn.00468c50
push eax
mov ebx, str.uninstallinfo.ini
lea esi, [esp + 0x24]
mov dword [esp + 0x290], 3
call fcn.00407cc0
mov esi, 8
add esp, 4
cmp dword [eax + 0x18], esi
jb 0x436d72
mov eax, dword [eax + 4]
jmp 0x436d75
add eax, 4
push eax
push 0x4d77b4
push str.enable
push str.autorun
call dword [0x4cf110]
cmp dword [esp + 0x38], esi
jb 0x436d9e
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00493b60
add esp, 4
cmp dword [esp + 0x54], esi
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebp
mov word [esp + 0x24], bp
jb 0x436dc2
mov edx, dword [esp + 0x40]
push edx
call fcn.00493b60
add esp, 4
xor esi, esi
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x18]
push eax
push 0x20006
push ebp
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [esp + 0x29c], 4
push 0x80000002
mov dword [esp + 0x2c], ebp
call dword [0x4cf030]
mov ebx, eax
cmp ebx, ebp
jne 0x436e02
mov esi, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x1c], esi
push ebx
push str.WriteRegAutoRun__open_key__ret_d
push str..UnitInstallHelper.cpp
mov edi, 2
call fcn.004bc4a0
add esp, 0xc
cmp ebx, ebp
je 0x436e2d
cmp esi, ebp
je 0x436e29
push esi
call dword [0x4cf008]
xor eax, eax
jmp 0x436e81
push 0x4d7e18
push esi
call dword [section..rdata]
mov ebx, eax
push ebx
push str.WriteRegAutoRun__delete_key__ret_d
push str..UnitInstallHelper.cpp
call fcn.004bc4a0
add esp, 0xc
cmp ebx, ebp
jne 0x436e1e
sub esp, 0x1c
mov edx, str.AutoRun
mov eax, esp
xor edi, edi
mov dword [esp + 0x34], esp
call fcn.00402960
mov ecx, edi
call fcn.004412f0
add esp, 0x1c
cmp esi, ebp
je 0x436e7c
push esi
call dword [0x4cf008]
mov eax, 1
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.00493b65
add esp, 0x27c
ret