Function at 0x401a60
Capabilities:
Create process on windows
Get file size
Read data from internet
Read file on windows
Receive data

Disassembly:
sub esp, 0x148
mov eax, dword [0x41788c]
xor eax, esp
mov dword [esp + 0x144], eax
cmp dword [0x418f78], 1
jne 0x401a85
push 1
call dword [sym.imp.KERNEL32.dll_ExitThread]
push edi
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x100
push 0
push 0x418c30
call fcn.00405440
push 0x100
push 0
push 0x418b30
call fcn.00405440
add esp, 0x18
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push 0x80000000
push str.version.dat
mov dword [0x418b20], eax
mov dword [0x418b24], eax
mov dword [0x418b28], eax
mov dword [0x418b2c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401b16
push 0
push str.Notice
push str.Cant_find_Client_version_infomation_file.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00404e58
add esp, 0x148
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 8
jae 0x401ba0
push 0
lea eax, [esp + 0xc]
push eax
push 0x100
push 0x418c30
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, 1
cmp dword [esp + 8], esi
jbe 0x401c0f
lea esp, [esp]
cmp esi, 2
jne 0x401b78
movsx ecx, byte [0x418c32]
push ecx
push 0x2e
push 0x418b20
push str._s_c_d
push 0x418b20
call fcn.00401790
add esp, 0x14
jmp 0x401b97
movsx edx, byte [esi + 0x418c30]
push edx
push 0x418b20
push str._s_d
push 0x418b20
call fcn.00401790
add esp, 0x10
inc esi
cmp esi, dword [esp + 8]
jb 0x401b50
jmp 0x401c0f
cmp eax, 0xa
jbe 0x401c16
push 0
lea eax, [esp + 0xc]
push eax
push 0x100
push 0x418c30
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, 1
cmp esi, 2
jne 0x401bea
movsx ecx, byte [0x418c32]
push ecx
push 0x2e
push 0x418b20
push str._s_c_d
push 0x418b20
call fcn.00401790
add esp, 0x14
jmp 0x401c09
movsx edx, byte [esi + 0x418c30]
push edx
push 0x418b20
push str._s_d
push 0x418b20
call fcn.00401790
add esp, 0x10
inc esi
cmp esi, 6
jl 0x401bc2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x418b04]
push ebx
push 0
push 0
lea eax, [esp + 0x18]
push eax
push str.pub_1003b_Patch_Version_version.dat
push ecx
call dword [sym.imp.WININET.dll_FtpFindFirstFileA]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [esp + 0x30]
push eax
call ebx
mov edx, dword [0x418b04]
xor eax, eax
push eax
push 2
push 0x80000000
push str.pub_1003b_Patch_Version_version.dat
push edx
mov dword [0x418b10], eax
mov dword [0x418b14], eax
mov dword [0x418b18], eax
mov dword [0x418b1c], eax
call dword [sym.imp.WININET.dll_FtpOpenFileA]
mov edi, eax
test edi, edi
jne 0x401ca1
push eax
push str.Notice
push str.Cant_find_Server_version_information_file.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00404e58
add esp, 0x148
ret
cmp esi, 8
jae 0x401d20
lea eax, [esp + 0xc]
push eax
push 0x100
push 0x418b30
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, 1
cmp dword [esp + 0xc], esi
jbe 0x401d8d
jmp 0x401cd0
cmp esi, 2
jne 0x401cf8
movsx ecx, byte [0x418b32]
push ecx
push 0x2e
push 0x418b10
push str._s_c_d
push 0x418b10
call fcn.00401790
add esp, 0x14
jmp 0x401d17
movsx edx, byte [esi + 0x418b30]
push edx
push 0x418b10
push str._s_d
push 0x418b10
call fcn.00401790
add esp, 0x10
inc esi
cmp esi, dword [esp + 0xc]
jb 0x401cd0
jmp 0x401d8d
cmp esi, 0xa
jbe 0x401d8d
lea eax, [esp + 0xc]
push eax
push 0x100
push 0x418b30
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, 1
cmp esi, 2
jne 0x401d68
movsx ecx, byte [0x418b32]
push ecx
push 0x2e
push 0x418b10
push str._s_c_d
push 0x418b10
call fcn.00401790
add esp, 0x14
jmp 0x401d87
movsx edx, byte [esi + 0x418b30]
push edx
push 0x418b10
push str._s_d
push 0x418b10
call fcn.00401790
add esp, 0x10
inc esi
cmp esi, 6
jl 0x401d40
push edi
call ebx
mov ecx, 0x418b10
mov eax, 0x418b20
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401dc0
test dl, dl
je 0x401dbc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401dc0
add eax, 2
add ecx, 2
test dl, dl
jne 0x401da0
xor eax, eax
jmp 0x401dc5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401e1f
push 1
push eax
mov eax, dword [0x418f0c]
push 0x418d40
push str.Patcher.exe
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 2
je 0x401df1
cmp eax, 3
jne 0x401e05
push 0
push str.Notice
push str.Cant_find_game_execute_file.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00404e58
add esp, 0x148
ret
mov ecx, dword [esp + 0x150]
pop ebx
pop esi
pop edi
xor ecx, esp
mov eax, 1
call fcn.00404e58
add esp, 0x148
ret