Function at 0x49df20
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4aadd5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x51c
push ebx
push ebp
push esi
push edi
push 0x49dc70
push 0x49dc20
push 0x80
lea eax, [esp + 0x138]
push 8
push eax
call fcn.004a5baf
xor esi, esi
mov dword [esp + 0x534], esi
call sub.MFC42.DLL_AfxGetThread
cmp eax, esi
je 0x49df7a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
cmp eax, esi
jne 0x49df7e
xor eax, eax
jmp 0x49df81
mov eax, dword [eax + 0x20]
push 8
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
lea ecx, [esp + 0x28]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_2
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x538], 1
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
call sub.MFC42.DLL_CString::Left
push str.MSusbHub.cfg
lea ecx, [esp + 0x20]
mov bl, 2
push eax
push ecx
mov byte [esp + 0x540], bl
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x538], 3
call fcn.004a5776
lea ecx, [esp + 0x1c]
mov byte [esp + 0x534], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x534], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x534], 4
lea edi, [esi + 0x4e6ad0]
lea ecx, [esp + esi + 0x12c]
push edi
call fcn.004a5776
lea ebp, [esi + 0x4e6ad4]
lea ecx, [esp + esi + 0x130]
push ebp
call fcn.004a5776
mov ecx, ebp
call sub.MFC42.DLL_CString::Empty
mov ecx, edi
call sub.MFC42.DLL_CString::Empty
add esi, 8
cmp esi, 0x80
jl 0x49e029
lea ebp, [esp + 0x130]
mov dword [esp + 0x18], 0x10
mov eax, dword [ebp]
xor ebx, ebx
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x49e13a
movsx edi, byte [eax + ecx - 1]
mov eax, dword [0x4e6ac0]
sub edi, 0x31
xor esi, esi
test eax, eax
jle 0x49e13a
mov edx, dword [0x4e6abc]
mov ecx, ebp
mov eax, dword [edx + esi*4]
push eax
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x49e11d
push esi
lea eax, [esp + 0x18]
push str.Hub_d
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
add esp, 0xc
push ecx
push 0
push edx
push str.HubPortCount
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x49e10f
push esi
mov ecx, 0x4e6aa0
call fcn.0049dc10
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.004a57ee
call fcn.0049dcc0
lea eax, [eax + eax*2]
add esp, 4
lea eax, [eax + eax*4]
mov eax, dword [eax*4 + 0x4e6ee8]
add ebx, eax
mov eax, dword [0x4e6ac0]
inc esi
cmp esi, eax
jl 0x49e09e
jmp 0x49e13a
add edi, ebx
lea ecx, [ebp - 4]
push ecx
lea esi, [edi*8 + 0x4e6ad0]
mov ecx, esi
call fcn.004a5776
push ebp
lea ecx, [esi + 4]
call fcn.004a5776
mov eax, dword [esp + 0x18]
add ebp, 8
dec eax
mov dword [esp + 0x18], eax
jne 0x49e077
lea ecx, [esp + 0x14]
mov byte [esp + 0x534], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x534], 0
call sub.MFC42.DLL_CString::CString
push 0x49dc70
push 0x80
lea edx, [esp + 0x134]
push 8
push edx
mov dword [esp + 0x544], 0xffffffff
call fcn.004a5c31
mov ecx, dword [esp + 0x52c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x528
ret