Function at 0x404d40
Capabilities:
Read .ini file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x415c2b
mov eax, dword fs:[0]
push eax
sub esp, 0x948
mov eax, dword [0x41a2f0]
xor eax, esp
mov dword [esp + 0x940], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41a2f0]
xor eax, esp
push eax
lea eax, [esp + 0x95c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x970]
mov esi, dword [esp + 0x96c]
mov ebp, dword [esp + 0x974]
xor ebx, ebx
push 0x3ff
mov dword [esp + 0x44], eax
lea eax, [esp + 0x559]
push ebx
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x28], edx
mov byte [esp + 0x560], bl
call fcn.00409500
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0x159]
push ebx
push ecx
mov byte [esp + 0x160], bl
call fcn.00409500
add esp, 0xc
push 0x103
lea edx, [esp + 0x51]
push ebx
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x58], bl
call fcn.00409500
add esp, 0xc
mov dword [esp + 0x28], 0xffffffff
push str.MultiProductVR.ini
mov dword [esp + 0x968], ebx
push str.SIZE__s_r_n
mov ecx, 0x400
lea edi, [esp + 0x55c]
mov dword [esp + 0x1c], ebx
call fcn.00401bb0
mov eax, edi
add esp, 8
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404e41
lea ecx, [esp + 0x20]
push ecx
sub eax, edi
push eax
lea edx, [esp + 0x55c]
push edx
push ebp
mov eax, esi
call fcn.00404180
add esp, 0x10
cmp eax, ebx
je 0x40513f
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push 0x400
lea edx, [esp + 0x164]
push edx
push esi
push ebp
call fcn.00403ee0
add esp, 0x1c
cmp eax, ebx
je 0x40513f
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x15c]
push str._d__I64d
push edx
call fcn.0040777a
mov ecx, dword [esp + 0x34]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 0x10
cmp eax, 2
jne 0x4050df
mov ecx, dword [esp + 0x1c]
push str.MultiProductVR.ini
push ecx
push str._s_s
mov ecx, 0x104
lea edi, [esp + 0x58]
call fcn.00401bb0
add esp, 0xc
push ebx
push 0x80
push 2
push ebx
push 3
push 0x40000000
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x4050ca
push str.MultiProductVR.ini
push str.RETR__s_r_n
mov ecx, 0x400
lea edi, [esp + 0x55c]
mov dword [esp + 0x30], eax
call fcn.00401bb0
mov eax, edi
add esp, 8
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404f40
sub eax, edx
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x55c]
push edx
push ebp
mov eax, esi
call fcn.00404180
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x40512d
cmp dword [esp + 0x38], ebx
jl 0x404ff0
jg 0x404f7a
cmp dword [esp + 0x34], ebx
jbe 0x404ff0
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x1c]
push ecx
push 0x400
lea edx, [esp + 0x164]
push edx
push eax
push ebp
call fcn.00403ee0
mov esi, eax
add esp, 0x1c
cmp esi, ebx
je 0x40512d
mov eax, dword [esp + 0x14]
add dword [esp + 0x2c], eax
push ebx
lea ecx, [esp + 0x4c]
adc dword [esp + 0x34], ebx
push ecx
push eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x160]
push edx
push eax
call edi
test eax, eax
je 0x4050c6
mov ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x38]
jl 0x404f80
jg 0x404ff0
mov edx, dword [esp + 0x2c]
cmp edx, dword [esp + 0x34]
jb 0x404f80
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x400
lea eax, [esp + 0x164]
push eax
push edi
push ebp
mov dword [esp + 0x30], ebx
call fcn.00403ee0
mov esi, eax
add esp, 0x1c
cmp esi, ebx
je 0x40512d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
push ecx
mov ecx, dword [esp + 0x18]
lea ebx, [esp + 0x1c]
lea esi, [esp + 0x158]
call fcn.00404be0
mov ecx, dword [esp + 0x1c]
add esp, 4
test ecx, ecx
jne 0x4050b0
push 0x400
push ecx
mov edx, esi
push edx
mov dword [esp + 0x20], ecx
call fcn.00409500
add esp, 0xc
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x400
mov eax, esi
push eax
push edi
push ebp
call fcn.00403ee0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x40512d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x158]
call fcn.00404be0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
je 0x4050e3
xor esi, esi
jmp 0x40512d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.GetServerVersion__
mov ecx, eax
call fcn.00401e00
add esp, 4
xor eax, eax
jmp 0x40513f
cmp ecx, 0xe2
jne 0x4050fe
mov esi, dword [esp + 0x40]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
lea esi, [esp + 0x28]
call fcn.00406b20
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x4c]
push edx
push 0x32
push eax
push str.1.0.0.000
push str.version
push str.version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, 1
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x40513d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x95c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x940]
xor ecx, esp
call fcn.004075fb
add esp, 0x954
ret