Function at 0x40b560
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42126b
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.00408990
xor ebx, ebx
or ecx, 0xffffffff
mov dword [ebp + 0x3c], ecx
mov byte [ebp + 0x28c4], bl
mov eax, dword [0x42c1f0]
mov dword [esp + 0x258], ebx
cmp eax, ebx
jne 0x40b5b3
lea edx, [esp + 0x30]
mov edi, str.server_w95
jmp 0x40b5d9
cmp dword [0x42c1f8], 3
jne 0x40b5d0
cmp dword [0x42c1fc], 0x33
jne 0x40b5d0
lea edx, [esp + 0x30]
mov edi, str.server_351
jmp 0x40b5d9
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 [0x42c1f0]
xor ecx, ecx
cmp eax, ebx
mov dword [ebp + 0x40], ebx
setne cl
add ebp, 0x360
jmp 0x40b625
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.00414780
add esp, 0xc
lea edx, [esp + 0x50]
lea eax, [esp + 0x24]
lea ecx, [esp + 0x30]
push 0x42a420
push 0x200
push edx
push 0x429d58
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40b8d3
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 0x40b6a7
cmp cl, bl
je 0x40b6a3
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x40b6a7
add eax, 2
add edi, 2
cmp cl, bl
jne 0x40b683
xor eax, eax
jmp 0x40b6ac
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40b6be
mov dword [ebp + 0x40], 2
mov edi, 1
jmp 0x40b6c6
mov edi, 1
mov dword [ebp + 0x40], edi
mov al, byte [esp + 0x50]
lea ecx, [ebp - 0x31c]
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 eax, byte [esi]
push eax
call fcn.00414750
add esp, 4
test eax, eax
je 0x40b708
movsx ecx, byte [esi + 1]
inc esi
push ecx
call fcn.00414750
add esp, 4
test eax, eax
jne 0x40b6f6
mov al, byte [esi]
lea ecx, [ebp - 0x2cf]
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 edx, byte [esi]
push edx
call fcn.00414750
add esp, 4
test eax, eax
je 0x40b748
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.00414750
add esp, 4
test eax, eax
jne 0x40b736
mov al, byte [esi]
lea ecx, [ebp - 0x2dc]
cmp al, bl
je 0x40b763
cmp al, 0x2c
je 0x40b763
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
cmp al, bl
jne 0x40b754
inc esi
mov byte [ecx], bl
movsx ecx, byte [esi]
push ecx
call fcn.00414750
add esp, 4
test eax, eax
je 0x40b788
movsx edx, byte [esi + 1]
inc esi
push edx
call fcn.00414750
add esp, 4
test eax, eax
jne 0x40b776
cmp byte [esi], 0x31
jne 0x40b790
mov dword [ebp + 0x34], edi
movsx eax, byte [esi + 2]
add esi, 2
push eax
call fcn.00414750
add esp, 4
test eax, eax
je 0x40b7b6
movsx ecx, byte [esi + 1]
inc esi
push ecx
call fcn.00414750
add esp, 4
test eax, eax
jne 0x40b7a4
mov al, byte [esi]
lea ecx, [esp + 0x1c]
cmp al, bl
je 0x40b7cf
cmp al, 0x2c
je 0x40b7cf
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
cmp al, bl
jne 0x40b7c0
lea edx, [esp + 0x1c]
mov byte [ecx], bl
push edx
call fcn.00414640
add esp, 4
inc esi
mov dword [ebp + 0x38], eax
movsx eax, byte [esi]
push eax
call fcn.00414750
add esp, 4
test eax, eax
je 0x40b804
movsx ecx, byte [esi + 1]
inc esi
push ecx
call fcn.00414750
add esp, 4
test eax, eax
jne 0x40b7f2
cmp byte [esi], 0x31
jne 0x40b80c
mov dword [ebp + 0x3c], edi
movsx edx, byte [esi + 2]
add esi, 2
push edx
call fcn.00414750
add esp, 4
test eax, eax
je 0x40b832
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.00414750
add esp, 4
test eax, eax
jne 0x40b820
mov al, byte [esi]
lea ecx, [ebp - 0x1cb]
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
inc esi
mov byte [ecx], bl
movsx ecx, byte [esi]
push ecx
call fcn.00414750
add esp, 4
test eax, eax
je 0x40b872
movsx edx, byte [esi + 1]
inc esi
push edx
call fcn.00414750
add esp, 4
test eax, eax
jne 0x40b860
mov al, byte [esi]
lea ecx, [ebp - 0x14b]
cmp al, bl
je 0x40b88d
cmp al, 0x2c
je 0x40b88d
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
cmp al, bl
jne 0x40b87e
mov byte [ecx], bl
mov al, byte [esi]
cmp al, bl
je 0x40b8d3
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.00414750
add esp, 4
test eax, eax
je 0x40b8b9
movsx ecx, byte [esi + 1]
inc esi
push ecx
call fcn.00414750
add esp, 4
test eax, eax
jne 0x40b8a7
mov al, byte [esi]
cmp al, bl
je 0x40b8d3
lea ecx, [ebp - 0x4c]
cmp al, 0x2c
je 0x40b8d1
mov byte [ecx], al
mov al, byte [esi + 1]
inc ecx
inc esi
cmp al, bl
jne 0x40b8c2
mov byte [ecx], bl
mov eax, dword [esp + 0x14]
add ebp, 0x360
dec eax
mov dword [esp + 0x14], eax
jne 0x40b621
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