Function at 0x40a332
Capabilities:
Delete file
Move file

Disassembly:
push 0xe8
mov eax, 0x510635
call fcn.0049e056
mov eax, dword [ebp + 0x48]
mov ebx, ecx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xbc], eax
xor esi, esi
cmp byte [ebp + 0x44], 1
mov dword [ebp - 4], 1
jne 0x40a36d
push 0xffffffffffffffff
push esi
push ebx
lea ecx, [ebp + 8]
call fcn.004039ea
mov eax, dword [ebp + 0xc]
push 8
pop edi
cmp dword [ebp + 0x20], edi
jae 0x40a37b
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0xf4]
call fcn.00401685
mov eax, dword [ebp - 0xf0]
cmp dword [ebp - 0xdc], edi
jae 0x40a39b
lea eax, [ebp - 0xf0]
push eax
push esi
call dword [sym.imp.USER32.dll_FindWindowW]
push esi
lea ecx, [ebp - 0xf4]
push 1
cmp eax, esi
je 0x40a3da
call fcn.0040184d
mov ebx, 0x4c8
push esi
push 1
lea ecx, [ebp + 8]
call fcn.0040184d
push esi
push 1
lea ecx, [ebp + 0x28]
call fcn.0040184d
mov eax, ebx
call fcn.0049e0d9
ret 0x48
call fcn.0040184d
sub esp, 0x1c
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0xb4], esp
push eax
call fcn.00403757
mov ecx, ebx
call fcn.0040a677
lea eax, [ebp - 0xac]
push eax
call fcn.0040118a
mov eax, dword [ebp + 0x24]
mov byte [ebp - 4], 2
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], esi
cmp dword [ebp + 0x20], edi
jae 0x40a41e
lea eax, [ebp + 0xc]
push eax
lea ebx, [ebp - 0xac]
call fcn.004012b6
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x20], edi
jae 0x40a435
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0xb0]
call fcn.0040ab3b
push 0x53858c
push 0x538040
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 3
call fcn.0040ab7c
push 0x538590
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00409dbb
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x14], edi
jae 0x40a47e
lea eax, [ebp - 0x28]
push dword [ebp + 0x4c]
lea edi, [ebp - 0xac]
push dword [ebp - 0xbc]
push eax
push dword [ebp - 0xb0]
call fcn.004014fd
test eax, eax
jne 0x40a4f7
mov eax, edi
call fcn.004013d8
xor edi, edi
push esi
inc edi
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040184d
mov ecx, dword [ebp - 0xb0]
add ecx, 0xfffffff0
call fcn.0040a04b
push esi
push edi
lea ecx, [ebp - 0x48]
call fcn.004017de
push esi
push edi
lea ecx, [ebp - 0x64]
call fcn.0040184d
push esi
push edi
lea ecx, [ebp - 0x88]
call fcn.0040184d
push esi
push edi
lea ecx, [ebp - 0xa4]
call fcn.0040184d
mov ebx, 0x80004005
jmp 0x40a3ba
push 6
pop ecx
push esi
xor eax, eax
push esi
push dword [ebp - 0xa8]
mov dword [ebp - 0xd8], esi
lea edi, [ebp - 0xd4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xd8]
push eax
mov ebx, 0x80004005
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x40a5f7
mov edi, dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [ebp - 0xd4], 0x1404
jne 0x40a575
cmp dword [ebp + 0x40], 8
mov eax, dword [ebp + 0x2c]
jae 0x40a54a
lea eax, [ebp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x40], 8
mov ecx, dword [ebp + 0x2c]
jae 0x40a55d
lea ecx, [ebp + 0x2c]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40a569
lea eax, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
xor ebx, ebx
jmp 0x40a5bd
cmp dword [ebp - 0xd4], 0x1405
jne 0x40a59a
push str.CDLManager::DownloadFileInner_GetMessage_WM_DOWNLOADFAILED
push 3
call fcn.00409c47
push eax
call fcn.00474128
mov ebx, 0x80004005
jmp 0x40a5ba
cmp dword [ebp - 0xd4], 0x10
jne 0x40a5c0
push str.CDLManager::DownloadFileInner_GetMessage_WM_CLOSE
push 3
call fcn.00409c47
push eax
call fcn.00474128
mov ebx, 0x4c7
add esp, 0xc
push esi
call edi
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push dword [ebp - 0xa8]
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x40a532
lea eax, [ebp - 0xac]
call fcn.004013d8
cmp ebx, 0x4c7
je 0x40a629
sub esp, 0x1c
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0xb4], esp
push eax
call fcn.00403757
mov ecx, dword [ebp - 0xb8]
call fcn.0040a6c8
xor edi, edi
push esi
inc edi
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040184d
mov ecx, dword [ebp - 0xb0]
add ecx, 0xfffffff0
call fcn.0040a04b
push esi
push edi
lea ecx, [ebp - 0x48]
call fcn.004017de
push esi
push edi
lea ecx, [ebp - 0x64]
call fcn.0040184d
push esi
push edi
lea ecx, [ebp - 0x88]
call fcn.0040184d
push esi
push edi
lea ecx, [ebp - 0xa4]
call fcn.0040184d
jmp 0x40a3ba