Function at 0x40d670
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44643b
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0x638], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x465d44]
xor eax, esp
push eax
lea eax, [esp + 0x650]
mov dword fs:[0], eax
push 0x208
lea eax, [esp + 0x38]
push 0
push eax
mov esi, ecx
call fcn.004310d0
mov ebp, 8
add esp, 0xc
cmp dword [esi + 0x128], ebp
jb 0x40d6d6
mov eax, dword [esi + 0x114]
jmp 0x40d6dc
lea eax, [esi + 0x114]
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.atl71.dll
push eax
lea ecx, [esp + 0x3c]
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea edx, [esp + 0x34]
push edx
call ebx
push 0x208
lea eax, [esp + 0x38]
push 0
push eax
call fcn.004310d0
add esp, 0xc
cmp dword [esi + 0x128], ebp
jb 0x40d720
mov eax, dword [esi + 0x114]
jmp 0x40d726
lea eax, [esi + 0x114]
push str.msvcr71.dll
push eax
lea ecx, [esp + 0x3c]
push ecx
call edi
lea edx, [esp + 0x34]
push edx
call ebx
push 0x208
lea eax, [esp + 0x38]
push 0
push eax
call fcn.004310d0
add esp, 0xc
cmp dword [esi + 0x128], ebp
jb 0x40d75e
mov eax, dword [esi + 0x114]
jmp 0x40d764
lea eax, [esi + 0x114]
push str.msvcp71.dll
push eax
lea ecx, [esp + 0x3c]
push ecx
call edi
lea edx, [esp + 0x34]
push edx
call ebx
push 0x208
lea eax, [esp + 0x38]
push 0
push eax
call fcn.004310d0
add esp, 0xc
cmp dword [esi + 0x128], ebp
jb 0x40d79c
mov esi, dword [esi + 0x114]
jmp 0x40d7a2
add esi, 0x114
push str.XLBugHandler.dll
push esi
lea ecx, [esp + 0x3c]
push ecx
call edi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x1c], 0
call fcn.0041ec20
add esp, 8
cmp dword [esp + 0x14], 0
je 0x40d854
lea ecx, [esp + 0x34]
push ecx
call ebx
mov esi, eax
test esi, esi
je 0x40d854
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x246]
push eax
mov word [esp + 0x248], dx
call fcn.004310d0
add esp, 0xc
lea ecx, [esp + 0x23c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.ThunderInstallDump_
lea edx, [esp + 0x240]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44fa8c
push esi
call edi
lea ecx, [esp + 0x23c]
push ecx
call eax
push 0x44fa74
push esi
call edi
mov ebx, eax
test ebx, ebx
jne 0x40d85e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x40d900
push 0x44fa58
push esi
call edi
mov edi, eax
xor eax, eax
cmp edi, eax
je 0x40d84d
xor edx, edx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], eax
mov word [esp + 0x1c], dx
push 0x208
push eax
mov dword [esp + 0x660], eax
lea eax, [esp + 0x44c]
push eax
call fcn.004310d0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x448]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x448]
push eax
call fcn.0041f240
mov eax, dword [esp + 0x24]
add esp, 8
cmp dword [esp + 0x30], ebp
jae 0x40d8d6
lea eax, [esp + 0x1c]
mov ecx, dword [0x468560]
mov edx, dword [ecx]
push eax
push 0x44fa34
push str._bug
push edx
push 0x44fa1c
call ebx
push 1
call edi
lea ecx, [esp + 0x18]
call fcn.00404ec7
xor eax, eax
mov ecx, dword [esp + 0x650]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.004310bf
add esp, 0x648
ret