Function at 0x434730
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4869d9
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4b1014]
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.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x434779
push 0x80004005
call fcn.00420020
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
call fcn.004687c2
push eax
push str.CDispatcherHandler::DownloadFile
push str._s_IN_time___d_
push 0
push 5
call fcn.00458800
add esp, 0x14
mov dword [ebp - 0x4c], 0
call fcn.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x4347c3
push 0x80004005
call fcn.00420020
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 0x435831
push 0x49a3cc
mov ecx, esi
call fcn.0044f800
cmp eax, 0x4b5590
je 0x43575f
cmp byte [esi + 8], 0
jne 0x434801
mov edi, 0x4b5590
jmp 0x434879
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], 0x49a3cc
mov dword [ebp - 0x14], 0
call fcn.0044fb40
mov ecx, dword [esi]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x434853
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x43484c
cmp dword [ebp - 0x14], 1
jne 0x43484c
call fcn.0044e9d0
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, 0x4b5590
jmp 0x434875
lea edi, [eax + 0x18]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 0
je 0x434875
cmp dword [ebp - 0x14], 1
jne 0x434875
call fcn.0044e9d0
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 0x43575f
call fcn.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x434898
push 0x80004005
call fcn.00420020
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 0x4348b4
mov edi, 0x4b5590
jmp 0x43492c
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], 0x49a3cc
mov dword [ebp - 0x14], 0
call fcn.0044fb40
mov ecx, dword [esi]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x434906
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4348ff
cmp dword [ebp - 0x14], 1
jne 0x4348ff
call fcn.0044e9d0
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, 0x4b5590
jmp 0x434928
lea edi, [eax + 0x18]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x18], 0
je 0x434928
cmp dword [ebp - 0x14], 1
jne 0x434928
call fcn.0044e9d0
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 0x434936
xor ecx, ecx
jmp 0x434949
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x434940
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0042ffa0
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x40]
call fcn.0045aa70
push str.fileName
mov ecx, esi
call fcn.0044f800
cmp eax, 0x4b5590
je 0x43571a
cmp byte [esi + 8], 0
jne 0x434982
mov edi, 0x4b5590
jmp 0x4349fa
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.0044fb40
mov ecx, dword [esi]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x4349d4
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4349cd
cmp dword [ebp - 0x14], 1
jne 0x4349cd
call fcn.0044e9d0
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, 0x4b5590
jmp 0x4349f6
lea edi, [eax + 0x18]
mov byte [ebp - 4], 8
cmp dword [ebp - 0x18], 0
je 0x4349f6
cmp dword [ebp - 0x14], 1
jne 0x4349f6
call fcn.0044e9d0
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 0x43571a
call fcn.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x434a19
push 0x80004005
call fcn.00420020
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 0x434a35
mov edi, 0x4b5590
jmp 0x434aad
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.0044fb40
mov ecx, dword [esi]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x434a87
mov byte [ebp - 4], 0xa
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x434a80
cmp dword [ebp - 0x14], 1
jne 0x434a80
call fcn.0044e9d0
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, 0x4b5590
jmp 0x434aa9
lea edi, [eax + 0x18]
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x18], 0
je 0x434aa9
cmp dword [ebp - 0x14], 1
jne 0x434aa9
call fcn.0044e9d0
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 0x434ab7
xor ecx, ecx
jmp 0x434ac9
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x434ac0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0042ffa0
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.0045aa70
call fcn.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x434af3
push 0x80004005
call fcn.00420020
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.0044f800
cmp eax, 0x4b5590
je 0x434bba
cmp byte [esi + 8], 0
jne 0x434b26
mov edi, 0x4b5590
jmp 0x434b9e
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.0044fb40
mov ecx, dword [esi]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x434b78
mov byte [ebp - 4], 0xd
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x434b71
cmp dword [ebp - 0x14], 1
jne 0x434b71
call fcn.0044e9d0
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, 0x4b5590
jmp 0x434b9a
lea edi, [eax + 0x18]
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x18], 0
je 0x434b9a
cmp dword [ebp - 0x14], 1
jne 0x434b9a
call fcn.0044e9d0
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 0x434bba
push str.responseType
mov ecx, esi
call fcn.0044f800
lea ecx, [ebp - 0x3c]
push dword [eax]
call fcn.0042d8e0
push str.onFinishId
mov ecx, esi
mov dword [ebp - 0x70], 0xffffffff
call fcn.0044f800
cmp eax, 0x4b5590
je 0x434c7b
cmp byte [esi + 8], 0
jne 0x434be5
mov edi, 0x4b5590
jmp 0x434c5d
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.0044fb40
mov ecx, dword [esi]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x434c37
mov byte [ebp - 4], 0xf
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x434c30
cmp dword [ebp - 0x14], 1
jne 0x434c30
call fcn.0044e9d0
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, 0x4b5590
jmp 0x434c59
lea edi, [eax + 0x18]
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x18], 0
je 0x434c59
cmp dword [ebp - 0x14], 1
jne 0x434c59
call fcn.0044e9d0
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 0x434c7b
push str.onFinishId
mov ecx, esi
call fcn.0044f800
mov ecx, eax
call fcn.0044efa0
mov dword [ebp - 0x70], eax
jmp 0x434c91
push str.CDispatcherHandler::DownloadFile
push str._s_onFinishId_not_exist
push 2
push 5
call fcn.00458800
add esp, 0x10
push str.onProgressId
mov ecx, esi
mov dword [ebp - 0x6c], 0xffffffff
call fcn.0044f800
cmp eax, 0x4b5590
je 0x434d52
cmp byte [esi + 8], 0
jne 0x434cbc
mov edi, 0x4b5590
jmp 0x434d34
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.0044fb40
mov ecx, dword [esi]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x434d0e
mov byte [ebp - 4], 0x11
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x434d07
cmp dword [ebp - 0x14], 1
jne 0x434d07
call fcn.0044e9d0
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, 0x4b5590
jmp 0x434d30
lea edi, [eax + 0x18]
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x18], 0
je 0x434d30
cmp dword [ebp - 0x14], 1
jne 0x434d30
call fcn.0044e9d0
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 0x434d52
push str.onProgressId
mov ecx, esi
call fcn.0044f800
mov ecx, eax
call fcn.0044efa0
mov dword [ebp - 0x6c], eax
jmp 0x434d68
push str.CDispatcherHandler::DownloadFile
push str._s_onProgressId_not_exist
push 2
push 5
call fcn.00458800
add esp, 0x10
push str.progressPercent
mov ecx, esi
mov dword [ebp - 0x68], 0
call fcn.0044f800
cmp eax, 0x4b5590
je 0x434e42
cmp byte [esi + 8], 0
jne 0x434d93
mov edi, 0x4b5590
jmp 0x434e0b
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.0044fb40
mov ecx, dword [esi]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x434de5
mov byte [ebp - 4], 0x13
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x434dde
cmp dword [ebp - 0x14], 1
jne 0x434dde
call fcn.0044e9d0
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, 0x4b5590
jmp 0x434e07
lea edi, [eax + 0x18]
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x18], 0
je 0x434e07
cmp dword [ebp - 0x14], 1
jne 0x434e07
call fcn.0044e9d0
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 0x434e1a
cmp al, 2
je 0x434e1a
cmp al, 5
jne 0x434e42
push str.progressPercent
mov ecx, esi
call fcn.0044f800
mov ecx, eax
call fcn.0044efa0
mov edi, eax
mov dword [ebp - 0x68], edi
test edi, edi
js 0x434e3b
cmp edi, 0x64
jle 0x434e42
mov dword [ebp - 0x68], 0
mov eax, dword [0x4b541c]
test eax, eax
jne 0x434e7e
push 0x230
call fcn.0045dac5
mov esi, eax
mov dword [ebp - 0x14], esi
push 0x230
push 0
push esi
mov byte [ebp - 4], 0x15
call fcn.00462380
add esp, 0x10
mov ecx, esi
call fcn.00428910
mov byte [ebp - 4], 0xc
mov dword [0x4b541c], eax
mov ecx, dword [eax + 0x174]
sub ecx, 0x10
call fcn.0042f1b0
add eax, 0x10
mov dword [ebp - 0x38], eax
lea ecx, [eax - 0x10]
mov byte [ebp - 4], 0x16
call fcn.0042f1b0
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.0042ea50
mov edi, dword [ebp - 0x38]
push ecx
mov ecx, edi
call fcn.004562c0
add esp, 4
test al, al
je 0x4350fe
mov ebx, 1
lea eax, [esi - 0x10]
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], eax
jmp 0x434ee3
mov ebx, dword [ebp - 0x54]
push 0x2e
push esi
call fcn.004617b7
mov edi, eax
add esp, 8
test edi, edi
je 0x434efd
sub edi, esi
sar edi, 1
cmp edi, 0xffffffff
jne 0x434f00
mov edi, dword [esi - 0xc]
lea ecx, [esi - 0x10]
call fcn.0042f1b0
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0x18
call fcn.0040f7b0
test eax, eax
je 0x43476f
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.00430100
mov ebx, dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
add esp, 0xc
push ebx
push edi
call fcn.004438b0
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x14]
call fcn.0042d3e0
add esp, 4
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x1a
call fcn.0042eb20
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 0x434f8d
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.004562c0
lea edx, [ebx - 0x10]
add esp, 4
or ebx, 0xffffffff
test al, al
mov eax, ebx
je 0x434fed
inc dword [ebp - 0x54]
mov byte [ebp - 4], 0x18
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x434fc0
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 0x434fde
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x54], 0x3e8
jle 0x434ee0
jmp 0x43502e
mov byte [ebp - 4], 0x18
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x435003
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 0x435021
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x54], 0x3e8
jle 0x4350e7
push str.downloadFile_findfile_1000
lea ecx, [ebp - 0x34]
call fcn.0042d970
push str.CDispatcherHandler::DownloadFile
push str._s_ERROR_could_not_find_valid_file_name_to_use
push 3
push 5
call fcn.00458800
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 0x43506c
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 0x435087
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 0x4350a5
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 0x4350c0
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 0x435784
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x435784
push edi
push str.CDispatcherHandler::DownloadFile
push str._s_strOutputPath___s_
push 0
push 5
call fcn.00458800
add esp, 0x14
push 0x10
call fcn.0045dac5
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 [0x4b7874]
mov dword [ebp - 0x28], ecx
cmp eax, dword [ecx + 4]
jle 0x435189
push 0x4b7874
call fcn.0045dc44
add esp, 4
cmp dword [0x4b7874], 0xffffffff
jne 0x435189
push 0x48a300
mov dword [0x4b77e8], 0x49f2b0
call fcn.0045dfb8
push 0x4b7874
call fcn.0045dc05
add esp, 8
mov ecx, dword [0x4b1e10]
push 0xffffffffffffffff
push 0x49bb14
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.0044f640
mov ecx, eax
call fcn.0044eef0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x17
call fcn.0044ee30
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x14]
call fcn.0045ac50
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0x1e
mov ecx, dword [eax]
cmp dword [ecx - 4], 1
jle 0x4351ee
push dword [ecx - 0xc]
mov ecx, eax
call fcn.0042e930
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 [0x4b7874]
cmp eax, dword [ecx + 4]
jle 0x435251
push 0x4b7874
call fcn.0045dc44
add esp, 4
cmp dword [0x4b7874], 0xffffffff
jne 0x435251
push 0x48a300
mov dword [0x4b77e8], 0x49f2b0
call fcn.0045dfb8
push 0x4b7874
call fcn.0045dc05
add esp, 8
mov ecx, dword [0x4b1e10]
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 0x49a3cc
call fcn.0044f640
mov ecx, eax
call fcn.0044eef0
lea ecx, [ebp - 0x64]
call fcn.0044ee30
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 0x4352a7
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 [0x4b7874]
cmp eax, dword [ecx + 4]
jle 0x435305
push 0x4b7874
call fcn.0045dc44
add esp, 4
cmp dword [0x4b7874], 0xffffffff
jne 0x435305
push 0x48a300
mov dword [0x4b77e8], 0x49f2b0
call fcn.0045dfb8
push 0x4b7874
call fcn.0045dc05
add esp, 8
mov ecx, dword [0x4b1e10]
push 0xffffffffffffffff
push 0x49bb24
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.0044f640
mov ecx, eax
call fcn.0044eef0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x17
call fcn.0044ee30
call fcn.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x435358
push 0x80004005
call fcn.00420020
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.0045ab70
mov ebx, dword [ebp - 0x24]
cmp dword [ebx - 4], 1
jle 0x435389
push dword [ebx - 0xc]
lea ecx, [ebp - 0x24]
call fcn.0042e930
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 [0x4b7874]
cmp eax, dword [ecx + 4]
jle 0x4353e7
push 0x4b7874
call fcn.0045dc44
add esp, 4
cmp dword [0x4b7874], 0xffffffff
jne 0x4353e7
push 0x48a300
mov dword [0x4b77e8], 0x49f2b0
call fcn.0045dfb8
push 0x4b7874
call fcn.0045dc05
add esp, 8
mov ecx, dword [0x4b1e10]
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.0044f640
mov ecx, eax
call fcn.0044eef0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x21
call fcn.0044ee30
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x14]
call fcn.0045ac50
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0x23
mov ecx, dword [eax]
cmp dword [ecx - 4], 1
jle 0x435448
push dword [ecx - 0xc]
mov ecx, eax
call fcn.0042e930
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 [0x4b7874]
cmp eax, dword [ecx + 4]
jle 0x4354ab
push 0x4b7874
call fcn.0045dc44
add esp, 4
cmp dword [0x4b7874], 0xffffffff
jne 0x4354ab
push 0x48a300
mov dword [0x4b77e8], 0x49f2b0
call fcn.0045dfb8
push 0x4b7874
call fcn.0045dc05
add esp, 8
mov ecx, dword [0x4b1e10]
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.0044f640
mov ecx, eax
call fcn.0044eef0
lea ecx, [ebp - 0x64]
call fcn.0044ee30
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 0x435502
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.0044f640
mov ecx, eax
call fcn.0044eef0
lea ecx, [ebp - 0x64]
call fcn.0044ee30
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.0044f640
mov ecx, eax
call fcn.0044eef0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x21
call fcn.0044ee30
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x4355ce
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.0044f640
mov ecx, eax
call fcn.0044eef0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x21
call fcn.0044ee30
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.0044f640
mov ecx, eax
call fcn.0044eef0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x21
call fcn.0044ee30
lea eax, [ebp - 0x4c]
push eax
push 0
push dword [ebp - 0x54]
push 0x4342b0
push 0
push 0
call fcn.00464f02
add esp, 0x18
mov ecx, eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
push ecx
test ecx, ecx
jne 0x43570f
mov ecx, dword [ebp - 0x54]
call fcn.00435890
push 0x49bb28
lea ecx, [ebp - 0x34]
call fcn.0042d970
push str.CDispatcherHandler::DownloadFile
push str._s__beginthreadex_error
push 3
push 5
call fcn.00458800
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 0x43569c
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 0x4356b7
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 0x4356d2
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 0x4356f0
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 0x4350c0
mov ecx, dword [esi]
push esi
jmp 0x4350bb
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43567e
push 0x1d
push str.downloadFile_fileName_missing
lea ecx, [ebp - 0x34]
call fcn.0042f2f0
push str.CDispatcherHandler::DownloadFile
push str._s_fileName_error
push 3
push 5
call fcn.00458800
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 0x435784
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x435784
push 0x18
push str.downloadFile_url_missing
lea ecx, [ebp - 0x34]
call fcn.0042f2f0
push str.CDispatcherHandler::DownloadFile
push str._s_url_error
push 3
push 5
call fcn.00458800
add esp, 0x10
mov edi, dword [ebp - 0x74]
mov eax, 8
mov word [edi], ax
call fcn.0040f7b0
mov ecx, eax
test ecx, ecx
jne 0x4357a4
push 0x80004005
call fcn.00420020
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0x29
mov edx, 0x49a268
mov eax, dword [ebp - 0x4c]
mov ecx, 0x49a274
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.00430100
add esp, 0x14
lea ecx, [ebp - 0x2c]
push 0x49a5b4
push 0x49934c
call fcn.0042d680
mov esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi + 8], eax
call fcn.004687c2
push eax
push str.CDispatcherHandler::DownloadFile
push str._s_OUT_time___d_
push 0
push 5
call fcn.00458800
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 0x435831
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 0x43584f
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 0x43586e
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.0045daaf
mov esp, ebp
pop ebp
ret 8