Function at 0x40c830
Capabilities:
Create process on windows
Create process suspended
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x164
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x6d]
mov byte [esp + 0x6c], 0
mov dword [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push str.SOFTWARESangforSSLSangforUpdate
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40c8ce
lea ecx, [esp + 0x14]
lea edx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.SangforUpdatePath
push ecx
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c8b9
lea edx, [esp + 0x6c]
push 0x103
push edx
push str._ProgramFiles_SangforSSLSangforUpdateSangforUD.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
jmp 0x40c8e3
lea ecx, [esp + 0x6c]
push 0x103
push ecx
push str._ProgramFiles_SangforSSLSangforUpdateSangforUD.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0x3f
push str.5_0_0_0
push str.SangforUpdateModule
xor edi, edi
call fcn.0040c420
add esp, 0xc
test eax, eax
jne 0x40c910
mov edx, dword [esp + 0x178]
pop edi
pop esi
pop ebp
mov dword [edx], eax
add esp, 0x164
ret
lea eax, [esp + 0x6c]
push eax
call fcn.0040c510
mov esi, eax
add esp, 4
test esi, esi
je 0x40c947
push str.5_0_0_0
push esi
call fcn.0040c630
add esp, 8
test eax, eax
jne 0x40c93a
mov edi, 1
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
test edi, edi
jne 0x40c96b
lea ecx, [esp + 0x6c]
push ecx
call fcn.0040c760
add esp, 4
test eax, eax
jne 0x40c96b
mov edx, dword [esp + 0x178]
pop edi
pop esi
pop ebp
mov dword [edx], eax
add esp, 0x164
ret
mov ebp, dword [esp + 0x174]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x6c]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [sym.imp.MSVCP60.dll_struct_std::nothrow_t_const_std::nothrow]
not ecx
dec ecx
push eax
lea edi, [edx + ecx + 8]
push edi
call fcn.00439630
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c9af
pop edi
pop esi
pop ebp
add esp, 0x164
ret
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x70]
push eax
push str.__s___s
push esi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x38]
add esp, 0x10
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], ecx
push edx
mov dword [esp + 0x24], ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push esi
push ecx
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x4c], ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40ca3d
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x17c]
add esp, 4
xor eax, eax
pop edi
pop esi
mov dword [ecx], 1
pop ebp
add esp, 0x164
ret
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call edi
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x164
ret