Function at 0x401047
Capabilities:
Move file

Disassembly:
mov eax, 0x402142
call fcn.00401f80
sub esp, 0x31c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
and byte [ebp - 0x328], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x327]
and dword [ebp - 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x1c]
mov esi, 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x328]
push esi
push eax
call fcn.004015ea
test eax, eax
je 0x4011c5
lea eax, [ebp - 0x328]
push eax
call sub.MSVCRT.dll_strlen
mov edi, eax
mov dword [esp], str.DownTemp
mov dword [ebp - 0x10], edi
call sub.MSVCRT.dll_strlen
mov ebx, dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [eax + edi + 1]
cmp eax, esi
pop ecx
jae 0x401144
and byte [ebp - 0x224], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x223]
and byte [ebp - 0x120], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x11f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x328]
push str.DownTemp
mov edi, str._s_s
push eax
push edi
lea eax, [ebp - 0x224]
push esi
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x328]
push str.Download
push eax
push edi
lea eax, [ebp - 0x120]
push esi
push eax
call ebx
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 0x1c
push str.Utility.dll
call sub.MSVCRT.dll_strlen
mov edi, eax
mov dword [esp], str.Common_
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x10]
add eax, edi
add ecx, eax
cmp ecx, esi
jae 0x4011c5
and byte [ebp - 0x224], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x223]
push str.Utility.dll
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x328]
push eax
push str._sCommon_s
lea eax, [ebp - 0x224]
push esi
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x4011c5
push str.CreateLogObjects
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4011c5
call eax
mov ebx, dword [ebp - 0x1c]
and dword [ebp - 0x10], 0
cmp dword [ebx + 0xc], 0
je 0x40123a
and byte [ebp - 0x120], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x11f]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x120]
mov ecx, ebx
push eax
call fcn.004015ea
test eax, eax
je 0x40123a
lea eax, [ebp - 0x120]
push str.HelpDll.dll
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x120]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x40123a
push str.QQExceptionFilter
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40123a
push eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, ebx
call fcn.00401631
push 0x14
xor ebx, ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], esi
je 0x401268
push str.factory.dll
mov ecx, eax
call fcn.00401347
mov dword [ebp - 0x14], eax
jmp 0x40126b
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
xor edi, edi
mov eax, dword [eax + 4]
cmp eax, esi
je 0x401289
push 2
call eax
mov edi, eax
pop ecx
cmp edi, esi
je 0x401289
push 1
pop ebx
mov eax, dword [edi]
push 0x3001
push str.MainLogi.dll
push esi
mov ecx, edi
call dword [eax + 8]
mov esi, eax
test esi, esi
je 0x4012ae
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
test eax, eax
jne 0x4012ae
xor ebx, ebx
test ebx, ebx
je 0x4012ca
test esi, esi
je 0x4012ca
mov ecx, dword [ebp - 0x1c]
push 0
call fcn.004014cb
mov eax, dword [esi]
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0x3c]
test edi, edi
je 0x4012dc
test esi, esi
je 0x4012dc
mov eax, dword [edi]
push 0
push esi
mov ecx, edi
call dword [eax + 0xc]
cmp dword [ebp - 0x10], 0
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x4012ed
push dword [ebp - 0x10]
call esi
call fcn.004013d1
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x14], 0
je 0x40130f
mov ecx, dword [ebp - 0x14]
call fcn.004013ab
push dword [ebp - 0x14]
call fcn.00401ee6
pop ecx
cmp dword [ebp - 0x18], 0
je 0x40132e
push str.ReleaseLogObjects
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401329
call eax
push dword [ebp - 0x18]
call esi
mov ecx, dword [ebp - 0x1c]
call fcn.00401659
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4