Function at 0x41c2e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f896
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.PrepareTask__
call fcn.004010d0
add esp, 4
cmp dword [edi + 0xd568], 0
jne 0x41c359
push 0x2c
call fcn.004867f5
add esp, 4
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41c34a
mov ecx, eax
call fcn.00411100
jmp 0x41c34c
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0xd568], eax
mov ecx, edi
mov dword [edi + 0xd538], 0x80004005
call fcn.0041cf80
mov esi, dword [edi + 0xd568]
test esi, esi
je 0x41c38e
mov ecx, esi
call fcn.00411150
push esi
call fcn.00486409
add esp, 4
mov dword [edi + 0xd568], 0
cmp byte [edi + 0xd534], 0
jne 0x41c541
mov eax, dword [edi + 0xd538]
test eax, eax
jns 0x41c548
cmp eax, 0x80700003
jne 0x41c4f5
lea esi, [edi + 0x8b0]
push 0x4a8d04
push esi
call fcn.00489ce3
mov ebx, eax
add esp, 8
cmp ebx, 0x103
jbe 0x41c3e4
push str.Unexpected_download_URL_string_size_for_error_code___too_long_
call fcn.004010d0
add esp, 4
mov ebx, 0x103
push ebx
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00486548
lea eax, [ebx + ebx]
add esp, 0x10
cmp eax, 0x208
jae 0x41c4f0
xor ecx, ecx
push 6
mov word [ebp + eax - 0x218], cx
lea eax, [ebp - 0x218]
push str.error:
push eax
call fcn.0048b67f
add esp, 0xc
test eax, eax
jne 0x41c4b0
lea eax, [ebp - 0x20c]
push eax
call fcn.0048727b
lea ecx, [edi + 0x8b0]
push 0x4a8d04
lea ecx, [ecx + ebx*2]
push ecx
mov esi, eax
call fcn.00489ce3
add esp, 0xc
dec esi
je 0x41c4a1
push 0x2000
call fcn.0048614e
mov esi, eax
lea eax, [ebp - 0x218]
push eax
push str.PrepareTask:_s
push 0xfff
push 0x1000
push esi
call fcn.00486606
push 0x4a1b98
push 0x822
lea ebx, [edi + 0x8b0]
push ebx
call fcn.004146d0
add esp, 0x24
push esi
push 2
jmp 0x41c526
add eax, 0x458
add eax, ebx
lea eax, [edi + eax*2]
push eax
push 1
jmp 0x41c526
push 0x2000
call fcn.0048614e
lea ebx, [edi + 0x8b0]
push ebx
push str.PrepareTask:_s
push 0xfff
mov esi, eax
push 0x1000
push esi
call fcn.00486606
push 0x4a1b98
push 0x822
push ebx
call fcn.004146d0
add esp, 0x24
push esi
push 2
jmp 0x41c526
call fcn.0048697a
push 0x2000
call fcn.0048614e
push str.RetrieveDownloadUrl_Fail
push 0xfff
mov esi, eax
push 0x1000
push esi
call fcn.00486606
push str.PrepareTask____RetrieveDownloadUrl_Fail
call fcn.004010d0
add esp, 0x18
push esi
push 3
push 0x505
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
push str.Failed_to_get_download_URL_
call fcn.004010d0
add esp, 4
xor eax, eax
jmp 0x41c7cb
push 0x2c
mov dword [ebp - 0x21c], 0
call fcn.004867f5
add esp, 4
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x41c576
mov ecx, eax
call fcn.00411100
jmp 0x41c578
xor eax, eax
mov dword [edi + 0xd590], eax
lea eax, [ebp - 0x21c]
push eax
push 0
push edi
push 0x4206d0
push 0
push 0
mov dword [ebp - 4], 0xffffffff
call fcn.00487a23
mov ecx, dword [edi + 0xd590]
add esp, 0x18
mov dword [ecx], eax
cmp byte [edi + 0xea0c], 0
jne 0x41c66b
push 0x2c
mov dword [ebp - 0x21c], 0
call fcn.004867f5
add esp, 4
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x41c5e3
mov ecx, eax
call fcn.00411100
jmp 0x41c5e5
xor eax, eax
mov dword [edi + 0xd570], eax
mov esi, eax
lea eax, [ebp - 0x21c]
push eax
push 0
push edi
push 0x4206f0
push 0
push 0
mov dword [ebp - 4], 0xffffffff
call fcn.00487a23
mov dword [esi], eax
mov eax, dword [edi + 0xd570]
add esp, 0x18
cmp dword [eax], 0
jne 0x41c66b
push str.CLDownloaderApp::PrepareTask
push str.__S___beginthreadex_failed
call fcn.00413860
mov esi, dword [edi + 0xd570]
add esp, 8
test esi, esi
je 0x41c652
mov ecx, esi
call fcn.00411150
push esi
call fcn.00486409
add esp, 4
mov dword [edi + 0xd570], 0
push 0
push 4
push 0x505
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
jmp 0x41c7cb
push 0x2c
mov dword [ebp - 0x21c], 0
call fcn.004867f5
add esp, 4
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x41c699
mov ecx, eax
call fcn.00411100
jmp 0x41c69b
xor eax, eax
mov dword [edi + 0xd56c], eax
mov esi, eax
lea eax, [ebp - 0x21c]
push eax
push 0
push edi
push 0x420710
push 0
push 0
mov dword [ebp - 4], 0xffffffff
call fcn.00487a23
mov dword [esi], eax
mov eax, dword [edi + 0xd56c]
add esp, 0x18
cmp dword [eax], 0
jne 0x41c711
push str.CLDownloaderApp::PrepareTask
push str.__S___beginthreadex_failed
call fcn.00413860
mov esi, dword [edi + 0xd56c]
add esp, 8
test esi, esi
je 0x41c708
mov ecx, esi
call fcn.00411150
push esi
call fcn.00486409
add esp, 4
mov dword [edi + 0xd56c], 0
push 0
push 5
jmp 0x41c656
cmp byte [edi + 0xea0c], 0
je 0x41c7ae
cmp dword [edi + 0xd574], 0
mov dword [edi + 0xd53c], 0x80004005
jne 0x41c764
push 0x2c
call fcn.004867f5
add esp, 4
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x41c755
mov ecx, eax
call fcn.00411100
jmp 0x41c757
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0xd574], eax
mov ecx, edi
call fcn.0041d4c0
mov esi, dword [edi + 0xd574]
test esi, esi
je 0x41c78f
mov ecx, esi
call fcn.00411150
push esi
call fcn.00486409
add esp, 4
mov dword [edi + 0xd574], 0
cmp byte [edi + 0xd534], 0
jne 0x41c541
cmp dword [edi + 0xd53c], 0
jge 0x41c7ae
push 0
push 6
jmp 0x41c656
push 0
push 0
push 0x505
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
cmp byte [edi + 0xd534], al
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret