Function at 0x475fb7
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4990da
call fcn.00497cb0
sub esp, 0x9d4
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.00483344
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
cmp dword [esi + 0x1c], 0x10
jb 0x475ff0
mov esi, dword [esi + 8]
jmp 0x475ff3
add esi, 8
push dword [ebp + 0xc]
lea eax, [ebp - 0x1e0]
push esi
mov esi, dword [sym.imp.MSVCR71.dll_sprintf]
push 0x4a7d00
push str._s_s_d
push eax
call esi
add esp, 0x14
mov dword [ebp + 0xc], 1
mov edi, 0x4a773c
push dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
push str.IPAccess
push str._s_d
push eax
call esi
add esp, 0x10
cmp dword [ebx + 0x40], 0x10
jb 0x476040
mov eax, dword [ebx + 0x2c]
jmp 0x476043
lea eax, [ebx + 0x2c]
push eax
push 0x800
lea eax, [ebp - 0x9e0]
push eax
push 0x4a4630
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x1e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x9e0], 0
je 0x4760f4
movsx eax, byte [ebp - 0x9e0]
push eax
call dword [sym.imp.MSVCR71.dll_toupper]
lea eax, [ebp - 0x9e0]
push eax
call sub.MSVCR71.dll_strlen
cmp eax, 2
pop ecx
pop ecx
jbe 0x4760ec
cmp byte [ebp - 0x9e0], 0x41
je 0x4760a6
cmp byte [ebp - 0x9e0], 0x44
jne 0x4760ec
cmp byte [ebp - 0x9df], 0x7c
jne 0x4760ec
mov eax, dword [ebp - 0x40]
push 0x4a7ce8
lea ecx, [ebp - 0x40]
call dword [eax + 8]
cmp byte [ebp - 0x9e0], 0x44
jne 0x4760d0
mov eax, dword [ebp - 0x40]
push edi
lea ecx, [ebp - 0x40]
call dword [eax + 8]
lea eax, [ebp - 0x9de]
push eax
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call dword [eax + 0x14]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402f39
inc dword [ebp + 0xc]
jmp 0x47601f
mov eax, dword [ebp + 8]
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.0041ae55
add esp, 0xc
push eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.00483384
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 3
push eax
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call dword [eax + 0xc]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.004835c3
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x18]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403044
lea ecx, [ebp - 0x1c]
call fcn.00402f23
xor edi, edi
inc edi
cmp eax, edi
jne 0x476183
mov eax, dword [ebp - 0x40]
push str.A...
lea ecx, [ebp - 0x40]
call dword [eax + 8]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402f39
lea ecx, [ebp - 0x1c]
mov dword [ebp + 0xc], edi
call fcn.00402f23
cmp eax, edi
jb 0x4761f4
mov edi, dword [ebp - 0x18]
add edi, 8
push dword [ebp + 0xc]
lea eax, [ebp - 0x9e0]
push str.IPAccess
push str._s_d
push eax
call esi
add esp, 0x10
cmp dword [ebx + 0x40], 0x10
jb 0x4761bc
mov ecx, dword [ebx + 0x2c]
jmp 0x4761bf
lea ecx, [ebx + 0x2c]
cmp dword [edi + 0x14], 0x10
jb 0x4761c9
mov eax, dword [edi]
jmp 0x4761cb
mov eax, edi
push ecx
push eax
lea eax, [ebp - 0x9e0]
push eax
lea eax, [ebp - 0x1e0]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
inc dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
add edi, 0x24
call fcn.00402f23
cmp dword [ebp + 0xc], eax
jbe 0x476198
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004030d1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004835c3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8