Function at 0x415d60
Capabilities:
Create thread

Disassembly:
sub esp, 0x230
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [esp + 0xc]
push eax
mov esi, ecx
push ebx
push esi
push 0x414530
push ebx
push ebx
mov byte [esi + 0xa598], 0
mov byte [esi + 0xa599], 0
mov dword [esi + 0xa594], 0x80004005
mov dword [esp + 0x24], ebx
call fcn.00478e14
mov edi, eax
add esp, 0x18
cmp edi, ebx
mov dword [esp + 0x10], edi
jne 0x415de3
push str.CLDownloaderApp::PrepareTask
push str.__S___beginthreadex_failed
call fcn.0040de80
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00477bf8
add esp, 0x230
ret
cmp byte [esi + 0xa598], bl
push ebp
jne 0x415e43
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
mov edi, edi
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
call edi
test eax, eax
je 0x415e34
lea edx, [esp + 0x18]
push edx
call ebp
lea eax, [esp + 0x18]
push eax
call ebx
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
call edi
test eax, eax
jne 0x415e13
cmp byte [esi + 0xa598], 0
je 0x415e00
mov edi, dword [esp + 0x14]
xor ebx, ebx
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.ThreadGetDownloadUrl_Complete_
call fcn.00401030
mov eax, dword [esi + 0xa594]
add esp, 4
cmp eax, ebx
jge 0x415f8f
cmp byte [esi + 0xa599], 0
jne 0x415f7e
cmp eax, 0x80700003
jne 0x415f44
lea ebp, [esi + 0x8a8]
push 0x497bb0
push ebp
call fcn.00479b6a
mov edi, eax
push edi
lea edx, [esp + 0x40]
push ebp
push edx
call fcn.00478ec2
push 6
lea eax, [esp + 0x4c]
push str.error:
push eax
mov word [esp + edi*2 + 0x54], bx
call fcn.0047c128
add esp, 0x20
test eax, eax
jne 0x415f7e
lea ecx, [esp + 0x40]
push ecx
call fcn.00478ca0
lea edx, [esi + edi*2 + 0x8a8]
push 0x497bb0
push edx
mov ebp, eax
call fcn.00479b6a
mov ecx, ebp
add esp, 0xc
sub ecx, 1
je 0x415f1f
push 0x2000
call fcn.00477742
mov edi, eax
lea eax, [esp + 0x38]
push eax
push str.PrepareTask:_s
push 0x1000
push edi
call fcn.00477bdc
mov ecx, dword [esi + 0xc]
add esp, 0x14
push edi
push ebx
push 0x476
push ecx
jmp 0x415f78
add eax, edi
lea edx, [esi + eax*2 + 0x8a8]
push edx
mov ecx, esi
call fcn.0040f6f0
push str.Failed_to_get_download_URL_
call fcn.00401030
add esp, 4
xor eax, eax
jmp 0x416004
push 0x2000
call fcn.00477742
push str.ThreadGetDownloadUrl_Fail
mov edi, eax
push 0x1000
push edi
call fcn.00477bdc
push str.PrepareTask____ThreadGetDownloadUrl_Fail
call fcn.00401030
mov eax, dword [esi + 0xc]
add esp, 0x14
push edi
push ebx
push 0x475
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push str.Failed_to_get_download_URL_
call fcn.00401030
add esp, 4
xor eax, eax
jmp 0x416004
lea ecx, [esp + 0x10]
push ecx
push ebx
push esi
push 0x414550
push ebx
push ebx
mov dword [esp + 0x28], ebx
call fcn.00478e14
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xa5b8], eax
je 0x415fd7
lea edx, [esp + 0x10]
push edx
push ebx
push esi
push 0x4155c0
push ebx
push ebx
mov dword [esp + 0x28], ebx
call fcn.00478e14
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xa5b0], eax
jne 0x415fed
push str.CLDownloaderApp::PrepareTask
push str.__S___beginthreadex_failed
call fcn.0040de80
add esp, 8
xor eax, eax
jmp 0x416004
mov ecx, esi
call fcn.0040ea20
test eax, eax
je 0x415fe9
mov ecx, esi
call fcn.0040e910
mov eax, 1
mov ecx, dword [esp + 0x23c]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00477bf8
add esp, 0x230
ret