Function at 0x4316a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484219
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4ad014]
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, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x74], edi
call fcn.0040f6c0
mov ecx, eax
test ecx, ecx
jne 0x4316e9
push 0x80004005
call fcn.0041fef0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
call fcn.00465f91
push eax
push str.CDispatcherHandler::DownloadFile
push str._s_IN_time___d_
push 0
push 5
call fcn.00454a40
add esp, 0x14
mov dword [ebp - 0x4c], 0
call fcn.0040f6c0
mov ecx, eax
test ecx, ecx
jne 0x431733
push 0x80004005
call fcn.0041fef0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
or ebx, 0xffffffff
mov byte [ebp - 4], 1
test edi, edi
je 0x4327a1
push 0x497078
mov ecx, esi
call fcn.0044bda0
cmp eax, 0x4b15b0
je 0x4326cf
cmp byte [esi + 8], 0
jne 0x431771
mov edi, 0x4b15b0
jmp 0x4317e9
mov ecx, dword [esi]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
push eax
mov dword [ebp - 0x18], 0x497078
mov dword [ebp - 0x14], 0
call fcn.0044c110
mov ecx, dword [esi]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x4317c3
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4317bc
cmp dword [ebp - 0x14], 1
jne 0x4317bc
call fcn.0044af70
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, 0x4b15b0
jmp 0x4317e5
lea edi, [eax + 0x18]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 0
je 0x4317e5
cmp dword [ebp - 0x14], 1
jne 0x4317e5
call fcn.0044af70
push dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 1
cmp byte [edi + 8], 4
jne 0x4326cf
call fcn.0040f6c0
mov ecx, eax
test ecx, ecx
jne 0x431808
push 0x80004005
call fcn.0041fef0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 4
cmp byte [esi + 8], 0
jne 0x431824
mov edi, 0x4b15b0
jmp 0x43189c
mov ecx, dword [esi]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
push eax
mov dword [ebp - 0x18], 0x497078
mov dword [ebp - 0x14], 0
call fcn.0044c110
mov ecx, dword [esi]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x431876
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x43186f
cmp dword [ebp - 0x14], 1
jne 0x43186f
call fcn.0044af70
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, 0x4b15b0
jmp 0x431898
lea edi, [eax + 0x18]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x18], 0
je 0x431898
cmp dword [ebp - 0x14], 1
jne 0x431898
call fcn.0044af70
push dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 4
mov edx, dword [edi]
test edx, edx
jne 0x4318a6
xor ecx, ecx
jmp 0x4318b9
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4318b0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0042d030
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x40]
call fcn.00457d60
push str.fileName
mov ecx, esi
call fcn.0044bda0
cmp eax, 0x4b15b0
je 0x43268a
cmp byte [esi + 8], 0
jne 0x4318f2
mov edi, 0x4b15b0
jmp 0x43196a
mov ecx, dword [esi]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
push eax
mov dword [ebp - 0x18], str.fileName
mov dword [ebp - 0x14], 0
call fcn.0044c110
mov ecx, dword [esi]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x431944
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x43193d
cmp dword [ebp - 0x14], 1
jne 0x43193d
call fcn.0044af70
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, 0x4b15b0
jmp 0x431966
lea edi, [eax + 0x18]
mov byte [ebp - 4], 8
cmp dword [ebp - 0x18], 0
je 0x431966
cmp dword [ebp - 0x14], 1
jne 0x431966
call fcn.0044af70
push dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 4
cmp byte [edi + 8], 4
jne 0x43268a
call fcn.0040f6c0
mov ecx, eax
test ecx, ecx
jne 0x431989
push 0x80004005
call fcn.0041fef0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 9
cmp byte [esi + 8], 0
jne 0x4319a5
mov edi, 0x4b15b0
jmp 0x431a1d
mov ecx, dword [esi]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
push eax
mov dword [ebp - 0x18], str.fileName
mov dword [ebp - 0x14], 0
call fcn.0044c110
mov ecx, dword [esi]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x4319f7
mov byte [ebp - 4], 0xa
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4319f0
cmp dword [ebp - 0x14], 1
jne 0x4319f0
call fcn.0044af70
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, 0x4b15b0
jmp 0x431a19
lea edi, [eax + 0x18]
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x18], 0
je 0x431a19
cmp dword [ebp - 0x14], 1
jne 0x431a19
call fcn.0044af70
push dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 9
mov edx, dword [edi]
test edx, edx
jne 0x431a27
xor ecx, ecx
jmp 0x431a39
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x431a30
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0042d030
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.00457d60
call fcn.0040f6c0
mov ecx, eax
test ecx, ecx
jne 0x431a63
push 0x80004005
call fcn.0041fef0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
push str.responseType
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.0044bda0
cmp eax, 0x4b15b0
je 0x431b2a
cmp byte [esi + 8], 0
jne 0x431a96
mov edi, 0x4b15b0
jmp 0x431b0e
mov ecx, dword [esi]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
push eax
mov dword [ebp - 0x18], str.responseType
mov dword [ebp - 0x14], 0
call fcn.0044c110
mov ecx, dword [esi]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x431ae8
mov byte [ebp - 4], 0xd
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x431ae1
cmp dword [ebp - 0x14], 1
jne 0x431ae1
call fcn.0044af70
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, 0x4b15b0
jmp 0x431b0a
lea edi, [eax + 0x18]
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x18], 0
je 0x431b0a
cmp dword [ebp - 0x14], 1
jne 0x431b0a
call fcn.0044af70
push dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0xc
cmp byte [edi + 8], 4
jne 0x431b2a
push str.responseType
mov ecx, esi
call fcn.0044bda0
lea ecx, [ebp - 0x3c]
push dword [eax]
call fcn.0042ab20
push str.onFinishId
mov ecx, esi
mov dword [ebp - 0x70], 0xffffffff
call fcn.0044bda0
cmp eax, 0x4b15b0
je 0x431beb
cmp byte [esi + 8], 0
jne 0x431b55
mov edi, 0x4b15b0
jmp 0x431bcd
mov ecx, dword [esi]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
push eax
mov dword [ebp - 0x18], str.onFinishId
mov dword [ebp - 0x14], 0
call fcn.0044c110
mov ecx, dword [esi]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x431ba7
mov byte [ebp - 4], 0xf
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x431ba0
cmp dword [ebp - 0x14], 1
jne 0x431ba0
call fcn.0044af70
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, 0x4b15b0
jmp 0x431bc9
lea edi, [eax + 0x18]
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x18], 0
je 0x431bc9
cmp dword [ebp - 0x14], 1
jne 0x431bc9
call fcn.0044af70
push dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0xc
cmp byte [edi + 8], 1
jne 0x431beb
push str.onFinishId
mov ecx, esi
call fcn.0044bda0
mov ecx, eax
call fcn.0044b540
mov dword [ebp - 0x70], eax
jmp 0x431c01
push str.CDispatcherHandler::DownloadFile
push str._s_onFinishId_not_exist
push 2
push 5
call fcn.00454a40
add esp, 0x10
push str.onProgressId
mov ecx, esi
mov dword [ebp - 0x6c], 0xffffffff
call fcn.0044bda0
cmp eax, 0x4b15b0
je 0x431cc2
cmp byte [esi + 8], 0
jne 0x431c2c
mov edi, 0x4b15b0
jmp 0x431ca4
mov ecx, dword [esi]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
push eax
mov dword [ebp - 0x18], str.onProgressId
mov dword [ebp - 0x14], 0
call fcn.0044c110
mov ecx, dword [esi]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x431c7e
mov byte [ebp - 4], 0x11
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x431c77
cmp dword [ebp - 0x14], 1
jne 0x431c77
call fcn.0044af70
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, 0x4b15b0
jmp 0x431ca0
lea edi, [eax + 0x18]
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x18], 0
je 0x431ca0
cmp dword [ebp - 0x14], 1
jne 0x431ca0
call fcn.0044af70
push dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0xc
cmp byte [edi + 8], 1
jne 0x431cc2
push str.onProgressId
mov ecx, esi
call fcn.0044bda0
mov ecx, eax
call fcn.0044b540
mov dword [ebp - 0x6c], eax
jmp 0x431cd8
push str.CDispatcherHandler::DownloadFile
push str._s_onProgressId_not_exist
push 2
push 5
call fcn.00454a40
add esp, 0x10
push str.progressPercent
mov ecx, esi
mov dword [ebp - 0x68], 0
call fcn.0044bda0
cmp eax, 0x4b15b0
je 0x431db2
cmp byte [esi + 8], 0
jne 0x431d03
mov edi, 0x4b15b0
jmp 0x431d7b
mov ecx, dword [esi]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x50]
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
push eax
mov dword [ebp - 0x18], str.progressPercent
mov dword [ebp - 0x14], 0
call fcn.0044c110
mov ecx, dword [esi]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x431d55
mov byte [ebp - 4], 0x13
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x431d4e
cmp dword [ebp - 0x14], 1
jne 0x431d4e
call fcn.0044af70
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, 0x4b15b0
jmp 0x431d77
lea edi, [eax + 0x18]
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x18], 0
je 0x431d77
cmp dword [ebp - 0x14], 1
jne 0x431d77
call fcn.0044af70
push dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0xc
mov al, byte [edi + 8]
cmp al, 1
je 0x431d8a
cmp al, 2
je 0x431d8a
cmp al, 5
jne 0x431db2
push str.progressPercent
mov ecx, esi
call fcn.0044bda0
mov ecx, eax
call fcn.0044b540
mov edi, eax
mov dword [ebp - 0x68], edi
test edi, edi
js 0x431dab
cmp edi, 0x64
jle 0x431db2
mov dword [ebp - 0x68], 0
mov eax, dword [0x4b143c]
test eax, eax
jne 0x431dee
push 0x230
call fcn.0045b665
mov esi, eax
mov dword [ebp - 0x14], esi
push 0x230
push 0
push esi
mov byte [ebp - 4], 0x15
call fcn.0045ff60
add esp, 0x10
mov ecx, esi
call fcn.00428000
mov byte [ebp - 4], 0xc
mov dword [0x4b143c], eax
mov ecx, dword [eax + 0x174]
sub ecx, 0x10
call fcn.0042c240
add eax, 0x10
mov dword [ebp - 0x38], eax
lea ecx, [eax - 0x10]
mov byte [ebp - 4], 0x16
call fcn.0042c240
mov dword [ebp - 0x2c], eax
add eax, 0x10
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x38]
mov esi, dword [ebp - 0x44]
push dword [esi - 0xc]
push esi
call fcn.0042bae0
mov edi, dword [ebp - 0x38]
push ecx
mov ecx, edi
call fcn.00452890
add esp, 4
test al, al
je 0x43206e
mov ebx, 1
lea eax, [esi - 0x10]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], eax
jmp 0x431e53
mov ebx, dword [ebp - 0x54]
push 0x2e
push esi
call fcn.0045f397
mov edi, eax
add esp, 8
test edi, edi
je 0x431e6d
sub edi, esi
sar edi, 1
cmp edi, 0xffffffff
jne 0x431e70
mov edi, dword [esi - 0xc]
lea ecx, [esi - 0x10]
call fcn.0042c240
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0x18
call fcn.0040f6c0
test eax, eax
je 0x4316df
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
push ebx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x19
push str.___d_
push eax
call fcn.0042d1b0
mov ebx, dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
add esp, 0xc
push ebx
push edi
call fcn.004407d0
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x14]
call fcn.0042a620
add esp, 4
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x1a
call fcn.0042bbb0
mov byte [ebp - 4], 0x19
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x431efd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x38]
push ecx
mov ecx, edi
call fcn.00452890
lea edx, [ebx - 0x10]
add esp, 4
or ebx, 0xffffffff
test al, al
mov eax, ebx
je 0x431f5d
inc dword [ebp - 0x54]
mov byte [ebp - 4], 0x18
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x431f30
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x17
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x431f4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x54], 0x3e8
jle 0x431e50
jmp 0x431f9e
mov byte [ebp - 4], 0x18
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x431f73
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x17
mov eax, ebx
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x431f91
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x54], 0x3e8
jle 0x432057
push str.downloadFile_findfile_1000
lea ecx, [ebp - 0x34]
call fcn.0042abb0
push str.CDispatcherHandler::DownloadFile
push str._s_ERROR_could_not_find_valid_file_name_to_use
push 3
push 5
call fcn.00454a40
mov byte [ebp - 4], 0x16
add esp, 0x10
mov edx, dword [ebp - 0x2c]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x431fdc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x431ff7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x432015
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x50]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x432030
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4326f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4326f4
push edi
push str.CDispatcherHandler::DownloadFile
push str._s_strOutputPath___s_
push 0
push 5
call fcn.00454a40
add esp, 0x14
push 0x10
call fcn.0045b665
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [eax + 8], 0
and dword [eax + 8], 0xfffffeff
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0xc], 0
and ecx, 0xffffff04
mov eax, dword fs:[0x2c]
or ecx, 0x104
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
mov ecx, dword [eax]
mov eax, dword [0x4b386c]
mov dword [ebp - 0x28], ecx
cmp eax, dword [ecx + 4]
jle 0x4320f9
push 0x4b386c
call fcn.0045b80f
add esp, 4
cmp dword [0x4b386c], 0xffffffff
jne 0x4320f9
push 0x487b00
mov dword [0x4b3808], 0x49b650
call fcn.0045bb66
push 0x4b386c
call fcn.0045b7d0
add esp, 8
mov ecx, dword [0x4ade10]
push 0xffffffffffffffff
push 0x497f2c
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x1d
push eax
push ecx
mov ecx, dword [ebp - 0x54]
push str.method
call fcn.0044bbe0
mov ecx, eax
call fcn.0044b490
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x17
call fcn.0044b3d0
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x14]
call fcn.00457f40
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0x1e
mov ecx, dword [eax]
cmp dword [ecx - 4], 1
jle 0x43215e
push dword [ecx - 0xc]
mov ecx, eax
call fcn.0042b9c0
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x5c]
and eax, 0xffffff04
mov dword [ebp - 0x58], 0
or eax, 0x104
mov dword [ebp - 0x5c], eax
mov eax, dword [0x4b386c]
cmp eax, dword [ecx + 4]
jle 0x4321c1
push 0x4b386c
call fcn.0045b80f
add esp, 4
cmp dword [0x4b386c], 0xffffffff
jne 0x4321c1
push 0x487b00
mov dword [0x4b3808], 0x49b650
call fcn.0045bb66
push 0x4b386c
call fcn.0045b7d0
add esp, 8
mov ecx, dword [0x4ade10]
push 0xffffffffffffffff
push dword [ebp - 0x50]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0x1f
push eax
push ecx
mov ecx, dword [ebp - 0x54]
push 0x497078
call fcn.0044bbe0
mov ecx, eax
call fcn.0044b490
lea ecx, [ebp - 0x64]
call fcn.0044b3d0
mov byte [ebp - 4], 0x17
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x432217
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x28]
and eax, 0xffffff04
or eax, 0x104
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], eax
mov eax, dword [0x4b386c]
cmp eax, dword [ecx + 4]
jle 0x432275
push 0x4b386c
call fcn.0045b80f
add esp, 4
cmp dword [0x4b386c], 0xffffffff
jne 0x432275
push 0x487b00
mov dword [0x4b3808], 0x49b650
call fcn.0045bb66
push 0x4b386c
call fcn.0045b7d0
add esp, 8
mov ecx, dword [0x4ade10]
push 0xffffffffffffffff
push 0x497f3c
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0x20
push eax
push ecx
mov ecx, dword [ebp - 0x54]
push str.acceptTypes
call fcn.0044bbe0
mov ecx, eax
call fcn.0044b490
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x17
call fcn.0044b3d0
call fcn.0040f6c0
mov ecx, eax
test ecx, ecx
jne 0x4322c8
push 0x80004005
call fcn.0041fef0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x24]
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x38]
call fcn.00457e60
mov ebx, dword [ebp - 0x24]
cmp dword [ebx - 4], 1
jle 0x4322f9
push dword [ebx - 0xc]
lea ecx, [ebp - 0x24]
call fcn.0042b9c0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x28]
and eax, 0xffffff04
or eax, 0x104
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], eax
mov eax, dword [0x4b386c]
cmp eax, dword [ecx + 4]
jle 0x432357
push 0x4b386c
call fcn.0045b80f
add esp, 4
cmp dword [0x4b386c], 0xffffffff
jne 0x432357
push 0x487b00
mov dword [0x4b3808], 0x49b650
call fcn.0045bb66
push 0x4b386c
call fcn.0045b7d0
add esp, 8
mov ecx, dword [0x4ade10]
push 0xffffffffffffffff
push ebx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0x22
push eax
push ecx
mov ecx, dword [ebp - 0x54]
push str.outputFile
call fcn.0044bbe0
mov ecx, eax
call fcn.0044b490
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x21
call fcn.0044b3d0
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x14]
call fcn.00457f40
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0x23
mov ecx, dword [eax]
cmp dword [ecx - 4], 1
jle 0x4323b8
push dword [ecx - 0xc]
mov ecx, eax
call fcn.0042b9c0
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x5c]
and eax, 0xffffff04
mov dword [ebp - 0x58], 0
or eax, 0x104
mov dword [ebp - 0x5c], eax
mov eax, dword [0x4b386c]
cmp eax, dword [ecx + 4]
jle 0x43241b
push 0x4b386c
call fcn.0045b80f
add esp, 4
cmp dword [0x4b386c], 0xffffffff
jne 0x43241b
push 0x487b00
mov dword [0x4b3808], 0x49b650
call fcn.0045bb66
push 0x4b386c
call fcn.0045b7d0
add esp, 8
mov ecx, dword [0x4ade10]
push 0xffffffffffffffff
push dword [ebp - 0x50]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0x24
push eax
push ecx
mov ecx, dword [ebp - 0x54]
push str.responseType
call fcn.0044bbe0
mov ecx, eax
call fcn.0044b490
lea ecx, [ebp - 0x64]
call fcn.0044b3d0
mov byte [ebp - 4], 0x21
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x432472
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x5c]
and eax, 0xffffff01
mov dword [ebp - 0x58], 0
or eax, 1
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0x25
push eax
push ecx
mov ecx, dword [ebp - 0x54]
push str.progressCallbackId
call fcn.0044bbe0
mov ecx, eax
call fcn.0044b490
lea ecx, [ebp - 0x64]
call fcn.0044b3d0
mov eax, dword [ebp - 0x5c]
and eax, 0xffffff01
mov dword [ebp - 0x58], 0
or eax, 1
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0x26
push eax
push ecx
mov ecx, dword [ebp - 0x54]
push str.finishCallbackId
call fcn.0044bbe0
mov ecx, eax
call fcn.0044b490
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x21
call fcn.0044b3d0
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x43253e
mov eax, dword [ebp - 0x5c]
and eax, 0xffffff01
mov dword [ebp - 0x58], 0
or eax, 1
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0x27
push eax
push ecx
mov ecx, dword [ebp - 0x54]
push str.progressPercent
call fcn.0044bbe0
mov ecx, eax
call fcn.0044b490
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x21
call fcn.0044b3d0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x5c]
and ecx, 0xffffff01
mov dword [ebp - 0x50], eax
or ecx, 1
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0x28
push eax
push ecx
mov ecx, dword [ebp - 0x54]
push str.hadleLife
call fcn.0044bbe0
mov ecx, eax
call fcn.0044b490
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x21
call fcn.0044b3d0
lea eax, [ebp - 0x4c]
push eax
push 0
push dword [ebp - 0x54]
push 0x431220
push 0
push 0
call fcn.00462ae2
add esp, 0x18
mov ecx, eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
push ecx
test ecx, ecx
jne 0x43267f
mov ecx, dword [ebp - 0x54]
call fcn.00432800
push 0x497f40
lea ecx, [ebp - 0x34]
call fcn.0042abb0
push str.CDispatcherHandler::DownloadFile
push str._s__beginthreadex_error
push 3
push 5
call fcn.00454a40
add esp, 0x10
mov dword [ebp - 0x4c], 0
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 0x17
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43260c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x16
mov eax, ebx
mov edx, dword [ebp - 0x2c]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x432627
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov byte [ebp - 4], 0xc
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x432642
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x432660
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x432030
mov ecx, dword [esi]
push esi
jmp 0x43202b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4325ee
push 0x1d
push str.downloadFile_fileName_missing
lea ecx, [ebp - 0x34]
call fcn.0042c380
push str.CDispatcherHandler::DownloadFile
push str._s_fileName_error
push 3
push 5
call fcn.00454a40
mov byte [ebp - 4], 1
add esp, 0x10
mov edx, dword [ebp - 0x30]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4326f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4326f4
push 0x18
push str.downloadFile_url_missing
lea ecx, [ebp - 0x34]
call fcn.0042c380
push str.CDispatcherHandler::DownloadFile
push str._s_url_error
push 3
push 5
call fcn.00454a40
add esp, 0x10
mov edi, dword [ebp - 0x74]
mov eax, 8
mov word [edi], ax
call fcn.0040f6c0
mov ecx, eax
test ecx, ecx
jne 0x432714
push 0x80004005
call fcn.0041fef0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0x29
mov edx, 0x496fc4
mov eax, dword [ebp - 0x4c]
mov ecx, 0x496fd0
push dword [ebp - 0x34]
test eax, eax
cmovne ecx, edx
push ecx
push eax
lea eax, [ebp - 0x2c]
push str.__threadId__:__d____result__:__s____error__:___s__
push eax
call fcn.0042d1b0
add esp, 0x14
lea ecx, [ebp - 0x2c]
push 0x49708c
push 0x496348
call fcn.0042a8c0
mov esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi + 8], eax
call fcn.00465f91
push eax
push str.CDispatcherHandler::DownloadFile
push str._s_OUT_time___d_
push 0
push 5
call fcn.00454a40
add esp, 0x14
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4327a1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4327bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4327de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0045b64f
mov esp, ebp
pop ebp
ret 8