Function at 0x405590
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2a2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
mov eax, dword [0x4cbba0]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov esi, ecx
push edi
xor eax, ebp
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x68], edi
call sub.MFC71.DLL_CSingleLock::CSingleLock
push 0xbb8
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], edi
call sub.MFC71.DLL_CSingleLock::Lock
test eax, eax
je 0x4058ca
push str.config_menu.ini
lea eax, [ebp - 0x5c]
push 0x4cbdc0
push eax
mov byte [ebp - 4], 1
call fcn.004010a0
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x80
push ebx
push str.PIPI
push str.abouttitle
push str.LIBMENU
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esi + 0x14]
test eax, eax
jle 0x4058b8
neg eax
sbb eax, eax
mov dword [ebp - 0x70], eax
jmp 0x405660
mov edi, dword [ebp - 0x5c]
lea ebx, [ebx]
mov eax, dword [ebp - 0x70]
xor ecx, ecx
cmp eax, ecx
je 0x40584f
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x6c], ecx
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, dword [ebp - 0x7c]
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x70]
push eax
add ecx, 8
call sub.MFC71.DLL_CMapPtrToPtr::GetNextAssoc
mov ebx, dword [ebp - 0x6c]
test ebx, ebx
je 0x405660
mov ecx, dword [ebx + 0x170]
mov edx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
lea eax, [ebx + 0x170]
add edx, ecx
mov ecx, dword [ebx + 0x174]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x60]
inc esi
add edi, ecx
cmp eax, 2
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x5c], edi
jge 0x405660
cmp dword [ebx + 0xc], 4
jne 0x405660
lea eax, [ebx + 0x64]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4056d0
sub ecx, esi
mov dword [ebp - 0x8c], ecx
je 0x405660
mov edx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x58]
inc edx
mov dword [ebp - 0x60], edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4056f0
mov dx, word [0x4ad184]
mov word [edi], dx
mov cl, byte [0x4ad186]
mov byte [edi + 2], cl
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405710
mov edx, dword [ebp - 0x58]
mov edi, edx
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405721
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405740
mov dx, word [0x4ad180]
mov word [edi], dx
mov al, byte [0x4ad182]
push 0x4ad17c
lea ecx, [ebp - 0x54]
mov byte [edi + 2], al
mov edx, dword [ebx + 0x174]
push ecx
push edx
call fcn.0044b450
lea eax, [ebp - 0x54]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405777
mov ebx, dword [ebp - 0x58]
mov edi, ebx
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405786
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4057a1
mov ax, word [0x4ad178]
mov word [edi], ax
mov cl, byte [0x4ad17a]
mov byte [edi + 2], cl
mov eax, dword [0x4cc95c]
test eax, eax
je 0x405657
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push 0x4ad17c
lea edx, [ebp - 0x54]
push edx
push ecx
call fcn.0044b450
mov ebx, dword [ebp - 0x58]
mov edi, ebx
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4057e5
mov dx, word [0x4ad174]
lea eax, [ebp - 0x54]
mov word [edi], dx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405800
mov edi, ebx
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405810
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
dec edi
jmp 0x405830
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405830
mov ax, word [0x4ad178]
mov word [edi], ax
mov cl, byte [0x4ad17a]
mov byte [edi + 2], cl
jmp 0x405657
mov eax, dword [ebp - 0x64]
mov edx, dword [0x4cc95c]
shr edi, 0xa
shr eax, 0xa
cmp edx, ecx
je 0x405878
push eax
push edi
lea edx, [ebp - 0x54]
push str._r_nTotal:__d___d_KBps
push edx
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x10
jmp 0x40588b
push edi
lea eax, [ebp - 0x54]
push str._r_nTotal:__d_KBps
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x54]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405890
mov edi, dword [ebp - 0x58]
sub eax, edx
dec edi
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4058a0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
call sub.MFC71.DLL_CSingleLock::Unlock
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0xffffffff
call sub.MFC71.DLL_CSingleLock::Unlock
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a17d1
mov esp, ebp
pop ebp
ret 4