Function at 0x4307b0
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4a5f95
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x478
mov eax, dword [0x4cbba0]
xor eax, esp
push esi
mov esi, dword [esp + 0x490]
push edi
mov edi, dword [esp + 0x490]
lea ecx, [esp + 8]
mov dword [esp + 0x47c], eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esp + 0x14]
mov dword [esp + 0x488], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov dword [esp + 0xc], 0
push edi
lea eax, [esp + 0xc]
push str.Software_sUserProfile
push eax
mov byte [esp + 0x494], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push reloc.WS2_32.dll_accept
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x430a67
mov edi, dword [esp + 0xc]
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::MakeLower]
lea ecx, [esp + 0x34]
call fcn.00497f50
lea ecx, [esp + 0x4c]
mov byte [esp + 0x488], 3
call fcn.00487c70
lea ecx, [esp + 0x34]
mov byte [esp + 0x488], 4
call fcn.00497b90
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
push 0
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_1]
push eax
lea ecx, [esp + 0x3c]
call fcn.00497bf0
lea ecx, [esp + 0x34]
call fcn.00497c10
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x38]
call fcn.00497bc0
push 0
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00497c70
add esp, 0xc
mov ecx, eax
mov byte [esp + 0x488], 5
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
call dword [sym.imp.MSVCR71.dll_rand]
mov ecx, dword [esp + 0x49c]
mov edx, dword [esp + 0x498]
push eax
mov eax, dword [esp + 0x4a4]
push eax
push ecx
push edx
push 0
call dword [sym.imp.MSVCR71.dll_time]
add esp, 4
push eax
push 1
lea eax, [esp + 0x94]
push str._lld_u_u_d_d_dFFFFFFFF
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x20
lea ecx, [esp + 0x4c]
call fcn.00487ea0
lea eax, [esp + 0x7c]
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x430980
sub eax, ecx
lea esi, [eax + 1]
push esi
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x54]
call fcn.00487f10
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push esi
lea edx, [esp + 0x80]
push edx
push 3
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.config_config.ini
lea eax, [esp + 0x14]
push 0x4cbdc0
push eax
call fcn.004010a0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x4ad3b0
push str.WRITEREG
push 0x4ac6b4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x488], 3
call fcn.00487c80
lea ecx, [esp + 0x34]
mov byte [esp + 0x488], 2
call fcn.00497b80
test edi, edi
je 0x430a29
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
mov ecx, dword [esp + 0x480]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x478]
pop esi
xor ecx, esp
call fcn.004a17d1
add esp, 0x484
ret
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x430a42