Function at 0x543800
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x718
push ebx
push ebp
push esi
lea eax, [esp + 0x220]
push edi
mov ebx, 1
mov dword [esp + 0x14], ecx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], ebx
call fcn.0053534c
mov edi, str.UFD_MPusbhub.cfg
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x224]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x734]
mov ecx, ebp
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x54391e
mov esi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x24]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push str.HubName_d
push eax
call fcn.0054c45b
add esp, 0xc
lea ecx, [esp + 0x224]
lea edx, [esp + 0x24]
push ecx
push 0x5de854
push edx
push str.TEST
call ebx
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x24]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push str.PortIndex_d
push eax
call fcn.0054c45b
add esp, 0xc
lea ecx, [esp + 0x528]
push esi
push 0x5b91e4
push ecx
call fcn.0054c45b
add esp, 0xc
lea edx, [esp + 0x224]
lea eax, [esp + 0x528]
lea ecx, [esp + 0x24]
push edx
push eax
push ecx
push str.TEST
call ebx
inc esi
lea edx, [esi - 1]
cmp edx, 0x10
jl 0x543877
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x718
ret 0xc
mov eax, dword [esp + 0x72c]
mov ecx, dword [esp + 0x14]
add ecx, 8
lea ebp, [eax + 0x229]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x730]
mov ecx, 0x80
test eax, eax
je 0x543b1c
xor eax, eax
lea edi, [esp + 0x24]
push ebx
lea edx, [esp + 0x28]
push str.HubName_d
push edx
rep stosd dword es:[edi], eax
call fcn.0054c45b
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x334]
add esp, 0xc
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x32c]
push 0x200
push ecx
lea edx, [esp + 0x30]
push 0x5de854
push edx
push str.TEST
call esi
lea edi, [esp + 0x328]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x5439f8
mov al, byte [esp + edx + 0x328]
cmp al, 0x41
jl 0x5439d6
cmp al, 0x5a
jg 0x5439d6
add al, 0x20
mov byte [esp + edx + 0x328], al
jmp 0x5439e2
cmp al, 0x2e
jne 0x5439e2
mov byte [esp + edx + 0x328], 0x3f
lea edi, [esp + 0x328]
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x5439bc
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x7b7c]
test ecx, ecx
jne 0x543a5f
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [ebx - 1]
push ecx
push str.szHUBPath_d
push edx
call fcn.0054c45b
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x334]
add esp, 0xc
rep stosd dword es:[edi], eax
lea eax, [esp + 0x224]
lea ecx, [esp + 0x328]
push eax
push 0x200
push ecx
lea edx, [esp + 0x30]
push 0x5de854
push edx
push str.TEST
call esi
lea edi, [esp + 0x328]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.PortIndex_d
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x80
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.0054c45b
mov edx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [edx + 0x7b7c]
test eax, eax
jne 0x543ac7
lea eax, [ebx - 1]
lea ecx, [esp + 0x24]
push eax
push str.PortIndex_d
push ecx
call fcn.0054c45b
add esp, 0xc
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x528]
lea edx, [esp + 0x224]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x52c]
push 0x200
push eax
lea ecx, [esp + 0x30]
push 0x5de854
push ecx
push str.TEST
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x528]
push edx
call fcn.0054c538
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx], eax
jmp 0x543baa
xor eax, eax
lea edi, [esp + 0x24]
push ebx
lea edx, [esp + 0x28]
push str.HubName_d
push edx
rep stosd dword es:[edi], eax
call fcn.0054c45b
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
lea eax, [esp + 0x224]
lea ecx, [esp + 0x24]
push eax
push ebp
push ecx
push str.TEST
call esi
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x24]
push ebx
lea edx, [esp + 0x28]
push str.PortIndex_d
rep stosd dword es:[edi], eax
push edx
call fcn.0054c45b
mov eax, dword [ebp - 0x229]
add esp, 0xc
lea ecx, [esp + 0x528]
push eax
push 0x5b91e4
push ecx
call fcn.0054c45b
add esp, 0xc
lea edx, [esp + 0x224]
lea eax, [esp + 0x528]
lea ecx, [esp + 0x24]
push edx
push eax
push ecx
push str.TEST
call esi
mov edx, dword [esp + 0x10]
inc ebx
add edx, 0x42c
add ebp, 0x42c
mov dword [esp + 0x10], edx
lea edx, [ebx - 1]
cmp edx, 0x10
jl 0x54393a
mov eax, dword [esp + 0x730]
test eax, eax
je 0x543d8e
mov eax, dword [esp + 0x20]
xor esi, esi
mov dword [esp + 0x10], eax
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x24]
lea ebp, [esi + 1]
rep stosd dword es:[edi], eax
push ebp
lea ecx, [esp + 0x28]
push str.HubName_d
push ecx
call fcn.0054c45b
add esp, 0xc
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x328]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x224]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x32c]
push 0x200
push eax
lea ecx, [esp + 0x30]
push 0x5de854
push ecx
push str.TEST
call ebx
lea edi, [esp + 0x328]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x543c96
mov al, byte [esp + edx + 0x328]
cmp al, 0x41
jl 0x543c74
cmp al, 0x5a
jg 0x543c74
add al, 0x20
mov byte [esp + edx + 0x328], al
jmp 0x543c80
cmp al, 0x2e
jne 0x543c80
mov byte [esp + edx + 0x328], 0x3f
lea edi, [esp + 0x328]
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x543c5a
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x7b7c]
test eax, eax
jne 0x543cfa
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x24]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push str.szHUBPath_d
push eax
call fcn.0054c45b
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x334]
add esp, 0xc
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x224]
lea edx, [esp + 0x328]
push ecx
push 0x200
push edx
lea eax, [esp + 0x30]
push 0x5de854
push eax
push str.TEST
call ebx
lea edi, [esp + 0x328]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x5de854
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x543d4d
test cl, cl
je 0x543d49
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x543d4d
add eax, 2
add esi, 2
test cl, cl
jne 0x543d29
xor eax, eax
jmp 0x543d52
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x543d5e
mov dword [esp + 0x18], 1
mov esi, ebp
add edx, 0x42c
cmp esi, 0x10
mov dword [esp + 0x10], edx
jl 0x543be4
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x543d83
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], 0x10
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x718
ret 0xc