Function at 0x405ef0
Capabilities:
Get file size
Read .ini file
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x424630
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x430c70]
push str.CompsVer.inf
push eax
lea eax, [esp + 0x24]
push str._sUpdate_s
push eax
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x2c]
add esp, 0x10
push ecx
push 0x20
push 0x20
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push str.18.00
push str.Version
push str.UPDATE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
or ebp, 0xffffffff
lea ecx, [esp + 0x14]
push ebp
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [0x430c94]
cmp eax, 3
ja case.default.0x405f87
jmp dword [eax*4 + 0x4062b8]
mov dword [edi + 0x1c8], ebx
jmp case.default.0x405f87
mov dword [edi + 0x1c8], 3
mov eax, dword [0x430ca0]
cmp eax, ebx
je 0x405fd6
mov edx, dword [0x430ca8]
mov eax, dword [0x430ca4]
mov cx, word [0x430c9c]
push edx
mov edx, dword [0x430c98]
push eax
push 1
push 1
push ecx
push edx
lea ecx, [edi + 0x174]
call fcn.00403be0
jmp case.default.0x405f87
mov ax, word [0x430c9c]
mov ecx, dword [0x430c98]
push ebx
push ebx
push ebx
push 1
push eax
push ecx
lea ecx, [edi + 0x174]
call fcn.00403be0
jmp case.default.0x405f87
mov dword [edi + 0x1c8], 1
mov ecx, edi
call fcn.004062d0
test eax, eax
je 0x406288
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov edx, dword [0x430ce8]
mov byte [esp + 0x34], 2
cmp dword [edx - 8], ebx
je 0x406160
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x430c70]
mov byte [esp + 0x34], 3
push eax
lea eax, [esp + 0x28]
push str._sDownloadVer.chk
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [0x430d1c]
mov edx, dword [0x430d18]
mov eax, dword [0x430ce8]
add esp, 0xc
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_tag_sexp_d
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
add esp, 0x14
lea ecx, [edi + 0x174]
push ebx
push 1
push edx
push eax
call fcn.00402660
test eax, eax
jne 0x406152
mov ecx, dword [esp + 0x24]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebx
je 0x406152
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
push ebx
push esi
mov byte [esp + 0x3c], 4
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edx, [esp + 0x28]
inc eax
push ebx
push edx
push eax
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x38], ebx
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40613d
push ebp
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::MakeLower
push 0x42d31c
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Find
cmp eax, ebp
je 0x40613d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 3
call fcn.004235ea
mov byte [esp + 0x34], 2
lea ecx, [esp + 0x24]
jmp 0x406275
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 3
call fcn.004235ea
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 2
call fcn.004235ea
mov eax, dword [0x430ce4]
cmp dword [eax - 8], ebx
je 0x40627a
mov ecx, dword [0x430d1c]
mov edx, dword [0x430d18]
push ecx
push edx
push eax
lea eax, [esp + 0x1c]
push str._s_tag_sexp_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x34], 5
lea esi, [edi + 0x174]
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ecx
mov ecx, esi
call fcn.00402660
cmp eax, 1
jne 0x40626c
mov ecx, esi
call fcn.00403cd0
push eax
lea ecx, [esp + 0x1c]
call fcn.004235f0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::MakeLower
push str.http:__
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find
cmp eax, ebp
je 0x4061f7
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
jmp 0x4061a3
lea esi, [edi + 0x170]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [esi]
mov ecx, dword [esp + 0x14]
push esi
push ecx
call fcn.00413a60
add esp, 8
cmp eax, 1
jne 0x40626c
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call fcn.004235ea
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call fcn.004235ea
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.004235ea
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ebp
call fcn.004235ea
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov byte [esp + 0x34], 2
lea ecx, [esp + 0x18]
call fcn.004235ea
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call fcn.004235ea
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.004235ea
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ebp
call fcn.004235ea
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret