Function at 0x478f70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e2a83
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x527064]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x1b4], edi
push str.McDefaultProdReg.cpp
push str.GetEmailField
push 0x42c
push 3
lea ecx, [ebp - 0x1b0]
mov dword [ebp - 0x1b8], edi
mov dword [ebp - 0x1bc], 0
call fcn.00431610
mov dword [ebp - 4], 0
mov edx, str.Entering___GetEmailField
mov ecx, dword [eax]
call fcn.004333c0
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x1b0]
call fcn.004327d0
mov eax, dword [ebp - 0x1b0]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add eax, 0x14
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.CMcIniReader.virtual_0], vtable.CMcIniReader.0
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x19c], 0
call fcn.0047cda0
mov dword [ebp - 0x1a0], eax
xor eax, eax
mov dword [ebp - 0x184], 7
mov dword [ebp - 0x188], 0
mov word [ebp - 0x198], ax
mov byte [ebp - 0x180], al
mov dword [ebp - 0x168], 7
mov dword [ebp - 0x16c], eax
mov word [ebp - 0x17c], ax
mov word [ebp - 0x164], ax
push 0x4f7ee2
lea ecx, [ebp - 0x148]
mov dword [ebp - 4], 2
call fcn.0043a1c0
xor eax, eax
mov dword [ebp - 0x11c], 7
mov dword [ebp - 0x120], 0
mov word [ebp - 0x130], ax
mov byte [ebp - 4], 5
mov dword [ebp - 0x1b0], eax
lea eax, [ebp - 0x1b0]
push eax
push 0
push 0
push 0x50daa4
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov ebx, eax
test ebx, ebx
jns 0x47917a
push str.McDefaultProdReg.cpp
push str.GetEmailField
push 0x436
push 4
lea ecx, [ebp - 0x1a8]
call fcn.00431610
mov byte [ebp - 4], 6
mov edx, 0x5095c0
mov ecx, dword [eax]
call fcn.00433720
push ebx
mov ecx, eax
call fcn.0043a770
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1a8]
call fcn.004327d0
mov eax, dword [ebp - 0x1a8]
add eax, 0x14
push eax
call esi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov eax, dword [ebp - 0x11c]
cmp eax, 8
jb 0x479158
push 2
inc eax
push eax
push dword [ebp - 0x130]
call fcn.00402ff0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x11c], 7
mov dword [ebp - 0x120], 0
mov word [ebp - 0x130], ax
jmp 0x479578
mov edx, dword [ebp - 0x1b0]
mov dword [ebp - 0x120], 0
test edx, edx
je 0x4791c2
cmp word [edx], 0
jne 0x479198
xor ecx, ecx
jmp 0x4791af
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4791a0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x130]
call fcn.00408f30
mov edx, dword [ebp - 0x1b0]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x120], 0
lea ecx, [ebp - 0x130]
push 0x14
push str.MCVi2UserDetail.ini
jne 0x4791e6
call fcn.00408f30
jmp 0x4791eb
call fcn.00409380
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00496490
mov ebx, dword [ebp - 0x11c]
lea edx, [ebp - 0x130]
add esp, 0xc
mov dword [ebp - 0x1b4], 0
cmp ebx, 8
cmovae edx, dword [ebp - 0x130]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x479224
sub edx, ecx
lea ecx, [ebp - 0x130]
sar edx, 1
cmp ebx, 8
cmovae ecx, dword [ebp - 0x130]
lea eax, [edx + 1]
push eax
push ecx
push 0x104
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x1b4]
push eax
call fcn.004a8cf6
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4792c8
push str.McDefaultProdReg.cpp
push str.GetEmailField
push 0x444
push 4
lea ecx, [ebp - 0x1a8]
call fcn.00431610
mov byte [ebp - 4], 8
mov edx, str.GetEmailField
mov ecx, dword [eax]
call fcn.00433720
mov edx, str.Error_while_converting_wide_string_to_multibyte_string:
mov ecx, eax
call fcn.00433720
push ebx
mov ecx, eax
call fcn.0043a770
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x1a8]
call fcn.004327d0
mov eax, dword [ebp - 0x1a8]
add eax, 0x14
push eax
call esi
mov byte [ebp - 4], 5
push 0x509614
lea eax, [ebp - 0x118]
mov dword [ebp - 0x1ac], 0
push eax
lea eax, [ebp - 0x1ac]
push eax
call fcn.004a4225
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4793c5
cmp dword [ebp - 0x1ac], eax
je 0x4793c5
push str.McDefaultProdReg.cpp
push str.GetEmailField
push 0x44b
push 3
lea ecx, [ebp - 0x1a8]
call fcn.00431610
mov byte [ebp - 4], 0xa
mov edx, str.User_detail_INI_file_is_exist
mov ecx, dword [eax]
call fcn.004333c0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x1a8]
call fcn.004327d0
mov eax, dword [ebp - 0x1a8]
add eax, 0x14
push eax
call esi
push ebx
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x118]
mov ecx, esp
push eax
call fcn.0043a1c0
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0x1a4]
call fcn.0044d1e0
cmp byte [ebp - 0x1cc], bl
je 0x479414
lea eax, [ebp - 0x148]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1a8], esp
push str.Email
call fcn.0043a1c0
sub esp, 0x18
mov byte [ebp - 4], 0xc
mov ecx, esp
push str.USERDETAILS
call fcn.0043a1c0
lea eax, [ebp - 0x1d8]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1a4]
call fcn.0044cfb0
jmp 0x479414
push str.McDefaultProdReg.cpp
push str.GetEmailField
push 0x454
push 3
lea ecx, [ebp - 0x1a8]
call fcn.00431610
mov byte [ebp - 4], 0xd
mov edx, str.User_detail_INI_file_is_not_exist
mov ecx, dword [eax]
call fcn.004333c0
push ebx
mov ecx, eax
call fcn.0043a770
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x1a8]
call fcn.004327d0
mov eax, dword [ebp - 0x1a8]
add eax, 0x14
push eax
call esi
mov eax, dword [ebp - 0x11c]
cmp eax, 8
jb 0x479431
inc eax
push 2
push eax
push dword [ebp - 0x130]
call fcn.00402ff0
add esp, 0xc
mov dword [ebp - 4], 3
jmp 0x47949e
push str.McDefaultProdReg.cpp
push str.GetEmailField
push 0x45d
push 3
lea ecx, [ebp - 0x1ac]
call fcn.00431610
mov byte [ebp - 4], 0x12
mov edx, str.Leaving___GetEmailField
mov ecx, dword [eax]
call fcn.004333c0
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x1ac]
call fcn.004327d0
mov eax, dword [ebp - 0x1ac]
add eax, 0x14
push eax
call esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x148]
cmp dword [ebp - 0x134], 8
mov eax, dword [ebp - 0x138]
cmovae ecx, dword [ebp - 0x148]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x148]
cmovae ecx, dword [ebp - 0x148]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x160]
call fcn.00465340
lea eax, [ebp - 0x160]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov ecx, edi
push eax
mov byte [edi], 0
call fcn.00430780
mov eax, dword [ebp - 0x14c]
cmp eax, 0x10
jb 0x47955d
push 1
inc eax
push eax
push dword [ebp - 0x160]
call fcn.00402ff0
add esp, 0xc
mov dword [ebp - 0x14c], 0xf
mov dword [ebp - 0x150], 0
mov byte [ebp - 0x160], 0
mov eax, dword [ebp - 0x134]
cmp eax, 8
jb 0x479595
push 2
inc eax
push eax
push dword [ebp - 0x148]
call fcn.00402ff0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x134], 7
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 0x138], eax
mov word [ebp - 0x148], ax
call fcn.0046e390
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004908ad
mov esp, ebp
pop ebp
ret