Function at 0x42d7d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x437626
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x564
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, dword [ebp + 0xf4]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [ebp + 0xf4]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x11c]
push 0
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
mov ecx, dword [ebp + 0xf4]
lea ebx, [ebp + 0x130]
push 4
push ebx
mov edx, dword [ecx]
call dword [edx + 0x3c]
cmp dword [ebx], 0
jbe 0x42e041
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x344]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, str.OZDevices_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x344]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov edi, edx
mov edx, ecx
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]
mov ecx, 0x41
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x44228c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov edi, edx
mov edx, ecx
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]
mov ecx, 0x41
lea edi, [esp + 0x138]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x44228c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x134]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
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]
mov ecx, 0x41
lea edi, [esp + 0x23c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x23c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [ebx]
shl ecx, 3
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp + 0x100], eax
test eax, eax
jne 0x42d978
mov edx, dword [ebp + 0x8c]
push eax
push edx
push str.Not_enough_memory_to_load.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x42e05b
mov eax, dword [ebp + 0x130]
lea esi, [ebp + 0x130]
xor ebx, ebx
test eax, eax
jbe 0x42dc3b
mov ecx, dword [ebp + 0xf4]
lea edx, [esp + 0x1c]
push 4
push edx
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov eax, dword [esp + 0x1c]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 0x100]
add esp, 4
mov dword [ecx + ebx*8], eax
mov edx, dword [ebp + 0x100]
mov edi, dword [edx + ebx*8]
test edi, edi
je 0x42dc91
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0xf4]
push edx
mov edx, dword [ebp + 0x100]
mov eax, dword [ecx]
mov edx, dword [edx + ebx*8]
push edx
call dword [eax + 0x3c]
mov ecx, dword [ebp + 0x100]
xor eax, eax
mov dword [ecx + ebx*8 + 4], eax
mov edx, dword [ebp + 0x100]
mov edx, dword [edx + ebx*8]
cmp byte [edx], 0x25
jne 0x42dc26
lea edi, [edx + 9]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x46c]
sub edi, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
mov dword [esp + 0x14], esi
mov esi, edi
mov edi, dword [esp + 0x14]
push 8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push str._SYSDIR_
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x474]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.MSVCRT.dll__strnicmp]
push edx
not ecx
dec ecx
mov esi, ecx
call edi
add esp, 0xc
test eax, eax
jne 0x42da8b
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 1
add esi, ecx
jmp 0x42db33
mov ecx, dword [ebp + 0x100]
push 8
push str._WINDIR_
mov edx, dword [ecx + ebx*8]
push edx
call edi
add esp, 0xc
test eax, eax
jne 0x42dac0
lea edi, [esp + 0x134]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 2
add esi, ecx
jmp 0x42db33
mov eax, dword [ebp + 0x100]
push 8
push str._TMPDIR_
mov ecx, dword [eax + ebx*8]
push ecx
call edi
add esp, 0xc
test eax, eax
jne 0x42daf5
lea edi, [esp + 0x23c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 3
add esi, ecx
jmp 0x42db33
mov edx, dword [ebp + 0x100]
push 8
push str._DEVDIR_
mov eax, dword [edx + ebx*8]
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x42db2a
lea edi, [esp + 0x344]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], 4
add esi, ecx
jmp 0x42db33
mov ecx, dword [ebp + 0xd8]
add esi, dword [ecx - 8]
mov edx, dword [ebp + 0x100]
mov dword [esp + 0x14], esi
mov eax, dword [edx + ebx*8]
push eax
call sub.MFC42.DLL_operatordelete
inc esi
push esi
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 0x100]
add esp, 8
mov dword [ecx + ebx*8], eax
mov edx, dword [ebp + 0x100]
cmp dword [edx + ebx*8], 0
jne 0x42db81
mov eax, dword [ebp + 0x8c]
push 0
push eax
push str.Not_enough_memory_to_load.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp + 0x130], ebx
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x42db90
lea edi, [esp + 0x2c]
jmp 0x42dbbe
cmp eax, 2
jne 0x42db9e
lea edi, [esp + 0x134]
jmp 0x42dbbe
cmp eax, 3
jne 0x42dbac
lea edi, [esp + 0x23c]
jmp 0x42dbbe
cmp eax, 4
lea edi, [esp + 0x344]
je 0x42dbbe
mov edi, dword [ebp + 0xd8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [ebp + 0x100]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [edx + ebx*8]
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 + 0x46c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [ebp + 0x100]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [edx + ebx*8]
mov edx, ecx
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
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x100]
mov ecx, dword [eax + ebx*8]
mov byte [ecx + edx], 0
mov eax, dword [ebp + 0x130]
lea esi, [ebp + 0x130]
inc ebx
cmp ebx, eax
jb 0x42d98e
mov ecx, dword [ebp + 0xf4]
lea esi, [ebp + 0x134]
push 4
push esi
mov edx, dword [ecx]
mov dword [esp + 0x2c], esi
call dword [edx + 0x3c]
mov eax, dword [esi]
test eax, eax
jbe 0x42e041
lea eax, [eax + eax*4]
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp + 0x104], eax
test eax, eax
jne 0x42dc9f
mov ecx, dword [ebp + 0x8c]
push eax
push ecx
push str.Not_enough_memory_to_load.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x42e05b
mov eax, dword [ebp + 0x8c]
push 0
push eax
jmp 0x42df2e
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x14], ebx
jbe 0x42e041
mov ecx, dword [ebp + 0xf4]
lea eax, [esp + 0x10]
push 4
push eax
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov eax, dword [esp + 0x10]
mov edi, dword [ebp + 0x104]
mov ecx, dword [ebp + 0xf4]
push 4
lea eax, [eax + eax*4]
mov edx, dword [ecx]
lea eax, [edi + eax*4]
push eax
call dword [edx + 0x3c]
mov ecx, dword [ebp + 0xf4]
lea eax, [esp + 0x1c]
push 4
push eax
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov ecx, dword [esp + 0x1c]
inc ecx
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [ecx + ecx*4]
mov ecx, dword [ebp + 0x104]
mov dword [ecx + edx*4 + 4], eax
mov eax, dword [esp + 0x10]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x104]
mov edi, dword [eax + edx*4 + 4]
test edi, edi
je 0x42df25
mov ecx, dword [esp + 0x1c]
xor eax, eax
inc ecx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
mov edi, dword [ebp + 0x104]
mov ecx, dword [ebp + 0xf4]
push eax
mov eax, dword [esp + 0x14]
mov edx, dword [ecx]
lea eax, [eax + eax*4]
mov eax, dword [edi + eax*4 + 4]
push eax
call dword [edx + 0x3c]
mov eax, dword [esp + 0x10]
mov edi, dword [ebp + 0x104]
mov ecx, dword [ebp + 0xf4]
push 1
lea eax, [eax + eax*4]
mov edx, dword [ecx]
lea eax, [edi + eax*4 + 0xc]
push eax
call dword [edx + 0x3c]
mov eax, dword [esp + 0x10]
mov edi, dword [ebp + 0x104]
mov ecx, dword [ebp + 0xf4]
push 1
lea eax, [eax + eax*4]
mov edx, dword [ecx]
lea eax, [edi + eax*4 + 0xd]
push eax
call dword [edx + 0x3c]
mov ecx, dword [ebp + 0xf4]
lea eax, [esp + 0x20]
push 1
push eax
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x104]
lea ecx, [eax + eax*4]
mov al, byte [esp + 0x20]
mov byte [edx + ecx*4 + 0xe], al
mov eax, dword [esp + 0x20]
test al, al
jbe 0x42df07
and eax, 0xff
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x104]
add esp, 4
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 0x10], eax
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x104]
lea ecx, [eax + eax*4]
mov edi, dword [edx + ecx*4 + 0x10]
test edi, edi
je 0x42df44
mov cl, byte [esp + 0x20]
xor bl, bl
test cl, cl
mov byte [esp + 0x18], bl
jbe 0x42de54
mov esi, dword [ebp + 0x104]
mov edi, dword [esp + 0x18]
mov ecx, dword [ebp + 0xf4]
lea eax, [eax + eax*4]
and edi, 0xff
push 1
mov eax, dword [esi + eax*4 + 0x10]
mov edx, dword [ecx]
add eax, edi
push eax
call dword [edx + 0x3c]
mov al, byte [esp + 0x20]
inc bl
cmp bl, al
mov eax, dword [esp + 0x10]
mov byte [esp + 0x18], bl
jb 0x42de17
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebp + 0x104]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp + 0x100]
lea edx, [ecx + edx*8]
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x42debe
mov edx, dword [edx]
push edx
call sub.MFC42.DLL_AfxLoadLibrary
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x104]
lea ecx, [ecx + ecx*4]
mov ecx, dword [edx + ecx*4]
mov edx, dword [ebp + 0x100]
mov dword [edx + ecx*8 + 4], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x104]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp + 0x100]
mov ecx, dword [ecx + edx*8 + 4]
test ecx, ecx
je 0x42df64
mov edx, dword [eax + 4]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x104]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x104]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 + 8]
test edx, edx
je 0x42dfd8
mov eax, dword [esi]
inc ebx
cmp ebx, eax
mov dword [esp + 0x14], ebx
jb 0x42dcaf
jmp 0x42e041
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x104]
lea ecx, [eax + eax*4]
mov dword [edx + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x10]
jmp 0x42de58
mov edx, dword [ebp + 0x8c]
push 0
push edx
push str.Not_enough_memory_to_load.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esi], ebx
xor eax, eax
jmp 0x42e05b
mov eax, dword [ebp + 0x8c]
push 0
push eax
push str.Not_enough_memory_to_load.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
inc ebx
xor eax, eax
mov dword [esi], ebx
jmp 0x42e05b
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x104]
mov dword [esp + 0x57c], 0
lea ecx, [eax + eax*4]
mov eax, dword [edx + ecx*4]
mov ecx, dword [ebp + 0x100]
mov edx, dword [ecx + eax*8]
lea eax, [esp + 0x14]
push edx
push str.Could_not_load__s.
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp + 0x8c]
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
inc ebx
lea ecx, [esp + 0x14]
mov dword [esi], ebx
mov dword [esp + 0x57c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x42e05b
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x104]
mov dword [esp + 0x57c], 1
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 + 4]
lea eax, [esp + 0x18]
push edx
push str.Could_not_load_DLL_function__s.
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [ebp + 0x8c]
mov edx, dword [esp + 0x24]
add esp, 0xc
push 0
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
inc ebx
lea ecx, [esp + 0x18]
mov dword [esi], ebx
mov dword [esp + 0x57c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x42e05b
mov ebp, dword [ebp + 0xf4]
mov ecx, dword [esp + 0x28]
push 0
push ecx
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x30]
mov eax, 1
mov ecx, dword [esp + 0x574]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x570
ret