Function at 0x417054
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff14
mov eax, 0x4aee20
push ebx
push esi
push edi
lea edi, [ebp - 0x70]
mov esi, str.Serv_U___d_
call fcn.0049af0c
mov word [edi + 0x10], 8
lea edx, [ebp - 0x20]
push edx
call fcn.004074e8
pop ecx
add dword [edi + 0x1c], 2
mov word [edi + 0x10], 0x14
mov word [edi + 0x10], 0x20
lea ecx, [ebp - 0x40]
push ecx
call fcn.004074e8
pop ecx
lea eax, [ebp - 0xec]
add dword [edi + 0x1c], 2
mov word [edi + 0x10], 0x14
push 0x4ae19c
push 0x50
push eax
lea edx, [esi + 0x28]
push edx
lea ecx, [esi + 0x791]
push ecx
lea eax, [esi + 0x49a]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
lea edx, [esi + 0x28]
push edx
lea ecx, [ebp - 0xec]
push ecx
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
je 0x41711e
lea eax, [esi + 0x2d]
push eax
lea edx, [ebp - 0xec]
push edx
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
je 0x41711e
lea ecx, [esi + 0x31]
push ecx
lea eax, [ebp - 0xec]
push eax
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
je 0x41711e
lea edx, [esi + 0x233]
push edx
lea ecx, [ebp - 0xec]
push ecx
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
jne 0x417127
mov dword [ebp - 0x74], 1
jmp 0x41712c
xor eax, eax
mov dword [ebp - 0x74], eax
mov ebx, 1
push ebx
lea eax, [esi + 0x7a0]
push eax
lea edx, [esi + 0x483]
push edx
lea ecx, [ebp - 0x9c]
push ecx
call fcn.0049d914
add esp, 0x10
lea eax, [ebp - 0xec]
lea edx, [esi + 0xb]
lea ecx, [ebp - 0x9c]
push 0x4ae19c
push 0x50
push eax
push edx
push ecx
lea eax, [esi + 0x49a]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
test eax, eax
je 0x4171bb
mov word [edi + 0x10], 0x2c
lea edx, [ebp - 0xec]
push edx
lea ecx, [ebp - 0x48]
push ecx
call fcn.004a79d0
add esp, 8
inc dword [edi + 0x1c]
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x20]
push edx
call fcn.0040773c
add esp, 8
dec dword [edi + 0x1c]
push 2
lea ecx, [ebp - 0x48]
push ecx
call fcn.004a8304
add esp, 8
inc ebx
jmp 0x417131
mov ebx, 1
push ebx
lea eax, [esi + 0x7a7]
push eax
lea edx, [esi + 0x483]
push edx
lea ecx, [ebp - 0x9c]
push ecx
call fcn.0049d914
add esp, 0x10
lea eax, [ebp - 0xec]
lea edx, [esi + 0xb]
lea ecx, [ebp - 0x9c]
push 0x4ae19c
push 0x50
push eax
push edx
push ecx
lea eax, [esi + 0x49a]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
test eax, eax
je 0x41724a
mov word [edi + 0x10], 0x38
lea edx, [ebp - 0xec]
push edx
lea ecx, [ebp - 0x4c]
push ecx
call fcn.004a79d0
add esp, 8
inc dword [edi + 0x1c]
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x40]
push edx
call fcn.0040773c
add esp, 8
dec dword [edi + 0x1c]
push 2
lea ecx, [ebp - 0x4c]
push ecx
call fcn.004a8304
add esp, 8
inc ebx
jmp 0x4171c0
mov word [edi + 0x10], 0x44
lea eax, [ebp - 0x44]
mov ebx, 1
push eax
call fcn.004a7930
pop ecx
inc dword [edi + 0x1c]
mov word [edi + 0x10], 0x14
mov byte [ebp - 0x75], 0x4e
cmp dword [ebp - 0x74], 0
je 0x417280
lea edx, [ebp - 0x20]
mov dword [ebp - 0x7c], edx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x80], ecx
jmp 0x41728c
lea eax, [ebp - 0x40]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], edx
lea ecx, [ebp - 0x44]
push ecx
mov eax, dword [ebp - 0x7c]
push eax
call fcn.00407a6c
add esp, 8
test eax, eax
je 0x41734b
cmp dword [ebp - 0x74], 0
je 0x4172c1
push esi
push edi
add esi, 0x7ad
lea edi, [ebp - 0xec]
mov eax, edi
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
jmp 0x4172d6
push esi
push edi
add esi, 0x7b0
lea edi, [ebp - 0xec]
mov eax, edi
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + 2]
push ecx
lea eax, [ebp - 0xec]
push eax
call fcn.004986dc
add esp, 8
lea edx, [esi + 0x497]
lea ecx, [esi + 0x483]
lea eax, [ebp - 0x9c]
push ebx
push edx
push ecx
push eax
call fcn.0049d914
add esp, 0x10
lea edx, [ebp - 0xec]
lea ecx, [ebp - 0x9c]
lea eax, [esi + 0x49a]
push 0x4ae19c
push edx
push ecx
push eax
call sub.KERNEL32.dll_WritePrivateProfileStringA
mov dl, byte [ebp - 0xec]
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x75], dl
push ecx
mov eax, dword [ebp - 0x7c]
inc ebx
push eax
call fcn.00407aa0
add esp, 8
test eax, eax
jne 0x4172a4
lea edx, [ebp - 0x44]
push edx
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00407a6c
add esp, 8
test eax, eax
je 0x41740a
cmp dword [ebp - 0x74], 0
je 0x417380
push esi
push edi
add esi, 0x7b0
lea edi, [ebp - 0xec]
mov eax, edi
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
jmp 0x417395
push esi
push edi
add esi, 0x7ad
lea edi, [ebp - 0xec]
mov eax, edi
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + 2]
push ecx
lea eax, [ebp - 0xec]
push eax
call fcn.004986dc
add esp, 8
lea edx, [esi + 0x497]
lea ecx, [esi + 0x483]
lea eax, [ebp - 0x9c]
push ebx
push edx
push ecx
push eax
call fcn.0049d914
add esp, 0x10
lea edx, [ebp - 0xec]
lea ecx, [ebp - 0x9c]
lea eax, [esi + 0x49a]
push 0x4ae19c
push edx
push ecx
push eax
call sub.KERNEL32.dll_WritePrivateProfileStringA
mov dl, byte [ebp - 0xec]
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x75], dl
push ecx
mov eax, dword [ebp - 0x80]
inc ebx
push eax
call fcn.00407aa0
add esp, 8
test eax, eax
jne 0x417363
movsx edx, byte [ebp - 0x75]
cmp edx, 0x44
jne 0x417451
push ebx
lea ecx, [esi + 0x497]
push ecx
lea eax, [esi + 0x483]
push eax
lea edx, [ebp - 0x9c]
push edx
call fcn.0049d914
add esp, 0x10
lea ecx, [esi + 0x7b3]
lea eax, [ebp - 0x9c]
lea edx, [esi + 0x49a]
push 0x4ae19c
push ecx
push eax
push edx
call sub.KERNEL32.dll_WritePrivateProfileStringA
inc ebx
push ebx
lea ecx, [esi + 0x497]
push ecx
lea eax, [esi + 0x483]
push eax
lea edx, [ebp - 0x9c]
push edx
call fcn.0049d914
add esp, 0x10
lea ecx, [ebp - 0x9c]
lea eax, [esi + 0x49a]
push 0x4ae19c
push 0
push ecx
push eax
call sub.KERNEL32.dll_WritePrivateProfileStringA
dec dword [edi + 0x1c]
push 2
lea edx, [ebp - 0x44]
push edx
call fcn.004a8304
add esp, 8
sub dword [edi + 0x1c], 2
push 2
lea ecx, [ebp - 0x40]
push ecx
call fcn.004076cc
add esp, 8
sub dword [edi + 0x1c], 2
push 2
lea eax, [ebp - 0x20]
push eax
call fcn.004076cc
add esp, 8
mov edx, dword [edi]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret