Function at 0x41dad0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425683
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x3c8
mov eax, dword [0x42fc60]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov word [ebp - 0x1b8], 0x202
lea eax, [ebp - 0x1a8]
push eax
mov cx, word [ebp - 0x1b8]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0041ed80
add esp, 4
mov dword [ebp - 0x2f2], eax
mov dword [ebp - 0x2ee], edx
mov edx, dword [ebp - 0x2f2]
mov dword [ebp - 0x1b0], edx
mov eax, dword [ebp - 0x2ee]
mov dword [ebp - 0x1ac], eax
push 0x20
push 0x42fd50
mov ecx, dword [ebp - 0x1ac]
push ecx
mov edx, dword [ebp - 0x1b0]
push edx
call fcn.0041eef0
add esp, 0x10
push 0x42fd50
push str.PPVSServer_version__s_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 8
push str._nCopyright_2009_2013_All_rights_reserved_n_ntype__q_Enter________________to_exit_ntype__h_Enter________________to_show_help_infomation_n_n
push 0x4285b8
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 8
mov dword [ebp - 4], 0
push str.log4cpp_ppvsserver.conf
lea ecx, [ebp - 0x310]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [ebp - 0x3b0], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x310]
push eax
call sub.log4cpp.dll_public:_static_void___cdecl_log4cpp::PropertyConfigurator::configure_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x310]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x41dc1c
mov dword [ebp - 4], 0xffffffff
push str.sub1
lea ecx, [ebp - 0x32c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [ebp - 0x3b4], eax
mov edx, dword [ebp - 0x3b4]
mov dword [ebp - 0x3b8], edx
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x3b8]
push eax
call sub.log4cpp.dll_public:_static_class_log4cpp::Category____cdecl_log4cpp::Category::getInstance_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 4
mov dword [0x42fd38], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x32c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push str.sub2
lea ecx, [ebp - 0x348]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [ebp - 0x3bc], eax
mov ecx, dword [ebp - 0x3bc]
mov dword [ebp - 0x3c0], ecx
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x3c0]
push edx
call sub.log4cpp.dll_public:_static_class_log4cpp::Category____cdecl_log4cpp::Category::getInstance_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 4
mov dword [0x42fd3c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x348]
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 fcn.0041eb90
mov byte [ebp - 0x1b1], al
movzx eax, byte [ebp - 0x1b1]
test eax, eax
je 0x41e094
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp - 0x258]
call fcn.004095f0
mov dword [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x34c], esp
push str.PPVSServerConf.xml
call fcn.00421a50
lea ecx, [ebp - 0x258]
call fcn.00415990
lea ecx, [ebp - 0x258]
call fcn.004096f0
mov ecx, dword [str.7660]
mov dword [ebp - 0x1dc], ecx
mov dl, byte [0x428618]
mov byte [ebp - 0x1d8], dl
xor eax, eax
mov dword [ebp - 0x1d7], eax
mov dword [ebp - 0x1d3], eax
mov dword [ebp - 0x1cf], eax
mov dword [ebp - 0x1cb], eax
mov dword [ebp - 0x1c7], eax
mov dword [ebp - 0x1c3], eax
mov word [ebp - 0x1bf], ax
mov byte [ebp - 0x1bd], al
push ecx
mov ecx, esp
mov dword [ebp - 0x350], esp
push str.ListenPort
call fcn.00421a50
lea ecx, [ebp - 0x258]
call fcn.00416070
movzx ecx, al
test ecx, ecx
je 0x41dde6
lea edx, [ebp - 0x36c]
push edx
lea ecx, [ebp - 0x258]
call fcn.00409710
mov dword [ebp - 0x3c4], eax
mov eax, dword [ebp - 0x3c4]
mov dword [ebp - 0x3c8], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x3c8]
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, [ebp - 0x1dc]
push ecx
call sub.MSVCR71.dll_strcpy
add esp, 8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x36c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push ecx
mov ecx, esp
mov dword [ebp - 0x370], esp
push str.KeepAliveIntervals
call fcn.00421a50
lea ecx, [ebp - 0x258]
call fcn.00416070
movzx edx, al
test edx, edx
je 0x41de5e
lea eax, [ebp - 0x38c]
push eax
lea ecx, [ebp - 0x258]
call fcn.00409710
mov dword [ebp - 0x3cc], eax
mov ecx, dword [ebp - 0x3cc]
mov dword [ebp - 0x3d0], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x3d0]
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
call dword [sym.imp.MSVCR71.dll_atoi]
add esp, 4
mov dword [0x42fc94], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x38c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push ecx
mov ecx, esp
mov dword [ebp - 0x390], esp
push str.KeepAliveTimes
call fcn.00421a50
lea ecx, [ebp - 0x258]
call fcn.00416070
movzx edx, al
test edx, edx
je 0x41ded6
lea eax, [ebp - 0x3ac]
push eax
lea ecx, [ebp - 0x258]
call fcn.00409710
mov dword [ebp - 0x3d4], eax
mov ecx, dword [ebp - 0x3d4]
mov dword [ebp - 0x3d8], ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x3d8]
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
call dword [sym.imp.MSVCR71.dll_atoi]
add esp, 4
mov dword [0x42fc98], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3ac]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0
call fcn.0041e410
add esp, 4
push 0
call fcn.0041e6d0
add esp, 4
push 0x41e120
lea edx, [ebp - 0x1dc]
push edx
call dword [sym.imp.MSVCR71.dll_atoi]
add esp, 4
push eax
push 0
mov ecx, 0x42fdc0
call fcn.00422600
mov dword [ebp - 0x1e0], eax
mov ecx, 0x42fdc0
call fcn.004224e0
push 0x41e2e0
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.MSVCR71.dll_atoi]
add esp, 4
push eax
push 0
mov ecx, 0x42fca0
call fcn.00411550
mov dword [ebp - 0x1e4], eax
mov ecx, 0x42fca0
call fcn.004119e0
push 0
call dword [sym.imp.MSVCR71.dll_time]
add esp, 4
mov dword [0x42fd08], eax
push 0x1770
push 0x41e950
call fcn.004220f0
mov ecx, eax
call fcn.00422100
cmp dword [ebp - 0x1e0], 0
jne 0x41e04c
cmp dword [ebp - 0x1e4], 0
jne 0x41e04c
push 0xf
call dword [sym.imp.WatchDogDll.dll__OpenWatchDog_4]
mov byte [ebp - 0x259], al
movzx ecx, byte [ebp - 0x259]
test ecx, ecx
jne 0x41dfde
mov dword [ebp - 0x2e4], str.Open_watchdog_failed
mov edx, dword [ebp - 0x2e4]
push edx
push str._s_n_n
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 8
mov eax, dword [ebp - 0x2e4]
push eax
mov ecx, dword [0x42fd3c]
push ecx
call sub.log4cpp.dll_public:_void___cdecl_log4cpp::Category::error_char_const__
add esp, 8
jmp 0x41dfeb
mov byte [0x42fd40], 1
call dword [sym.imp.WatchDogDll.dll__SendNomalHeartbeat_0]
mov byte [ebp - 0x2e0], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x2df]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x1dc]
push edx
push str.PPVSServer_is_running_on_udp_port__s...
lea eax, [ebp - 0x2e0]
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x2e0]
push ecx
push 0x428694
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 8
lea edx, [ebp - 0x2e0]
push edx
mov eax, dword [0x42fd38]
push eax
call sub.log4cpp.dll_public:_void___cdecl_log4cpp::Category::info_char_const__
add esp, 8
jmp 0x41e080
mov dword [ebp - 0x2e8], str.PPVSServer_failed_to_start__please_check_the_listen_port_is_available
mov ecx, dword [ebp - 0x2e8]
push ecx
push 0x4286e0
call dword [sym.imp.MSVCR71.dll_printf]
add esp, 8
mov edx, dword [ebp - 0x2e8]
push edx
mov eax, dword [0x42fd3c]
push eax
call sub.log4cpp.dll_public:_void___cdecl_log4cpp::Category::error_char_const__
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.00409680
jmp 0x41e0a8
push str.PPVSServer_failed_to_start__please_check_PPVSServerConf.xml_is_correct
mov ecx, dword [0x42fd3c]
push ecx
call sub.log4cpp.dll_public:_void___cdecl_log4cpp::Category::error_char_const__
add esp, 8
call fcn.0041eb20
movzx edx, byte [ebp - 0x1b1]
test edx, edx
je 0x41e0e4
mov ecx, 0x42fdc0
call fcn.00422520
mov ecx, 0x42fca0
call fcn.004118f0
call fcn.004220f0
mov ecx, eax
call fcn.004221a0
call dword [sym.imp.WatchDogDll.dll__SendExitHeartbeat_0]
mov byte [ebp - 0x2e9], al
push str.PPVSServer_stops
mov eax, dword [0x42fd38]
push eax
call sub.log4cpp.dll_public:_void___cdecl_log4cpp::Category::info_char_const__
add esp, 8
call sub.log4cpp.dll_public:_static_void___cdecl_log4cpp::Category::shutdown_void_
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00423fdd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret