Function at 0x404f00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497a6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
mov eax, dword [0x4bc410]
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 0x40523a
push str.config_menu.ini
lea eax, [ebp - 0x5c]
push 0x4bc618
push eax
mov byte [ebp - 4], 1
call fcn.00401050
add esp, 0xc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x80
push ebx
push 0x4a0f3c
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 0x405228
neg eax
sbb eax, eax
mov dword [ebp - 0x70], eax
jmp 0x404fd0
mov edi, dword [ebp - 0x5c]
lea ebx, [ebx]
mov eax, dword [ebp - 0x70]
xor ecx, ecx
cmp eax, ecx
je 0x4051bf
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 0x404fd0
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 0x404fd0
cmp dword [ebx + 0xc], 4
jne 0x404fd0
lea eax, [ebx + 0x64]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x405040
sub ecx, esi
mov dword [ebp - 0x8c], ecx
je 0x404fd0
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 0x405060
mov dx, word [0x4a0f38]
mov word [edi], dx
mov cl, byte [0x4a0f3a]
mov byte [edi + 2], cl
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405080
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 0x405091
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 0x4050b0
mov dx, word [0x4a0f34]
mov word [edi], dx
mov al, byte [0x4a0f36]
push 0x4a0f30
lea ecx, [ebp - 0x54]
mov byte [edi + 2], al
mov edx, dword [ebx + 0x174]
push ecx
push edx
call fcn.0043f1f0
lea eax, [ebp - 0x54]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4050e7
mov ebx, dword [ebp - 0x58]
mov edi, ebx
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4050f6
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 0x405111
mov ax, word [0x4a0f2c]
mov word [edi], ax
mov cl, byte [0x4a0f2e]
mov byte [edi + 2], cl
mov eax, dword [0x4bd13c]
test eax, eax
je 0x404fc7
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push 0x4a0f30
lea edx, [ebp - 0x54]
push edx
push ecx
call fcn.0043f1f0
mov ebx, dword [ebp - 0x58]
mov edi, ebx
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405155
mov dx, word [0x4a0f28]
lea eax, [ebp - 0x54]
mov word [edi], dx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405170
mov edi, ebx
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405180
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 0x4051a0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4051a0
mov ax, word [0x4a0f2c]
mov word [edi], ax
mov cl, byte [0x4a0f2e]
mov byte [edi + 2], cl
jmp 0x404fc7
mov eax, dword [ebp - 0x64]
mov edx, dword [0x4bd13c]
shr edi, 0xa
shr eax, 0xa
cmp edx, ecx
je 0x4051e8
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 0x4051fb
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 0x405200
mov edi, dword [ebp - 0x58]
sub eax, edx
dec edi
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405210
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.00496ace
mov esp, ebp
pop ebp
ret 4