Function at 0x406d20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0548
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x52f068]
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 ebx, ecx
mov dword [ebp - 0x2d4], ebx
cmp dword [ebx + 0x14], 0
je 0x407489
cmp dword [ebx + 0x2c], 0
lea esi, [ebx + 0x1c]
mov dword [ebp - 0x2cc], esi
je 0x407489
cmp dword [0x52f9fc], 0
je 0x406e69
push ecx
mov ecx, 0x52f9f8
call fcn.004043d0
mov eax, dword [0x52f9fc]
cmp byte [eax + 0x54], 0
je 0x406e69
cmp dword [eax + 0x58], 4
jb 0x406e69
mov al, byte [eax + 0x5c]
mov byte [ebp - 0x2c5], al
mov dword [ebp - 4], 6
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov dword [ebp - 4], 7
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x406df6
mov ecx, dword [esi]
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x406e01
mov eax, dword [eax]
push ecx
push eax
lea eax, [ebp - 0x234]
push 0x507ae0
push eax
call fcn.0046ad30
add esp, 0x10
lea eax, [ebp - 0x234]
mov ecx, 0x52f9f8
push 0x6c
push str.RC::RCInstExecuter::InstallSafe
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345instdll_rcinstexecuter.cpp
push eax
push 4
call fcn.00404fd0
cmp byte [ebp - 0x2c5], 0
je 0x406e50
lea eax, [ebp - 0x234]
mov ecx, 0x52f9f8
push eax
call fcn.00405320
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 8
call fcn.00402880
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0x4c]
push esi
call fcn.00405c40
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004bbb00
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call fcn.00407e90
test al, al
jne 0x406f7d
push 0
push 4
push dword [ebx]
lea ecx, [ebx + 0x4c]
mov edi, 2
call fcn.004059f0
cmp dword [0x52f9fc], 0
je 0x40756e
push ecx
mov ecx, 0x52f9f8
call fcn.004043d0
mov eax, dword [0x52f9fc]
cmp byte [eax + 0x54], 0
je 0x40756e
cmp dword [eax + 0x58], edi
jb 0x40756e
mov bl, byte [eax + 0x5c]
mov dword [ebp - 4], 0xc
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
push 0x11
push 0x507b2c
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0xd
call fcn.004028e0
push 0x76
push str.RC::RCInstExecuter::InstallSafe
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345instdll_rcinstexecuter.cpp
lea eax, [ebp - 0x24c]
mov ecx, 0x52f9f8
push eax
push edi
call fcn.00404fd0
test bl, bl
je 0x406f66
lea eax, [ebp - 0x24c]
mov ecx, 0x52f9f8
push eax
call fcn.00405320
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0xe
call fcn.00402880
jmp 0x407567
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 0x12
cmp dword [esi + 0x14], 8
jb 0x406fa6
mov esi, dword [esi]
mov dword [ebp - 0x2cc], esi
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
mov dword [ebp - 0x2d0], eax
jb 0x406fbd
mov eax, dword [eax]
mov dword [ebp - 0x2d0], eax
lea eax, [ebp - 0x218]
or edi, 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x21c], esi
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test esi, esi
je 0x407030
push str.SetProductVersion
push esi
call eax
test eax, eax
je 0x406ff5
push dword [ebp - 0x2cc]
call eax
add esp, 4
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Initialize
push esi
call eax
test eax, eax
je 0x40701c
push dword [ebp - 0x2d0]
push 0x507b50
call eax
mov edi, eax
add esp, 8
test edi, edi
je 0x40702b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
mov dword [ebp - 0x21c], esi
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x407146
push edi
push 5
push dword [ebx]
lea ecx, [ebx + 0x4c]
call fcn.004059f0
cmp dword [0x52f9fc], 0
je 0x40710e
push ecx
mov ecx, 0x52f9f8
call fcn.004043d0
mov eax, dword [0x52f9fc]
cmp byte [eax + 0x54], 0
je 0x40710e
cmp dword [eax + 0x58], 2
jb 0x40710e
mov bl, byte [eax + 0x5c]
mov byte [ebp - 4], 0x13
xor eax, eax
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
push edi
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 0x14
push 0x507b54
push eax
call fcn.0046ad30
add esp, 0xc
lea eax, [ebp - 0x264]
mov ecx, 0x52f9f8
push 0x7f
push str.RC::RCInstExecuter::InstallSafe
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345instdll_rcinstexecuter.cpp
push eax
push 2
call fcn.00404fd0
test bl, bl
je 0x4070fb
lea eax, [ebp - 0x264]
mov ecx, 0x52f9f8
push eax
call fcn.00405320
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0x15
call fcn.00402880
mov byte [ebp - 4], 0x12
mov dword [ebp - 4], 0x19
test esi, esi
je 0x407567
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UnInitialize
push esi
call eax
test eax, eax
je 0x407130
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x21c], 0
jmp 0x407567
test esi, esi
je 0x407368
push str.CanInstallSafe
push esi
call eax
test eax, eax
je 0x407368
call eax
test eax, eax
je 0x407368
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
or edi, 0xffffffff
push str.InstallSafe
push esi
call eax
test eax, eax
je 0x407180
call eax
mov edi, eax
push str.UnInitialize
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407192
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x21c], 0
test edi, edi
je 0x40728c
cmp dword [0x52f9fc], 0
je 0x40727a
push ecx
mov ecx, 0x52f9f8
call fcn.004043d0
mov eax, dword [0x52f9fc]
cmp byte [eax + 0x54], 0
je 0x40727a
cmp dword [eax + 0x58], 4
jb 0x40727a
mov bl, byte [eax + 0x5c]
mov byte [ebp - 4], 0x21
xor eax, eax
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
push 0x11
push 0x507ba0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x22
call fcn.004028e0
push 0x90
push str.RC::RCInstExecuter::InstallSafe
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345instdll_rcinstexecuter.cpp
lea eax, [ebp - 0x27c]
mov ecx, 0x52f9f8
push eax
push 4
call fcn.00404fd0
test bl, bl
je 0x407261
lea eax, [ebp - 0x27c]
mov ecx, 0x52f9f8
push eax
call fcn.00405320
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x23
call fcn.00402880
mov ebx, dword [ebp - 0x2d4]
mov byte [ebp - 4], 0x12
push edi
push 7
push dword [ebx]
lea ecx, [ebx + 0x4c]
call fcn.004059f0
jmp 0x407567
push 0
push 8
push dword [ebx]
lea ecx, [ebx + 0x4c]
call fcn.004059f0
cmp dword [0x52f9fc], 0
je 0x407363
push ecx
mov ecx, 0x52f9f8
call fcn.004043d0
mov eax, dword [0x52f9fc]
cmp byte [eax + 0x54], 0
je 0x407363
cmp dword [eax + 0x58], 4
jb 0x407363
mov bl, byte [eax + 0x5c]
mov byte [ebp - 4], 0x28
xor eax, eax
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 7
mov word [ebp - 0x294], ax
push 0x11
push 0x507bc4
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 0x29
call fcn.004028e0
push 0x96
push str.RC::RCInstExecuter::InstallSafe
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345instdll_rcinstexecuter.cpp
lea eax, [ebp - 0x294]
mov ecx, 0x52f9f8
push eax
push 4
call fcn.00404fd0
test bl, bl
je 0x407350
lea eax, [ebp - 0x294]
mov ecx, 0x52f9f8
push eax
call fcn.00405320
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 0x2a
call fcn.00402880
mov byte [ebp - 4], 0x12
jmp 0x407567
mov edi, 0xc0000026
test esi, esi
je 0x407392
push str.UnInitialize
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407383
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
mov dword [ebp - 0x21c], esi
push 0
push 6
push dword [ebx]
lea ecx, [ebx + 0x4c]
call fcn.004059f0
cmp dword [0x52f9fc], 0
je 0x407469
push ecx
mov ecx, 0x52f9f8
call fcn.004043d0
mov eax, dword [0x52f9fc]
cmp byte [eax + 0x54], 0
je 0x407469
cmp dword [eax + 0x58], 2
jb 0x407469
mov bl, byte [eax + 0x5c]
mov byte [ebp - 4], 0x1a
xor eax, eax
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 7
mov word [ebp - 0x2ac], ax
push 0xf
push 0x507b80
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0x1b
call fcn.004028e0
push 0x88
push str.RC::RCInstExecuter::InstallSafe
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345instdll_rcinstexecuter.cpp
lea eax, [ebp - 0x2ac]
mov ecx, 0x52f9f8
push eax
push 2
call fcn.00404fd0
test bl, bl
je 0x407456
lea eax, [ebp - 0x2ac]
mov ecx, 0x52f9f8
push eax
call fcn.00405320
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 0x1c
call fcn.00402880
mov byte [ebp - 4], 0x12
mov dword [ebp - 4], 0x20
test esi, esi
je 0x407567
push str.UnInitialize
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x40712a
push 0
push 2
push dword [ebx]
lea ecx, [ebx + 0x4c]
mov edi, 0x57
call fcn.004059f0
cmp dword [0x52f9fc], 0
je 0x40756e
push ecx
mov ecx, 0x52f9f8
call fcn.004043d0
mov eax, dword [0x52f9fc]
cmp byte [eax + 0x54], 0
je 0x40756e
cmp dword [eax + 0x58], 2
jb 0x40756e
mov bl, byte [eax + 0x5c]
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 7
mov word [ebp - 0x2c4], ax
push 0x10
push 0x507a78
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 4], 1
call fcn.004028e0
push 0x69
push str.RC::RCInstExecuter::InstallSafe
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src2345instdll_rcinstexecuter.cpp
lea eax, [ebp - 0x2c4]
mov ecx, 0x52f9f8
push eax
push 2
call fcn.00404fd0
test bl, bl
je 0x407555
lea eax, [ebp - 0x2c4]
mov ecx, 0x52f9f8
push eax
call fcn.00405320
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 4], 2
call fcn.00402880
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2d4]
mov al, byte [ecx + 0x54]
test al, al
je 0x4075aa
mov al, byte [ecx + 0x54]
lea edx, [ecx + 0x54]
test al, al
je 0x4075aa
xor al, al
xchg byte [edx], al
mov esi, dword [ecx + 0x50]
cmp byte [esi], 0
je 0x4075aa
call fcn.00419590
push esi
mov ecx, eax
call fcn.00419990
push 0
mov ecx, esi
call fcn.00414210
mov byte [esi], 0
mov eax, edi
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.004b9059
mov esp, ebp
pop ebp
ret