Function at 0x49984a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
push ebx
xor edx, edx
mov dword [esp + 0x14], ecx
push esi
or eax, 0xffffffff
mov byte [esp + 0xf], dl
xorps xmm0, xmm0
mov byte [esp + 0x16], dl
push edi
movlpd qword [esp + 0x30], xmm0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov byte [esp + 0x1b], dl
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], edx
call fcn.0049ff24
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov byte [edx], 1
mov edi, dword [ebx + 0x10120]
mov esi, dword [edi]
cmp esi, edi
je 0x499e0c
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
cmp byte [esi + 0x49], 0
mov dword [esp + 0x2c], eax
jne 0x499dfa
inc eax
cmp byte [esi + 0x48], 0
mov dword [esp + 0x14], eax
jne 0x499b1d
mov eax, dword [esi + 0x30]
or eax, dword [esi + 0x34]
je 0x499df6
cmp byte [esi + 0x4a], 0
mov edx, dword [ebp + 0xc]
jne 0x49990c
mov ecx, dword [edx]
sub ecx, dword [esi + 0x30]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
sbb eax, dword [esi + 0x34]
cmp dword [ebx + 0x7c], eax
jg 0x49990c
jl 0x499908
mov eax, ebx
cmp dword [eax + 0x78], ecx
jae 0x49990c
mov cl, 1
jmp 0x49990e
xor cl, cl
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
sub edx, dword [esi + 0x30]
mov ebx, dword [esp + 0x1c]
mov eax, dword [eax + 4]
sbb eax, dword [esi + 0x34]
cmp dword [ebx + 0x84], eax
mov ebx, dword [ebp + 8]
jg 0x49993d
jl 0x499939
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x80], edx
jae 0x49993d
mov al, 1
jmp 0x49993f
xor al, al
test cl, cl
je 0x499a19
test byte [ebx + 0xdc], 4
jne 0x499a19
and dword [esp + 0x4c], 0
lea eax, [esp + 0x68]
and dword [esp + 0x5c], 0
lea ecx, [esp + 0x4c]
push 0x2c3
push 0x78f2f0
mov dword [esp + 0x58], str.fetch_ID__d_of_download__d_failed_to_start__soft_timeout_
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x200
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], str.Downloader
call fcn.00492518
push dword [ebx + 0x14]
lea ecx, [esp + 0x50]
push dword [ebx + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.00492adc
mov ecx, eax
call fcn.00492adc
lea ecx, [esp + 0x4c]
call fcn.0042e42b
mov byte [esi + 0x4a], 1
cmp byte [ebx + 0xec], 0
jne 0x4999f7
cmp byte [esp + 0x1a], 0
jne 0x4999f7
cmp byte [ebx + 0xed], 0
je 0x4999f2
push 0x2cd
push str.d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_bnl_dl2downloader_sourcedownloader_standarddownloaderimpl.cpp
push str._download.m_complete
call fcn.0055c77a
add esp, 0xc
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc ecx
cmp byte [esi + 0x4a], 0
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x24], ecx
jne 0x499dfe
mov byte [edx], 0
jmp 0x499dfe
test al, al
je 0x4999f7
and dword [esp + 0x4c], 0
lea eax, [esp + 0x68]
and dword [esp + 0x5c], 0
lea ecx, [esp + 0x4c]
push 0x2d3
push 0x78f2f0
mov dword [esp + 0x58], str.fetch_ID__d_of_download__d_failed_to_start__hard_timeout___cancel_operation
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x200
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], str.Downloader
call fcn.00492518
push dword [ebx + 0x14]
lea ecx, [esp + 0x50]
push dword [ebx + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.00492adc
mov ecx, eax
call fcn.00492adc
lea ecx, [esp + 0x4c]
call fcn.0042e42b
push dword [esi + 0xc]
mov ecx, ebx
push dword [esi + 8]
call fcn.0049ed5c
mov dword [esp + 0x14], eax
test eax, eax
je 0x499b0c
and dword [esp + 0x4c], 0
lea eax, [esp + 0x68]
and dword [esp + 0x5c], 0
lea ecx, [esp + 0x4c]
push 0x2db
push 0x78f2f0
mov dword [esp + 0x58], str.error_in_cancellation_of_fetch_ID__d:__s
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x200
mov dword [esp + 0x68], 4
mov dword [esp + 0x6c], str.Downloader
call fcn.00492518
push dword [esi + 0xc]
lea ecx, [esp + 0x50]
push dword [esi + 8]
call fcn.00492adc
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.00496e0d
push eax
mov ecx, edx
call fcn.004928ff
lea ecx, [esp + 0x4c]
call fcn.0042e42b
mov eax, dword [esp + 0x2c]
mov byte [esi + 0x49], 1
mov dword [esp + 0x14], eax
jmp 0x4999fb
mov al, byte [esi + 0x4b]
mov edx, dword [ebp + 0xc]
mov byte [esp + 0x23], al
test al, al
jne 0x499b52
mov ecx, dword [edx]
sub ecx, dword [esi + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
sbb eax, dword [esi + 0x3c]
cmp dword [ebx + 0x8c], eax
jg 0x499b52
jl 0x499b4e
mov eax, ebx
cmp dword [eax + 0x88], ecx
jae 0x499b52
mov cl, 1
jmp 0x499b54
xor cl, cl
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
sub edx, dword [esi + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [eax + 4]
sbb eax, dword [esi + 0x3c]
cmp dword [ebx + 0x94], eax
mov ebx, dword [ebp + 8]
jg 0x499b85
jl 0x499b7f
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x90], edx
jae 0x499b85
mov al, 1
xor edx, edx
jmp 0x499b89
xor edx, edx
mov al, dl
test cl, cl
je 0x499c4c
test byte [ebx + 0xdc], 4
jne 0x499c4c
push 0x2f1
lea eax, [esp + 0x6c]
mov dword [esp + 0x50], edx
push 0x78f2f0
lea ecx, [esp + 0x54]
mov dword [esp + 0x58], str.fetch_ID__d_of_download__d_failed_deliver_data__soft_timeout_
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x200
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], str.Downloader
call fcn.00492518
push dword [ebx + 0x14]
lea ecx, [esp + 0x50]
push dword [ebx + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.00492adc
mov ecx, eax
call fcn.00492adc
lea ecx, [esp + 0x4c]
call fcn.0042e42b
mov byte [esi + 0x4b], 1
cmp byte [ebx + 0xec], 0
jne 0x499c2a
push 0x2f7
push str.d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_bnl_dl2downloader_sourcedownloader_standarddownloaderimpl.cpp
push str.download.m_started
call fcn.0055c77a
add esp, 0xc
cmp byte [esp + 0x1a], 0
jne 0x499da3
cmp byte [ebx + 0xed], 0
jne 0x499da3
mov byte [esp + 0x13], 1
jmp 0x499da3
test al, al
je 0x499d4f
push 0x2ff
lea eax, [esp + 0x6c]
mov dword [esp + 0x50], edx
push 0x78f2f0
lea ecx, [esp + 0x54]
mov dword [esp + 0x58], str.fetch_ID__d_of_download__d_failed_deliver_data__hard_timeout___cancel_operation
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x200
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], 1
mov dword [esp + 0x6c], str.Downloader
call fcn.00492518
push dword [ebx + 0x14]
lea ecx, [esp + 0x50]
push dword [ebx + 0x10]
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.00492adc
mov ecx, eax
call fcn.00492adc
lea ecx, [esp + 0x4c]
call fcn.0042e42b
push dword [esi + 0xc]
mov ecx, ebx
push dword [esi + 8]
call fcn.0049ed5c
mov dword [esp + 0x14], eax
test eax, eax
je 0x499d41
and dword [esp + 0x4c], 0
lea eax, [esp + 0x68]
and dword [esp + 0x5c], 0
lea ecx, [esp + 0x4c]
push 0x307
push 0x78f2f0
mov dword [esp + 0x58], str.error_in_cancellation_of_fetch_ID__d:__s
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x200
mov dword [esp + 0x68], 4
mov dword [esp + 0x6c], str.Downloader
call fcn.00492518
push dword [esi + 0xc]
lea ecx, [esp + 0x50]
push dword [esi + 8]
call fcn.00492adc
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.00496e0d
push eax
mov ecx, edx
call fcn.004928ff
lea ecx, [esp + 0x4c]
call fcn.0042e42b
mov eax, dword [esp + 0x2c]
mov byte [esi + 0x49], 1
mov dword [esp + 0x14], eax
jmp 0x499da3
cmp byte [esp + 0x23], 0
jne 0x499da3
mov eax, dword [esp + 0x28]
mov byte [esp + 0x1a], 1
mov byte [esp + 0x13], dl
cmp dword [esi + 0x54], eax
jb 0x499da3
ja 0x499d73
mov ecx, dword [esp + 0x30]
cmp dword [esi + 0x50], ecx
jbe 0x499da3
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
mov dword [esp + 0x38], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], edx
test eax, eax
jb 0x499da3
ja 0x499d9e
mov eax, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x70]
jbe 0x499da3
mov byte [esp + 0x1b], 1
mov al, byte [esi + 0x4b]
test al, al
je 0x499de6
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [edx]
sub ecx, dword [esi + 0x40]
mov eax, dword [edx + 4]
sbb eax, dword [esi + 0x44]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x10]
push 0
push 0
add ecx, 0x20
call fcn.004b4f43
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [esi + 0x40], eax
mov eax, dword [ecx + 4]
mov dword [esi + 0x44], eax
mov al, byte [esi + 0x4b]
mov ecx, dword [esp + 0x24]
inc ecx
test al, al
mov eax, dword [esp + 0x14]
jmp 0x499a04
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov esi, dword [esi]
cmp esi, edi
jne 0x4998b9
test ecx, ecx
jne 0x499e0f
mov byte [edx], 0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x499e1f
cmp byte [ebx + 0xed], al
je 0x499e46
cmp byte [esp + 0x13], 0
je 0x499e58
cmp byte [ebx + 0xed], 0
je 0x499e46
push 0x342
push str.d:_buildserver_bna_2work_git_bootstrapper_repositorycontribcontrib_bnl_dl2downloader_sourcedownloader_standarddownloaderimpl.cpp
push str._download.m_complete
call fcn.0055c77a
add esp, 0xc
push dword [ebp + 0xc]
mov ecx, dword [esp + 0x20]
push ebx
call fcn.00499f35
jmp 0x499f2c
cmp byte [esp + 0x1b], 0
je 0x499f2c
cmp eax, 1
jbe 0x499f2c
mov edi, dword [ebx + 0x10120]
mov esi, dword [edi]
jmp 0x499f24
cmp byte [esi + 0x49], 0
jne 0x499f22
mov eax, dword [esp + 0x38]
cmp dword [esi + 8], eax
jne 0x499e99
mov eax, dword [esp + 0x3c]
cmp dword [esi + 0xc], eax
je 0x499f22
push dword [esi + 0xc]
mov ecx, ebx
push dword [esi + 8]
call fcn.0049ed5c
mov dword [esp + 0x28], eax
test eax, eax
je 0x499f1e
and dword [esp + 0x4c], 0
lea eax, [esp + 0x68]
and dword [esp + 0x5c], 0
lea ecx, [esp + 0x4c]
push 0x356
push 0x78f2f0
mov dword [esp + 0x58], str.error_in_cancellation_of_fetch_ID__d:__s
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x200
mov dword [esp + 0x68], 4
mov dword [esp + 0x6c], str.Downloader
call fcn.00492518
push dword [esi + 0xc]
lea ecx, [esp + 0x50]
push dword [esi + 8]
call fcn.00492adc
mov ecx, dword [esp + 0x28]
mov edx, eax
call fcn.00496e0d
push eax
mov ecx, edx
call fcn.004928ff
lea ecx, [esp + 0x4c]
call fcn.0042e42b
mov byte [esi + 0x49], 1
mov esi, dword [esi]
cmp esi, edi
jne 0x499e79
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc