Function at 0x4029f0
Capabilities:
Get file version info
Initialize winsock library
Query environment variable

Disassembly:
sub esp, 0x8d4
push ebp
lea eax, [esp + 0x748]
push esi
mov ebp, ecx
push eax
push 0x202
mov dword [esp + 0x30], ebp
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp + 0xa4]
push ecx
mov ecx, ebp
call fcn.00402e50
lea edx, [esp + 0x1c]
xor esi, esi
push edx
mov ecx, ebp
mov dword [esp + 0x20], esi
call fcn.00402dd0
cmp eax, esi
mov dword [ebp + 0xa4], eax
je 0x402dc0
cmp dword [esp + 0x1c], esi
jle 0x402dc0
push ebx
push edi
lea ebx, [ebp + 0x60]
mov dword [esp + 0x10], esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x555]
mov byte [esp + 0x554], 0
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xa4]
mov edx, dword [esp + 0x10]
stosw word es:[edi], ax
push 0
push 0
lea eax, [esp + 0x55c]
push 0x1fe
push eax
lea eax, [edx + ecx + 0x74]
push 0x1ff
push eax
push 0
push 0
mov dword [esp + 0x38], 0x1ff
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 1
push 0
lea ecx, [esp + 0x560]
push 0
push ecx
push esi
push 3
mov ecx, ebx
call sub.MFC42.DLL_CListCtrl::InsertItem
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x34e]
mov word [esp + 0x34c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x40]
lea eax, [esp + 0x18]
push edx
mov edx, dword [ebp + 0xa4]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x354]
mov dword [esp + 0x20], 0x104
push ecx
lea ecx, [eax + edx + 0x14]
push ecx
mov dword [esp + 0x50], 0
call sub.WS2_32.dll_WSCGetProviderPath
test eax, eax
jne 0x402da3
lea edx, [esp + 0x34c]
push 0x104
lea eax, [esp + 0x350]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x145]
mov byte [esp + 0x144], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x18]
push 0
stosw word es:[edi], ax
push 0
lea ecx, [esp + 0x14c]
stosb byte es:[edi], al
push 0x208
push ecx
lea eax, [esp + 0x35c]
push edx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x144]
push ecx
push 1
push esi
mov ecx, ebx
call sub.MFC42.DLL_CListCtrl::SetItemText
mov edx, dword [ebp + 0xa4]
mov eax, dword [esp + 0x10]
cmp dword [eax + edx + 0x28], 1
jne 0x402be6
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea ecx, [esp + 0x144]
push str.mswsock.dll
push ecx
call edi
add esp, 8
test eax, eax
jne 0x402bca
lea edx, [esp + 0x144]
push str.rsvpsp.dll
push edx
call edi
add esp, 8
test eax, eax
je 0x402be6
push 0
push 2
push 2
lea eax, [esp + 0x560]
push 0
push eax
push 2
push 0
push esi
mov ecx, ebx
call sub.MFC42.DLL_CListCtrl::SetItem
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x144]
xor eax, eax
push ecx
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x402d77
push edi
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x402d73
mov eax, dword [esp + 0x2c]
push ebp
push edi
lea ecx, [esp + 0x14c]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402d62
xor eax, eax
lea edx, [esp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push edx
push eax
push 0x40a6c8
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402d62
lea ecx, [esp + 0x20]
lea edx, [esp + 0x1c]
push ecx
push edx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402d62
cmp dword [esp + 0x20], 4
jb 0x402d62
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x45]
mov byte [esp + 0x44], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x1c]
xor ecx, ecx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [edx + 2]
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], eax
mov ax, word [edi]
mov cx, word [edx]
push 0x40a69c
mov dword [esp + 0x40], edx
push eax
push ecx
lea edx, [esp + 0x50]
push str.StringFileInfo_04x_04x_s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
lea eax, [esp + 0x34]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x44]
push eax
push ecx
push edx
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402d0a
mov eax, dword [esp + 0x14]
mov ecx, ebx
push eax
push 2
push esi
mov dword [esp + 0x34], 1
call sub.MFC42.DLL_CListCtrl::SetItemText
mov eax, dword [esp + 0x3c]
xor ecx, ecx
mov cx, word [edi]
xor edx, edx
mov dx, word [eax]
push 0x40a674
push ecx
push edx
lea ecx, [esp + 0x50]
push str.StringFileInfo_04x_04x_s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
lea edx, [esp + 0x34]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x44]
push edx
push eax
push ecx
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402d62
mov edx, dword [esp + 0x14]
mov ecx, ebx
push edx
push 3
push esi
mov dword [esp + 0x44], 1
call sub.MFC42.DLL_CListCtrl::SetItemText
push ebp
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x2c]
add esp, 4
test eax, eax
jne 0x402d88
mov ebp, dword [esp + 0x30]
push str.UNKNOWN
push 2
push esi
mov ecx, ebx
call sub.MFC42.DLL_CListCtrl::SetItemText
jmp 0x402d8c
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x402da3
push str.UNKNOWN
push 3
push esi
mov ecx, ebx
call sub.MFC42.DLL_CListCtrl::SetItemText
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
inc esi
add ecx, 0x274
cmp esi, eax
mov dword [esp + 0x10], ecx
jl 0x402a52
pop edi
pop ebx
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop esi
pop ebp
add esp, 0x8d4
ret