Function at 0x40b520
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41e51b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x10], ebp
call fcn.00408950
xor ebx, ebx
or ecx, 0xffffffff
mov dword [ebp + 0x3c], ecx
mov byte [ebp + 0x28c4], bl
mov eax, dword [0x429118]
mov dword [esp + 0x258], ebx
cmp eax, ebx
jne 0x40b573
lea edx, [esp + 0x30]
mov edi, str.server_w95
jmp 0x40b599
cmp dword [0x429120], 3
jne 0x40b590
cmp dword [0x429124], 0x33
jne 0x40b590
lea edx, [esp + 0x30]
mov edi, str.server_351
jmp 0x40b599
lea edx, [esp + 0x30]
mov edi, str.server_nt
xor eax, eax
mov dword [esp + 0x14], 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xa20
lea edi, [ebp + 0x44]
mov dword [ebp + 0x40], ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x429118]
xor ecx, ecx
cmp eax, ebx
mov dword [ebp + 0x40], ebx
setne cl
add ebp, 0x360
jmp 0x40b5e5
mov ecx, dword [esp + 0x18]
mov eax, ecx
inc ecx
mov dword [esp + 0x18], ecx
push eax
lea ecx, [esp + 0x28]
push str.server_d
push ecx
call fcn.00413640
add esp, 0xc
lea edx, [esp + 0x50]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x30]
push 0x427348
push 0x200
push edx
push 0x426c80
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40b893
mov eax, dword [esp + 0x10]
lea esi, [esp + 0x50]
mov edi, str.server0
mov ecx, dword [eax + 0x40]
inc ecx
mov dword [eax + 0x40], ecx
lea eax, [esp + 0x24]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x40b667
cmp cl, bl
je 0x40b663
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x40b667
add eax, 2
add edi, 2
cmp cl, bl
jne 0x40b643
xor eax, eax
jmp 0x40b66c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40b67e
mov dword [ebp + 0x40], 2
mov edi, 1
jmp 0x40b686
mov edi, 1
mov dword [ebp + 0x40], edi
mov al, byte [esp + 0x50]
lea ecx, [ebp - 0x31c]
cmp al, bl
je 0x40b6a3
cmp al, 0x2c
je 0x40b6a3
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
cmp al, bl
jne 0x40b694
inc esi
mov byte [ecx], bl
movsx eax, byte [esi]
push eax
call fcn.00413610
add esp, 4
test eax, eax
je 0x40b6c8
movsx ecx, byte [esi + 1]
inc esi
push ecx
call fcn.00413610
add esp, 4
test eax, eax
jne 0x40b6b6
mov al, byte [esi]
lea ecx, [ebp - 0x2cf]
cmp al, bl
je 0x40b6e3
cmp al, 0x2c
je 0x40b6e3
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
cmp al, bl
jne 0x40b6d4
inc esi
mov byte [ecx], bl
movsx edx, byte [esi]
push edx
call fcn.00413610
add esp, 4
test eax, eax
je 0x40b708
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.00413610
add esp, 4
test eax, eax
jne 0x40b6f6
mov al, byte [esi]
lea ecx, [ebp - 0x2dc]
cmp al, bl
je 0x40b723
cmp al, 0x2c
je 0x40b723
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
cmp al, bl
jne 0x40b714
inc esi
mov byte [ecx], bl
movsx ecx, byte [esi]
push ecx
call fcn.00413610
add esp, 4
test eax, eax
je 0x40b748
movsx edx, byte [esi + 1]
inc esi
push edx
call fcn.00413610
add esp, 4
test eax, eax
jne 0x40b736
cmp byte [esi], 0x31
jne 0x40b750
mov dword [ebp + 0x34], edi
movsx eax, byte [esi + 2]
add esi, 2
push eax
call fcn.00413610
add esp, 4
test eax, eax
je 0x40b776
movsx ecx, byte [esi + 1]
inc esi
push ecx
call fcn.00413610
add esp, 4
test eax, eax
jne 0x40b764
mov al, byte [esi]
lea ecx, [esp + 0x1c]
cmp al, bl
je 0x40b78f
cmp al, 0x2c
je 0x40b78f
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
cmp al, bl
jne 0x40b780
lea edx, [esp + 0x1c]
mov byte [ecx], bl
push edx
call fcn.00413500
add esp, 4
inc esi
mov dword [ebp + 0x38], eax
movsx eax, byte [esi]
push eax
call fcn.00413610
add esp, 4
test eax, eax
je 0x40b7c4
movsx ecx, byte [esi + 1]
inc esi
push ecx
call fcn.00413610
add esp, 4
test eax, eax
jne 0x40b7b2
cmp byte [esi], 0x31
jne 0x40b7cc
mov dword [ebp + 0x3c], edi
movsx edx, byte [esi + 2]
add esi, 2
push edx
call fcn.00413610
add esp, 4
test eax, eax
je 0x40b7f2
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.00413610
add esp, 4
test eax, eax
jne 0x40b7e0
mov al, byte [esi]
lea ecx, [ebp - 0x1cb]
cmp al, bl
je 0x40b80d
cmp al, 0x2c
je 0x40b80d
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
cmp al, bl
jne 0x40b7fe
inc esi
mov byte [ecx], bl
movsx ecx, byte [esi]
push ecx
call fcn.00413610
add esp, 4
test eax, eax
je 0x40b832
movsx edx, byte [esi + 1]
inc esi
push edx
call fcn.00413610
add esp, 4
test eax, eax
jne 0x40b820
mov al, byte [esi]
lea ecx, [ebp - 0x14b]
cmp al, bl
je 0x40b84d
cmp al, 0x2c
je 0x40b84d
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
cmp al, bl
jne 0x40b83e
mov byte [ecx], bl
mov al, byte [esi]
cmp al, bl
je 0x40b893
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.00413610
add esp, 4
test eax, eax
je 0x40b879
movsx ecx, byte [esi + 1]
inc esi
push ecx
call fcn.00413610
add esp, 4
test eax, eax
jne 0x40b867
mov al, byte [esi]
cmp al, bl
je 0x40b893
lea ecx, [ebp - 0x4c]
cmp al, 0x2c
je 0x40b891
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
cmp al, bl
jne 0x40b882
mov byte [ecx], bl
mov eax, dword [esp + 0x14]
add ebp, 0x360
dec eax
mov dword [esp + 0x14], eax
jne 0x40b5e1
mov ecx, dword [esp + 0x250]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24c
ret