Function at 0x404630
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41806b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd30
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x33c], 0x4193d4
mov eax, dword [esp + 0xd54]
mov dword [esp + 0xd48], 0
test eax, eax
jne 0x404680
mov eax, 0x800432b1
jmp 0x4049bf
mov edi, dword [esp + 0xd50]
test edi, edi
jne 0x404695
mov eax, 0x800432b1
jmp 0x4049bf
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4046ba
push 1
call fcn.00403a90
mov ecx, dword [esi + 8]
push str._t_CProfileConverter::LoadPreferredProfileList___started_
call fcn.004037f0
mov ecx, dword [esi + 8]
push 1
call fcn.00403a90
push 0x104
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.00409255
mov ecx, dword [str.PreferredProfile.lst]
add esp, 0xc
lea edx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40472a
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x404720
push str._tThe_preferred_profile_list_file_was_not_found_
call fcn.004037f0
mov ecx, dword [esi + 8]
push 1
call fcn.00403a90
mov ecx, dword [esi + 8]
push str._t_CProfileConverter::LoadPreferredProfileList___completed_
call fcn.004037f0
mov ecx, dword [esi + 8]
push 1
call fcn.00403a90
mov eax, 0x8004329e
jmp 0x4049bf
mov edx, dword [str.Count]
mov eax, dword [str.WLAN_PREFERRED_PROFILE_LIST]
lea ecx, [esp + 0x38]
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
jle 0x40496c
mov ebp, dword [esp + 0xd58]
push edi
mov dword [ebp], edi
call fcn.00412fea
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
jne 0x40477a
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4047c8
push str._tSystem_is_out_of_memory_while_allocating_memory_for_conversion_indicators_
jmp 0x4047bb
lea ebx, [edi*4]
push ebx
call fcn.00412fea
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x40479f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4047c8
push str._tSystem_is_out_of_memory_while_allocating_memory_for_profile_type_in_preferred_profile_list_
jmp 0x4047bb
push ebx
call fcn.00412fea
add esp, 4
mov dword [ebp + 4], eax
test eax, eax
jne 0x4047d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4047c8
push str._tSystem_is_out_of_memory_allocating_memory_for_preferred_profile_name_list_
call fcn.004037f0
mov ecx, dword [esi + 8]
call fcn.004039d0
mov eax, 0x80043298
jmp 0x4049bf
xor ebx, ebx
test edi, edi
mov dword [esp + 0x14], ebx
jle 0x40496c
jmp 0x4047e6
mov ebx, dword [esp + 0x14]
mov ecx, dword [str.Profile]
lea eax, [ebx + 1]
push eax
push ecx
lea edx, [esp + 0x28]
push str._s_d
push edx
mov dword [esp + 0x2c], eax
call fcn.00409203
add esp, 0x10
lea eax, [esp + 0x38]
lea ecx, [esp + 0x13c]
lea edx, [esp + 0x20]
push eax
mov eax, dword [str.WLAN_PREFERRED_PROFILE_LIST]
push 0x200
push ecx
push 0x423130
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 2
lea ecx, [esp + 0x140]
push 0x423130
push ecx
lea ecx, [esp + 0x348]
call sym.iconvrtr.exe_public:_char_const____thiscall_CEncrypter::DecryptString_char_const___char_const___int_
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x13c]
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4048cb
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00412fea
mov ecx, dword [ebp + 4]
add esp, 4
shl ebx, 2
mov dword [ecx + ebx], eax
mov edx, dword [ebp + 4]
cmp dword [edx + ebx], 0
jne 0x4048d8
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4048d8
push str._tSystem_is_out_of_memory_allocating_memory_for_preferred_profile_name_
call fcn.004037f0
mov ecx, dword [esi + 8]
call fcn.004039d0
jmp 0x4048d8
mov eax, dword [ebp + 4]
shl ebx, 2
mov dword [eax + ebx], 0
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + ebx]
test edx, edx
je 0x40491b
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov byte [ecx + edx], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + ebx], 0
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 8]
test eax, eax
je 0x404952
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x540]
mov edx, dword [ecx + ebx]
push edx
push str._tLoaded_preferred_profile_name_for__s
push eax
call fcn.00409203
add esp, 0xc
lea ecx, [esp + 0x540]
push ecx
mov ecx, dword [esi + 8]
call fcn.004037f0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4047e2
mov esi, dword [esp + 0x10]
mov edi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x4049ba
push edi
lea edx, [esp + 0x544]
push str._tNumber_of_preferred_profiles_found_in_list:__d
push edx
call fcn.00409203
mov ecx, dword [esi + 8]
add esp, 0xc
lea eax, [esp + 0x540]
push eax
call fcn.004037f0
mov ecx, dword [esi + 8]
push 1
call fcn.00403a90
mov ecx, dword [esi + 8]
push str._t_CProfileConverter::LoadPreferredProfileList___completed_
call fcn.004037f0
mov ecx, dword [esi + 8]
push 1
call fcn.00403a90
mov eax, 0x43297
mov ecx, dword [esp + 0xd40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd3c
ret 0xc