Function at 0x413f30
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42211b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x888
mov eax, dword [0x42c17c]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x88c], eax
xor eax, eax
mov word [esp + 0x258], bx
mov ecx, 0x82
lea edi, [esp + 0x25a]
rep stosd dword es:[edi], eax
mov word [esp + 0x678], bx
mov ecx, 0x82
lea edi, [esp + 0x67a]
rep stosd dword es:[edi], eax
mov word [esp + 0x468], bx
mov ecx, 0x82
lea edi, [esp + 0x46a]
rep stosd dword es:[edi], eax
mov word [esp + 0x48], bx
mov ecx, 0x82
lea edi, [esp + 0x4a]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x258]
push eax
push 0x105
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], str...xarCommonCtrl
mov dword [esp + 0x28], str..._binXLUE.dll
mov dword [esp + 0x2c], str..._binXLLuaRuntime.dll
mov dword [esp + 0x30], str..._binXLFSIO.dll
mov dword [esp + 0x34], str..._binXLGraphic.dll
mov dword [esp + 0x38], str..._binzlib1.dll
mov dword [esp + 0x3c], str..._binlibpng13.dll
mov dword [esp + 0x40], str..._binlibexpat.dll
mov dword [esp + 0x44], str..._binmsvcp71.dll
mov dword [esp + 0x48], str..._binmsvcr71.dll
mov dword [esp + 0x4c], str..._bin_atl71.dll
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
je 0x414374
lea ecx, [esp + 0x258]
push str.Thunder_NetworkThunder_
push ecx
call fcn.004172c6
lea edx, [esp + 0x260]
push edx
lea eax, [esp + 0x54]
push eax
call fcn.004172f0
lea ecx, [esp + 0x58]
push ecx
call fcn.0040e3e0
add esp, 0x10
lea edx, [esp + 0x25c]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00401e30
call fcn.00411230
add esp, 4
lea eax, [esp + 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4140c6
push str.CopyUinstallProgramToTempPath
call fcn.00406b70
add esp, 4
test eax, eax
jne 0x4140bf
push 1
push str.Create_Uninstall_dir_false_
push ebx
push str.CopyUinstallProgramToTempPath
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.0040b500
xor eax, eax
jmp 0x414378
push 0x105
lea ecx, [esp + 0x67c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x414374
lea edx, [esp + 0x678]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004172c6
add esp, 8
push ebx
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x680]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [esp + 0x48]
push eax
call fcn.0041630e
mov ecx, dword [ebp + 0xc]
add esp, 4
cmp eax, ecx
jae 0x41413f
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x48]
push ecx
push edx
call fcn.004172f0
add esp, 8
mov dword [esp + 0x10], 1
xor esi, esi
mov dword [esp + 0x14], esi
jmp 0x414150
lea eax, [esp + 0x258]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.004172f0
mov edi, dword [esp + esi*4 + 0x24]
add esp, 8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.004172c6
lea eax, [esp + 0x680]
push eax
lea ecx, [esp + 0x474]
push ecx
call fcn.004172f0
add esp, 0x10
push edi
lea edx, [esp + 0x46c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x468]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4141ce
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x46c]
push edx
call fcn.00413ce0
add esp, 8
jmp 0x414362
mov eax, dword [0x42c054]
mov dword [esp + 0x18], eax
push str.CopyUinstallProgramToTempPath
mov dword [esp + 0x8a0], ebx
call fcn.00406b70
add esp, 4
test eax, eax
jne 0x41425c
lea ecx, [esp + 0x48]
push ecx
push str._dest
lea edx, [esp + 0x470]
push edx
push str.Copy_file_src
push ebx
push str.CopyUinstallProgramToTempPath
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.0040dcf0
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.0040dcf0
push 1
mov esi, eax
push ebx
mov dword [0x42d048], ebx
mov eax, dword [esi + 0x240]
push ebx
push eax
push 1
mov ecx, esi
mov dword [esi + 0x248], ebx
call fcn.0040af90
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x470]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.CopyUinstallProgramToTempPath
mov ebx, eax
call fcn.00406b70
add esp, 4
test eax, eax
jne 0x4142e7
push ebx
push 0x427c88
push edi
push str.Copy_file_:
xor edi, edi
push edi
push str.CopyUinstallProgramToTempPath
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.0040dcf0
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.00403320
push 1
mov esi, eax
push edi
mov dword [0x42d048], edi
mov eax, dword [esi + 0x240]
push edi
push eax
push 1
mov ecx, esi
mov dword [esi + 0x248], edi
call fcn.0040af90
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x41432d
push str.CopyUinstallProgramToTempPath
call fcn.00406b70
add esp, 4
test eax, eax
jne 0x41432d
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_code
push ebx
push str.CopyUinstallProgramToTempPath
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.0040dbd0
mov ecx, eax
call fcn.0040b500
mov eax, dword [esp + 0x18]
mov edx, dword [0x42c058]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov dword [esp + 0x89c], 0xffffffff
je 0x414360
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x414360
push esi
call fcn.00415965
add esp, 4
xor ebx, ebx
mov esi, dword [esp + 0x14]
inc esi
cmp esi, 0xb
mov dword [esp + 0x14], esi
jl 0x414150
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x894]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x88c]
call fcn.0041575b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret