Function at 0x415890
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42bd31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3ec
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea ebp, [ebx + 8]
push 0xc8
push ebp
mov dword [esp + 0x1c], ebx
mov dword [ebx], 0x42e574
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.help
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
mov dword [ebx + 4], edi
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x18]
call fcn.0042a2c0
lea ecx, [esp + 0x10]
mov dword [esp + 0x404], 0
call fcn.0042a2c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x404], 1
call fcn.0042a2c0
push edi
push ebp
lea eax, [esp + 0x20]
push str._s_sctemp_d.tmp
push eax
mov byte [esp + 0x414], 2
call sub.MFC42.DLL_CString::Format
lea esi, [edi + 2]
add esp, 0x10
lea edx, [esp + 0x10]
lea ecx, [esi - 1]
push ecx
push ebp
push str._s_sctemp_d.tmp
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0x1c]
push esi
push ebp
push str._s_sctemp_d.tmp
push eax
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esp + 0x3c]
push ecx
push edx
call ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x17c]
push eax
push ecx
call ebx
mov esi, eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x2bc]
push edx
push eax
call ebx
mov ecx, dword [esp + 0x20]
cmp esi, 0xffffffff
je 0x415a81
cmp ecx, 0xffffffff
je 0x415a38
cmp eax, 0xffffffff
je 0x415a94
cmp ecx, 0xffffffff
je 0x415a38
cmp eax, 0xffffffff
je 0x415a38
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x184]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x180]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x2c4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c0]
lea edx, [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov esi, eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp esi, 1
jne 0x415a38
cmp eax, 0xffffffff
je 0x415af9
lea ecx, [esp + 0x1c]
mov byte [esp + 0x404], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x404], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x404], 0xffffffff
call sub.MFC42.DLL_CString::CString
inc edi
cmp edi, 0x63
jl 0x4158ff
mov eax, dword [esp + 0x14]
jmp 0x415b39
cmp ecx, 0xffffffff
je 0x415a8d
cmp eax, 0xffffffff
je 0x415af9
jmp 0x415a38
cmp eax, 0xffffffff
je 0x415aec
jmp 0x415a38
cmp edi, 0x62
jne 0x415aa6
mov edx, dword [esp + 0x14]
mov dword [edx + 4], 0
jmp 0x415ab0
mov eax, dword [esp + 0x14]
add edi, 2
mov dword [eax + 4], edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x404], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x404], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x404], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
jmp 0x415b39
mov esi, dword [esp + 0x14]
mov dword [esi + 4], 0
jmp 0x415b01
mov esi, dword [esp + 0x14]
inc edi
mov dword [esi + 4], edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x404], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x404], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x404], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x3fc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3f8
ret