Function at 0x40b060
Capabilities:
Copy file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44623b
mov eax, dword fs:[0]
push eax
sub esp, 0xc54
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0xc50], eax
push ebx
push esi
push edi
mov eax, dword [0x465d44]
xor eax, esp
push eax
lea eax, [esp + 0xc64]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc74]
push 0x208
lea ecx, [esp + 0x34]
push 0
push ecx
mov dword [esp + 0x1c], eax
call fcn.004310d0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add esp, 0xc
push 0x104
lea edx, [esp + 0x34]
push edx
push 0
call esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
lea ecx, [esp + 0x23c]
push 0
push ecx
call fcn.004310d0
add esp, 0xc
lea edx, [esp + 0x238]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
push eax
push 0x44f5d0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.0040376d
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.program_thunder.exe
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x858]
push edx
mov dword [esp + 0xc78], 0
call edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x854]
push ecx
call fcn.0041f240
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 8
push str.Thunder7Uninstall
lea edx, [esp + 0x23c]
push edx
call ebx
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x40b186
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x23c]
push eax
call ebx
lea ecx, [esp + 0x238]
push ecx
call fcn.0041eca0
add esp, 4
push 0x104
lea edx, [esp + 0xa5c]
push edx
push 0
call esi
push 0x44f714
lea eax, [esp + 0x23c]
push eax
lea ecx, [esp + 0x650]
push ecx
call edi
push 0
lea edx, [esp + 0x64c]
push edx
lea eax, [esp + 0xa60]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40b203
cmp dword [esp + 0x2c], 8
jb 0x40b1f9
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00430dfa
add esp, 4
mov eax, 0x80004005
jmp 0x40b4ad
push str.atl71.dll
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0040a6a0
push str.msvcp71.dll
lea ecx, [esp + 0x248]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.0040a6a0
push str.msvcr71.dll
lea eax, [esp + 0x254]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.0040a6a0
push str.atl90.dll
lea edx, [esp + 0x260]
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.0040a6a0
push str.msvcp90.dll
lea ecx, [esp + 0x26c]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.0040a6a0
push str.msvcr90.dll
lea eax, [esp + 0x278]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.0040a6a0
add esp, 0x48
push str.Microsoft.VC90.ATL.manifest
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0040a6a0
push str.Microsoft.VC90.CRT.manifest
lea ecx, [esp + 0x248]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.0040a6a0
push str.libexpat.dll
lea eax, [esp + 0x254]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.0040a6a0
push str.libpng13.dll
lea edx, [esp + 0x260]
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.0040a6a0
push str.minizip.dll
lea ecx, [esp + 0x26c]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.0040a6a0
push str.XLBugHandler.dll
lea eax, [esp + 0x278]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.0040a6a0
add esp, 0x48
push str.XLBugReport.exe
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0040a6a0
push str.XLFSIO.dll
lea ecx, [esp + 0x248]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.0040a6a0
push str.XLGraphic.dll
lea eax, [esp + 0x254]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.0040a6a0
push str.XLGraphicPlus.dll
lea edx, [esp + 0x260]
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.0040a6a0
push str.XLLuaRuntime.dll
lea ecx, [esp + 0x26c]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.0040a6a0
push str.XLUE.dll
lea eax, [esp + 0x278]
push eax
lea ecx, [esp + 0x74]
push ecx
call fcn.0040a6a0
add esp, 0x48
push str.XLUEIPC.dll
lea edx, [esp + 0x23c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0040a6a0
push str.zlib1.dll
lea ecx, [esp + 0x248]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.0040a6a0
push 0x44f66c
lea eax, [esp + 0x254]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.0040a6a0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x46e]
push eax
mov word [esp + 0x470], dx
call fcn.004310d0
mov ecx, dword [esp + 0x40]
add esp, 0x30
push 0x44f664
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x40b437
lea edx, [esp + 0x30]
push edx
push str.__uninstallpath_s_
lea eax, [esp + 0x448]
push eax
jmp 0x40b449
lea ecx, [esp + 0x30]
push ecx
push 0x44f604
lea edx, [esp + 0x448]
push edx
call fcn.00431b0c
add esp, 0xc
push 0
push 0
push 1
push 0x44f5d0
lea eax, [esp + 0x450]
push eax
lea ecx, [esp + 0x65c]
push ecx
call fcn.00421f30
add esp, 0x18
test eax, eax
jge 0x40b497
cmp dword [esp + 0x2c], 8
jb 0x40b1f9
mov edx, dword [esp + 0x18]
push edx
call fcn.00430dfa
add esp, 4
mov eax, 0x80004005
jmp 0x40b4ad
cmp dword [esp + 0x2c], 8
jb 0x40b4ab
mov eax, dword [esp + 0x18]
push eax
call fcn.00430dfa
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xc64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc50]
xor ecx, esp
call fcn.004310bf
add esp, 0xc60
ret