Function at 0x401474
Capabilities:
Check mutex on windows
Create directory
Delete file
Get common file path
Get file version info
Link many functions at runtime
Move file
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov dword [ebp - 0x78], 0xff017de0
push ebx
mov eax, 0xcae9
mov word [ebp - 0x74], ax
push esi
push edi
xor ebx, ebx
mov ecx, 0x11cf
mov dword [ebp - 0x25], ebx
mov word [ebp - 0x72], cx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x6e], bl
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x70], 0x8a
mov byte [ebp - 0x6f], 0x99
mov byte [ebp - 0x6d], 0xaa
mov byte [ebp - 0x6b], 0x62
mov byte [ebp - 0x6a], 0xc6
mov byte [ebp - 0x69], 9
mov dword [ebp - 0x68], 0xff017de1
mov word [ebp - 0x64], ax
mov byte [ebp - 0x5e], bl
mov word [ebp - 0x62], cx
mov byte [ebp - 0x5c], bl
mov byte [ebp - 0x60], 0x8a
mov byte [ebp - 0x5f], 0x99
mov byte [ebp - 0x5d], 0xaa
mov byte [ebp - 0x5b], 0x62
mov byte [ebp - 0x5a], 0xc6
mov byte [ebp - 0x59], 9
mov dword [ebp - 0x58], 0xff017de2
mov word [ebp - 0x54], ax
mov byte [ebp - 0x4e], bl
mov word [ebp - 0x52], cx
mov byte [ebp - 0x4c], bl
mov byte [ebp - 0x50], 0x8a
mov byte [ebp - 0x4f], 0x99
mov byte [ebp - 0x4d], 0xaa
push str.ws2setup_mutex
mov dword [ebp - 0x212], ebx
mov byte [ebp - 0x4b], 0x62
mov byte [ebp - 0x4a], 0xc6
mov byte [ebp - 0x49], 9
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4025a8
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.ws2setup.log
lea ecx, [ebp + eax - 0x20c]
push ecx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x180
lea ecx, [ebp - 0x20c]
push ecx
call sub.MSVCRT.dll__chmod
add esp, 8
lea ecx, [ebp - 0x20c]
push 0x4052e0
push ecx
call sub.MSVCRT.dll_fopen
add esp, 8
lea ecx, [ebp - 0x48]
mov dword [0x403160], eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, word [ebp - 0x3c]
movzx edx, word [ebp - 0x3e]
push ecx
push edx
movzx eax, word [ebp - 0x40]
movzx ecx, word [ebp - 0x48]
push eax
push ecx
movzx edx, word [ebp - 0x42]
movzx eax, word [ebp - 0x46]
push edx
push eax
push str._nWS2SETUP_begin:__02ld__02ld__ld__02ld:_02ld:_02ld_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0x20
lea ecx, [ebp - 4]
lea edx, [ebp - 0x14]
xor esi, esi
push ecx
push edx
push esi
push 0xf003f
push esi
push esi
push esi
push str.SystemCurrentControlSetServicesWinsock2
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40160d
push eax
push str.ERROR:_RegCreateKeyEx__Winsock2__failed__error_ld_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0xc
jmp 0x4024a2
lea eax, [ebp - 4]
lea ecx, [ebp - 0x1c]
push eax
xor esi, esi
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push str.Setup
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40164b
push eax
push str.ERROR:_RegCreateKeyEx__Setup__failed__error_ld_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0xc
jmp 0x4024a2
mov byte [ebp - 0x20c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 8]
lea ecx, [ebp - 0x20c]
push eax
lea edx, [ebp - 4]
mov dword [ebp - 0x82], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 8], 0x104
push ecx
push edx
push 0
push str.VendorInstallDll
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401748
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x212], eax
test eax, eax
je 0x401725
lea eax, [ebp - 0x20c]
push eax
push str.Loaded__s__VendorInstallDll__n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0xc
push str.VendorInstallProvider
push dword [ebp - 0x212]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.VendorInstallNameSpace
mov dword [ebp - 0x38], eax
push dword [ebp - 0x212]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.VendorCompleteWS2Install
mov dword [ebp - 0x34], eax
push dword [ebp - 0x212]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.VendorGetSetupOptions
mov dword [ebp - 0x30], eax
push dword [ebp - 0x212]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x82], eax
jmp 0x40175b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push str.LoadLibrary__s__VendorInstallDll_failed__error_ld_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0x10
jmp 0x40175b
push str.RegQueryValueEx_VendorInstallDll__failed_n
mov eax, dword [0x403160]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 8
cmp dword [ebp - 0x82], 0
je 0x40176f
push 0x4042a4
call dword [ebp - 0x82]
mov eax, dword [0x4042b0]
push eax
mov eax, dword [0x403160]
push dword [0x4042ac]
push dword [0x4042a8]
push str.VendorWantsMSTCP_ld__WantsMSIPX_ld__WantsSetupUI_ld_n
push eax
call sub.MSVCRT.dll_fprintf
add esp, 0x14
xor eax, eax
cmp dword [0x4042b0], eax
je 0x4017bc
push eax
push 0x4013e5
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x4042a0], eax
jmp 0x4017c6
mov dword [0x4042a0], 0
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.wsock32.dlx
lea ecx, [ebp + eax - 0x20c]
push ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x20c]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x40181e
lea eax, [ebp - 0x20c]
push eax
push str.GetFileVersionInfoSize__s__failed_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0xc
add edi, 0x20
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x401850
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.LocalAlloc_LPTR__d__failed__error_ld__in_version_check_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0x10
jmp 0x40242d
push esi
lea eax, [ebp - 0x20c]
push edi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40187e
lea eax, [ebp - 0x20c]
push eax
push str.VeryQueryValue__s__failed_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0xc
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x82]
push eax
push ecx
push 0x4045f8
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4018b2
lea eax, [ebp - 0x20c]
push eax
push str.VeryQueryValue__s__failed_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0xc
mov eax, dword [ebp - 0x82]
push esi
mov ecx, dword [eax + 0x10]
mov dword [0x40315c], ecx
mov edx, dword [eax + 0x14]
mov dword [0x403158], edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [0x403158]
mov eax, dword [0x40315c]
push eax
push str.New_wsock32.dll_file_version:__08lx._08lx_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetVersion]
call esi
test eax, 0x80000000
je 0x402417
call esi
and al, 3
cmp al, 3
je 0x402417
xor esi, esi
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 4
push esi
mov edi, 0x403030
push str.WS2_95_Install_Success
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.ws2bakup
mov dword [0x403154], eax
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add dword [0x403154], 9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [0x403154]
push str.ws2bakup.bat
inc dword [0x403154]
mov byte [ecx + 0x403030], 0x5c
mov eax, dword [0x403154]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
call sub.MSVCRT.dll__access
add esp, 8
cmp eax, 0xffffffff
jne 0x401a47
push 0x404fb8
push edi
call sub.MSVCRT.dll_fopen
add esp, 8
mov dword [0x40429c], eax
cmp eax, esi
je 0x401a36
push str.REM_This_is_the_Winsock2_backup_batch_file__n
push eax
call sub.MSVCRT.dll_fprintf
movzx eax, word [ebp - 0x3c]
movzx ecx, word [ebp - 0x3e]
add esp, 8
movzx edx, word [ebp - 0x40]
push eax
push ecx
movzx eax, word [ebp - 0x48]
movzx ecx, word [ebp - 0x42]
push edx
push eax
push ecx
mov eax, dword [0x40429c]
movzx edx, word [ebp - 0x46]
push edx
push str.REM_created__02ld__02ld__ld__02ld:_02ld:_02ld._n
push eax
call sub.MSVCRT.dll_fprintf
add esp, 0x20
push str.REM_Run_this_batch_file_to_restore_the_Winsock_files_n
push dword [0x40429c]
call sub.MSVCRT.dll_fprintf
add esp, 8
push str.REM_that_existed_prior_to_running_Winsock2_setup._n
push dword [0x40429c]
call sub.MSVCRT.dll_fprintf
add esp, 8
push str.Created_WS2BAKUP.BAT_backup_batch_file_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
mov dword [0x404298], 1
add esp, 8
jmp 0x401a64
mov dword [0x404298], 0
push str.Attempt_to_create_WS2BAKUP.BAT_backup_batch_file_failed_n
jmp 0x401a56
mov dword [0x404298], 0
push str.Detected_existing_backup_files___not_backing_up_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 8
push str.WSOCK32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401c6b
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00401198
test eax, eax
je 0x401aa8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40242d
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x401af6
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00401198
test eax, eax
je 0x401aef
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40242d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x4042a8], 0
jne 0x401b0c
cmp dword [0x4042ac], 0
je 0x401c62
push str.WSAStartup
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSACleanup
mov dword [ebp - 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSAGetLastError
mov dword [ebp - 0x20], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.socket
mov dword [ebp - 0x7c], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.closesocket
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x82], eax
lea eax, [ebp - 0x460]
push eax
push 0x101
call dword [ebp - 0x10]
test eax, eax
jne 0x401c4e
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
mov dword [ebp - 8], eax
push 1
inc dword [ebp - 8]
mov byte [ebp + eax - 0x20c], 0x5c
push 2
call edi
cmp eax, 0xffffffff
je 0x401bab
mov ebx, 1
push eax
call dword [ebp - 0x82]
jmp 0x401bc2
call dword [ebp - 0x7c]
push eax
push str.socket_INET_STREAM__failed__error_ld_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0xc
mov eax, 0x404de0
test ebx, ebx
jne 0x401bd0
mov eax, str.NOT
push eax
push str.Microsoft_TCP_1.1__sinstalled_n
mov eax, dword [0x403160]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 0xc
push 0
push 1
push 6
call edi
cmp eax, 0xffffffff
jne 0x401c17
push 0
push 2
push 6
call edi
cmp eax, 0xffffffff
jne 0x401c17
call dword [ebp - 0x7c]
push eax
push str.socket_IPX_STREAM___socket_IPX_DGRAM__failed__error_ld_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0xc
jmp 0x401c25
mov dword [ebp - 0x25], 1
push eax
call dword [ebp - 0x82]
cmp dword [ebp - 0x25], 0
mov eax, 0x404de0
jne 0x401c35
mov eax, str.NOT
push eax
push str.Microsoft_IPX_1.1__sinstalled_n
mov eax, dword [0x403160]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 0xc
call dword [ebp - 0x20]
jmp 0x401c62
push eax
push str.WSAStartup___failed__WSOCK32.DLL___error_ld_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401c85
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_locate_WSOCK32.DLL__error_ld_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.ProvidersINET
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401db1
push str.Winsock2_INET_key_found_n
mov eax, dword [0x403160]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 8
lea eax, [ebp - 8]
lea ecx, [ebp - 0x20c]
lea edx, [ebp - 4]
mov dword [ebp - 8], 0x104
push eax
push ecx
push edx
push 0
push str.ProviderName
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401d89
cmp dword [ebp - 4], 1
jne 0x401d89
lea eax, [ebp - 0x20c]
push eax
push str.Winsock2_INET_ProviderName_s_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0xc
lea ecx, [ebp - 0x20c]
mov byte [ebp - 0x109], 0
push str.Microsoft_TCP
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401d7d
cmp dword [0x4042a8], 0
je 0x401d71
test ebx, ebx
je 0x401d41
mov dword [ebp - 0x82], 1
jmp 0x401da6
push 0
mov eax, dword [0x4042a0]
push str.Winsock2_Setup_Error
push str.Please_install_the_Microsoft_TCP_IP_network_protocol_from_your_Windows95_install_disk__then_restart_setup._If_Microsoft_TCP_IP_is_already_installed__reboot_and_run__windows_WS2BAKUPWS2BAKUP.BAT_to_restore_your_previous_Winsock_components__then_reboot_and_rerun_this_setup_program.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.Attempted_to_upgrade_to_Microsoft_TCP_2.0__but_Microsoft_TCP_1.1_is_not_installed_n
mov eax, dword [0x403160]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 8
jmp 0x40242d
mov dword [ebp - 0x82], 0
jmp 0x401da6
mov dword [ebp - 0x82], 0
jmp 0x401da6
push str.No_Winsock2_INET_ProviderName_found_n
mov eax, dword [0x403160]
mov dword [ebp - 0x82], 0
push eax
call sub.MSVCRT.dll_fprintf
add esp, 8
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401e13
push str.No_Winsock2_INET_key_found_n
mov eax, dword [0x403160]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 8
cmp dword [0x4042a8], 0
je 0x401e09
test ebx, ebx
je 0x401ddd
mov dword [ebp - 0x82], 1
jmp 0x401e13
push 0
push str.Winsock2_Setup_Error
push str.Please_install_the_Microsoft_TCP_IP_network_protocol_from_your_Windows95_install_disk__then_restart_setup._If_Microsoft_TCP_IP_is_already_installed__reboot_and_run__windows_WS2BAKUPWS2BAKUP.BAT_to_restore_your_previous_Winsock_components__then_reboot_and_rerun_this_setup_program.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.Attempted_to_upgrade_to_Microsoft_TCP_2.0__but_Microsoft_TCP_1.1_not_installed_n
mov eax, dword [0x403160]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 8
jmp 0x40242d
mov dword [ebp - 0x82], 0
cmp dword [ebp - 0x82], 0
mov eax, 0x404de0
jne 0x401e26
mov eax, str.Not
push eax
push str._sUpgrading_Microsoft_TCP_n
mov eax, dword [0x403160]
xor ebx, ebx
push eax
call sub.MSVCRT.dll_fprintf
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.ProvidersIPX
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401f0d
push str.Winsock2_IPX_key_found_n
mov eax, dword [0x403160]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 8
lea eax, [ebp - 8]
lea ecx, [ebp - 0x20c]
lea edx, [ebp - 4]
mov dword [ebp - 8], 0x104
push eax
push ecx
push edx
push ebx
push str.ProviderName
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401eed
cmp dword [ebp - 4], 1
jne 0x401eed
lea eax, [ebp - 0x20c]
push eax
push str.Winsock2_IPX_ProviderName_s_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0xc
lea ecx, [ebp - 0x20c]
mov byte [ebp - 0x109], bl
push str.Microsoft_IPX
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401ee9
cmp dword [0x4042ac], ebx
je 0x401ee5
cmp dword [ebp - 0x25], 1
sbb ebx, ebx
inc ebx
jmp 0x401f02
xor ebx, ebx
jmp 0x401f02
xor ebx, ebx
jmp 0x401f02
xor ebx, ebx
push str.No_Winsock2_IPX_ProviderName_found_n
mov eax, dword [0x403160]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 8
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401f35
push str.No_Winsock2_IPX_key_found_n
mov eax, dword [0x403160]
push eax
mov ebx, 0
call sub.MSVCRT.dll_fprintf
add esp, 8
cmp dword [0x4042ac], 0
je 0x401f35
cmp dword [ebp - 0x25], 1
sbb ebx, ebx
inc ebx
mov eax, 0x404de0
test ebx, ebx
jne 0x401f43
mov eax, str.Not
push eax
push str._sUpgrading_Microsoft_IPX_n
mov eax, dword [0x403160]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 0xc
lea eax, [ebp - 0x20c]
xor esi, esi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov byte [ebp + eax - 0x20c], 0x5c
mov dword [ebp - 8], eax
inc dword [ebp - 8]
cmp dword [ebp - 0x82], esi
je 0x401fd5
mov dword [ebp - 4], esi
cmp dword [str.msafd.dll], esi
je 0x401fd5
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
push dword [eax*4 + 0x404218]
lea eax, [ebp + edx - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 4]
push dword [edx*4 + 0x404218]
call fcn.00401050
test eax, eax
je 0x40242d
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x404218], esi
jne 0x401f8c
xor esi, esi
test ebx, ebx
je 0x402097
mov dword [ebp - 4], esi
cmp dword [str.msipx.dll], esi
je 0x402033
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
push dword [eax*4 + 0x40426c]
lea eax, [ebp + edx - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 4]
push dword [edx*4 + 0x40426c]
call fcn.00401050
test eax, eax
je 0x40242d
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x40426c], esi
jne 0x401fea
cmp dword [ebp - 0x82], 0
jne 0x402097
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x40426c], 0
je 0x402097
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
push dword [eax*4 + 0x40426c]
lea eax, [ebp + edx - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 4]
push dword [edx*4 + 0x40426c]
call fcn.00401050
test eax, eax
je 0x40242d
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x40426c], 0
jne 0x40204c
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [str.rnr20.dll], esi
je 0x4020ed
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
push dword [eax*4 + 0x40428c]
lea eax, [ebp + edx - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 4]
push dword [edx*4 + 0x40428c]
call fcn.00401050
test eax, eax
je 0x40242d
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x40428c], esi
jne 0x4020a4
push str.wsock32.dll
push 0x404ab0
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push str.wS2_32.dll
push str.wS2_32.dlx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push str.WS2_32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x40213d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadLibrary_WS2_32.DLL__failed__error_ld
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0xc
jmp 0x40242d
push str.WSAStartup
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSACleanup
mov dword [ebp - 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSCInstallProvider
mov dword [ebp - 0x20], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.WSCInstallNameSpace
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x25], eax
lea eax, [ebp - 0x460]
push eax
push 0x202
call dword [ebp - 0x10]
test eax, eax
je 0x40219f
push eax
push str.WSAStartup___failed__error_ld
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0xc
cmp dword [ebp - 0x82], 0
je 0x4021d5
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x78]
push eax
push 3
push 0x403328
push str._windir__systemmsafd.dll
push ecx
call edi
push dword [ebp - 0x10]
push eax
push str.WSCInstallProvider_msafd__result_ld__Err_ld__n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0x10
test ebx, ebx
je 0x402206
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x68]
push eax
push 3
push 0x403a84
push str._windir__systemmsipx.dll
push ecx
call edi
push dword [ebp - 0x10]
push eax
push str.WSCInstallProvider_msipx__result_ld__Err_ld__n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0x10
lea eax, [ebp - 0x58]
push eax
push 0
push 0xc
push str._windir__system_rnr20.dll
push str.DNS_Name_Space_Provider.
call dword [ebp - 0x25]
push eax
push str.WSCInstallNameSpace_rnr20__result_ld_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0xc
cmp dword [ebp - 0x38], 0
je 0x402239
push edi
call dword [ebp - 0x38]
cmp dword [ebp - 0x34], 0
je 0x402245
push dword [ebp - 0x25]
call dword [ebp - 0x34]
call dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [str.ws2thk.dll], esi
je 0x4022a5
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
push dword [eax*4 + 0x4041e0]
lea eax, [ebp + edx - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 4]
push dword [edx*4 + 0x4041e0]
call fcn.00401050
test eax, eax
je 0x40242d
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x4041e0], esi
jne 0x40225c
mov esi, str.msvcrt.dll
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 8]
push eax
lea edx, [ebp + ecx - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.00401050
test eax, eax
je 0x40242d
push 0x104
lea eax, [ebp - 0x20c]
push eax
inc dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
mov byte [ebp + eax - 0x20c], 0x5c
inc dword [ebp - 8]
cmp dword [ecx*4 + 0x4041e0], 0
je 0x40235c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
push dword [eax*4 + 0x4041e0]
lea eax, [ebp + edx - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 4]
push dword [edx*4 + 0x4041e0]
call fcn.00401050
test eax, eax
je 0x40242d
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [eax*4 + 0x4041e0], 0
jne 0x402311
mov esi, 1
push 4
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], esi
push 4
push edi
push str.WS2_95_Install_Success
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x82], edi
je 0x4023cb
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
push eax
push ecx
push edi
push 0x20006
push edi
push edi
push edi
push str.ProvidersINET
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4023cb
push 0xe
push str.Microsoft_TCP
push esi
push edi
push str.ProviderName
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
test ebx, ebx
je 0x40242d
lea eax, [ebp - 4]
lea ecx, [ebp - 0xc]
push eax
push ecx
push esi
push 0x20006
push esi
push esi
push esi
push str.ProvidersIPX
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40242d
push 0xe
push str.Microsoft_IPX
push 1
push esi
push str.ProviderName
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40242d
call esi
push eax
push str.ERROR:_GetVersion_ld__operating_system_not_Windows95_n
push dword [0x403160]
call sub.MSVCRT.dll_fprintf
add esp, 0xc
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x404298], 0
je 0x40247d
mov eax, dword [0x40429c]
push eax
call sub.MSVCRT.dll_fclose
add esp, 4
cmp dword [ebp - 0x18], 0
jne 0x40247d
push str.WS2BAKUP.BAT
mov eax, dword [0x403154]
mov esi, 0x403030
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call sub.MSVCRT.dll_remove
add esp, 4
cmp dword [ebp - 0x212], 0
je 0x4024a2
cmp dword [ebp - 0x30], 0
je 0x402496
cmp dword [ebp - 0x18], 1
sbb eax, eax
push eax
call dword [ebp - 0x30]
push dword [ebp - 0x212]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x18], 0
mov eax, str.success
jne 0x4024b2
mov eax, str.failure
push eax
push str.WS2SETUP_end:__s_n
mov eax, dword [0x403160]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 0xc
mov eax, dword [0x403160]
push eax
call sub.MSVCRT.dll_fclose
add esp, 4
xor eax, eax
cmp dword [0x4042a0], eax
je 0x402502
push eax
push eax
push 0x400
mov eax, dword [0x4042a0]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
call section..text
mov eax, dword [0x4042a0]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [0x4042b0], 0
je 0x4025a8
mov esi, str.Winsock2_was_successfully_installed._You_must_reboot_for_changes_to_take_effect._Setup_details_can_be_viewed_in__sWS2SETUP.LOG._Winsock2_can_be_uninstalled_by_running__sWS2BAKUPWS2BAKUP.BAT.
lea edi, [ebp - 0x2d0]
mov ecx, 0x30
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, str.An_error_was_encountered_while_installing_Winsock2.__Setup_has_been_cancelled.__See__sWS2SETUP.LOG_for_more_information.
lea edi, [ebp - 0xf8]
mov ecx, 0x1e
push 0x104
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x30c
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4025a8
cmp dword [ebp - 0x18], 0
lea eax, [ebp - 0x20c]
push eax
je 0x40257d
push eax
lea ecx, [ebp - 0x2d0]
push ecx
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40258e
lea ecx, [ebp - 0xf8]
push ecx
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x1000
push 0x4044ac
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10