Function at 0x412a48
Capabilities:
Delete file

Disassembly:
mov eax, 0x498581
call fcn.00497330
sub esp, 0x144
push ebx
push esi
mov esi, ecx
push edi
push 0xffffffffffffffff
mov dword [ebp - 0x28], esi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
test edi, edi
je 0x412adc
xor edx, edx
xor ecx, ecx
call fcn.0040c8b0
xor ebx, ebx
mov dword [ebp - 0x70], 0x8c
mov dword [ebp - 0x6c], 9
mov dword [ebp - 0x68], str.C:BooCodeOffergateMultiSetup_ObfuscatedoglibOGLiboglib_serviceshttp_downloader.cpp
mov dword [ebp - 0x64], str.ReplacementFor_HttpDownloadProcessing
mov dword [ebp - 0x40], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
push str.HttpDownloadProcessing_error:_object_signaled_failure
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], bl
call fcn.00405c0c
push ecx
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
push eax
push edi
call fcn.0040c937
lea ecx, [ebp - 0x40]
call fcn.00403b90
jmp 0x412f4e
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x150]
xor ebx, ebx
push 1
mov eax, dword [esi + eax*4 + 0x98]
mov dword [ebp - 0x18], eax
mov byte [eax + 0x11f], bl
call fcn.00410857
push 2
lea edi, [esi + 0x10]
pop eax
lea esi, [edi + 4]
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x4c], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [edi]
jmp 0x412f34
mov edi, dword [ebp - 0x28]
xor ecx, ecx
mov eax, dword [edi + 0xc]
lock xadd dword [eax], ecx
test ecx, ecx
jne 0x412f43
lea ecx, [edi + 0x10]
call fcn.004126c4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412f28
mov edx, dword [ebp - 0x18]
mov cl, byte [edi + 0xe1]
mov byte [edx + 0x11c], cl
mov ecx, eax
call fcn.00411210
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x130]
xor ecx, ecx
test al, al
setne cl
xchg dword [edx], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00411210
mov ecx, dword [ebp - 0x18]
neg al
push dword [ebp - 0x14]
sbb al, al
inc al
mov byte [ecx + 0x120], al
lea eax, [ebp - 0x150]
push eax
mov dword [ecx + 0x118], 0x413a22
call fcn.004131b5
test al, al
je 0x412f28
mov ecx, dword [ebp - 0x14]
push 2
pop edx
mov eax, dword [ecx + 0x200]
lock or dword [eax], edx
mov edx, dword [edi + 0x34]
test edx, edx
je 0x412bc3
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov byte [ebp - 4], 3
cmp byte [edi + 0xe0], 0
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x1c], ebx
je 0x412be6
mov al, bl
jmp 0x412beb
call fcn.0041831e
mov byte [ebp - 0xe], al
test al, al
je 0x412c1d
lea ecx, [ebp - 0xb8]
call fcn.00418480
push 4
pop ecx
mov byte [ebp - 4], cl
mov ecx, dword [ebp - 0x18]
push eax
lea ecx, [ecx + 0xd8]
call fcn.0040e6c7
lea ecx, [ebp - 0xb8]
call fcn.00403b90
cmp byte [edi + 0xe0], 0
je 0x412c30
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x11e], 1
lea eax, [edi + 0xbc]
push eax
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov dword [edi + ecx*4 + 0xb0], eax
lea eax, [edi + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x14]
mov edx, ebx
add eax, 8
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
add eax, 0x134
mov dword [ebp - 0x20], eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x58]
call fcn.0040e4d8
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
xor eax, eax
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 6
push ecx
lea ecx, [eax + 0x214]
mov dword [eax + 0x20c], ebx
mov dword [eax + 0x210], ebx
call fcn.0040426a
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 3
call fcn.004045a0
cmp byte [ebp - 0xe], 0
je 0x412cf7
cmp dword [ebp - 0x1c], 1
mov ecx, dword [ebp - 0x18]
setne al
mov byte [ecx + 0x11e], al
push dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.00404378
mov ecx, dword [ebp - 0x18]
push 8
pop eax
push 0x412711
mov byte [ebp - 4], al
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x150]
push eax
push ebx
push ebx
lea eax, [ebp - 0x40]
push eax
call fcn.0040d759
lea ecx, [ebp - 0x40]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 3
call fcn.004045a0
cmp byte [ebp - 0xd], 0
mov ecx, dword [ebp - 0x14]
jne 0x412d54
or dword [ecx + 0x20c], 0xffffffff
jmp 0x412d6c
mov eax, dword [ecx + 0x200]
push 0xfffffffffffffffb
pop edx
lock and dword [eax], edx
mov eax, dword [ecx + 0x200]
push 8
pop edx
lock or dword [eax], edx
mov edx, dword [edi + 0x34]
test edx, edx
je 0x412d81
push dword [ebp - 0x20]
mov eax, dword [edx]
push dword [ebp - 0x1c]
push ecx
mov ecx, edx
call dword [eax + 8]
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0xff000000
je 0x412dbb
cmp byte [ebp - 0xd], 0
jne 0x412dbb
mov edx, dword [ebp - 0x24]
mov eax, edx
inc dword [ebp - 0x1c]
add edx, 0x3e8
mov dword [ebp - 0x24], edx
cmp eax, 0x1388
jae 0x412dbb
mov eax, dword [edi + 0xc]
xor ecx, ecx
lock xadd dword [eax], ecx
test ecx, ecx
je 0x412c73
mov ecx, dword [ebp - 0x14]
push 0xfffffffffffffffd
pop edx
mov eax, dword [ecx + 0x200]
lock and dword [eax], edx
cmp byte [ebp - 0xd], 0
je 0x412de4
push ecx
lea eax, [ebp - 0x150]
mov ecx, edi
push eax
call fcn.0041328c
mov ecx, dword [ebp - 0x14]
jmp 0x412df0
mov eax, dword [ecx + 0x200]
push 4
pop edx
lock or dword [eax], edx
mov edx, dword [edi + 0x34]
test edx, edx
je 0x412e09
mov eax, dword [edx]
lea edi, [ebp - 0x150]
push edi
push ecx
mov ecx, edx
call dword [eax + 0xc]
mov edi, dword [ebp - 0x28]
lea eax, [edi + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
mov dword [edi + eax*4 + 0xb0], ebx
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0xff000000
jne 0x412f11
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x150]
call fcn.004108ff
push 8
pop ecx
cmp dword [eax + 0x14], ecx
jb 0x412e4b
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xb8]
mov edi, eax
call fcn.004045a0
test edi, edi
jne 0x412f11
xor edx, edx
xor ecx, ecx
call fcn.0040c8b0
lea eax, [ebp - 0x98]
mov dword [ebp - 0x80], 0xe8
push eax
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], str.C:BooCodeOffergateMultiSetup_ObfuscatedoglibOGLiboglib_serviceshttp_downloader.cpp
mov dword [ebp - 0x74], str.ReplacementFor_HttpDownloadProcessing
call fcn.004108ff
push ecx
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xb8]
call fcn.004156b8
pop ecx
push 0x2e
push str.Failed_to_delete_unfinished_download_for_file
push ecx
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0xa
call fcn.0040f4d8
push eax
lea ecx, [ebp - 0xd0]
call fcn.00403b39
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0xd0]
push ecx
push eax
call fcn.0040c937
lea ecx, [ebp - 0xd0]
call fcn.00403b90
lea ecx, [ebp - 0xb8]
call fcn.00403b90
lea ecx, [ebp - 0x98]
call fcn.004045a0
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 2
pop eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], al
call fcn.004042d6
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x4c]
mov edi, dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x412b1b
lea ecx, [ebp - 0x150]
call fcn.004108d7
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4