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

Disassembly:
mov eax, 0x6bea4c
call fcn.006b6d3c
sub esp, 0x170
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], str.____d___s__s__offset__d__size__s__priority__d
xor ecx, ecx
mov dword [ebp - 0x18], 0x100
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov ebx, ecx
mov eax, dword [edi + 0x18]
sub eax, ecx
je 0x49f687
sub eax, 1
je 0x49f680
sub eax, 1
jne 0x49f68c
mov ebx, str.DOWNLOAD_REQ_SIZE
jmp 0x49f68c
mov ebx, str.DOWNLOAD_REQ_GET
jmp 0x49f68c
mov ebx, str.DOWNLOAD_REQ_NONE
push dword [edi + 0x14]
lea ecx, [ebp - 0x24]
push dword [edi + 0x10]
call fcn.00492adc
mov esi, eax
push ebx
mov ecx, esi
call fcn.004928ff
push dword [edi + 0xd8]
lea edx, [edi + 0x20]
push ecx
push dword [edi + 0xd4]
mov ecx, esi
push dword [edi + 0xd0]
push dword [edi + 0xcc]
push dword [edi + 0xc8]
call fcn.004b50d1
mov ecx, eax
call fcn.00492adc
mov ecx, eax
call fcn.00492adc
pop ecx
mov ecx, eax
call fcn.00492a9a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004927dc
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x13c]
mov ecx, ebx
call fcn.0040e4fc
mov ecx, dword [edi + 0xdc]
test ecx, ecx
je 0x49f72e
push 0x40
lea edx, [ebp - 0x17c]
call fcn.00495206
pop ecx
mov edx, str.__flags
mov ecx, ebx
mov esi, eax
call fcn.0040e4fc
mov edx, esi
mov ecx, eax
call fcn.0040e4fc
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x49f74a
mov edx, str.__set
mov ecx, ebx
call fcn.0040e4fc
mov edx, esi
mov ecx, eax
call fcn.0040e4fc
mov dl, 0xa
mov ecx, ebx
call fcn.0040cdf6
cmp byte [edi + 0xec], 0
jne 0x49f769
cmp dword [edi + 0x10124], 0
je 0x49fa74
push dword [edi + 0xfc]
mov ecx, dword [edi + 0xe4]
push dword [edi + 0xf8]
mov ecx, dword [ecx]
call fcn.004952de
mov edx, 0x790f24
mov ecx, ebx
mov esi, eax
call fcn.0040e4fc
mov edx, esi
mov ecx, eax
call fcn.0040e4fc
mov edx, str.__offset
mov ecx, eax
call fcn.0040e4fc
mov ecx, eax
call fcn.004a053c
cmp byte [edi + 0xec], 0
je 0x49f7c1
mov edx, str.__started
mov ecx, ebx
call fcn.0040e4fc
cmp byte [edi + 0xed], 0
je 0x49f7d6
mov edx, str.__complete
mov ecx, ebx
call fcn.0040e4fc
cmp byte [edi + 0xee], 0
je 0x49f7eb
mov edx, str.__rejected
mov ecx, ebx
call fcn.0040e4fc
cmp byte [edi + 0xf1], 0
je 0x49f800
mov edx, str.__retired
mov ecx, ebx
call fcn.0040e4fc
cmp byte [edi + 0xef], 0
je 0x49f86b
mov edx, str.__retry
mov ecx, ebx
call fcn.0040e4fc
mov edx, dword [edi + 0xf4]
test edx, edx
je 0x49f86b
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x13c]
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], str.___s__id__d_
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x100
push dword [edx + 0x7c]
push dword [edx + 0x78]
add edx, 4
call fcn.004b5157
mov ecx, eax
call fcn.00492adc
lea ecx, [ebp - 0x24]
call fcn.004927dc
lea edx, [ebp - 0x13c]
mov ecx, ebx
call fcn.0040e4fc
mov eax, dword [edi + 0x10128]
test eax, eax
je 0x49f8ac
push eax
push ecx
mov edx, 0x784534
mov ecx, ebx
call fcn.0040e4fc
pop ecx
mov ecx, eax
call fcn.0042141e
mov edx, str._fetch_attempts
mov ecx, eax
call fcn.0040e4fc
cmp byte [edi + 0x1012c], 0
je 0x49f8ac
mov edx, str.__limit_exceeded_
mov ecx, ebx
call fcn.0040e4fc
mov dl, 0xa
mov ecx, ebx
call fcn.0040cdf6
mov edi, dword [edi + 0x10120]
mov esi, dword [edi]
jmp 0x49fa6c
push dword [esi + 0xc]
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x13c]
push dword [esi + 8]
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], str.____fetch_ID__d__host__s
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x100
call fcn.00492adc
mov edx, dword [esi + 0x10]
mov ecx, eax
call fcn.004973a4
lea ecx, [ebp - 0x24]
call fcn.004927dc
lea edx, [ebp - 0x13c]
mov ecx, ebx
call fcn.0040e4fc
mov eax, dword [esi + 0x30]
or eax, dword [esi + 0x34]
jne 0x49f91a
mov al, 1
jmp 0x49f91c
xor al, al
test al, al
jne 0x49f973
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x13c]
and dword [ebp - 0x14], 0
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], str.__init__s
mov dword [ebp - 0x18], 0x100
mov ecx, dword [eax]
sub ecx, dword [esi + 0x30]
mov eax, dword [eax + 4]
sbb eax, dword [esi + 0x34]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], eax
call fcn.004a1381
lea ecx, [ebp - 0x24]
call fcn.004927dc
lea edx, [ebp - 0x13c]
mov ecx, ebx
call fcn.0040e4fc
mov eax, dword [esi + 0x38]
or eax, dword [esi + 0x3c]
jne 0x49f97f
mov al, 1
jmp 0x49f981
xor al, al
test al, al
jne 0x49f9d8
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x13c]
and dword [ebp - 0x14], 0
lea edx, [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], str.__data__s
mov dword [ebp - 0x18], 0x100
mov ecx, dword [eax]
sub ecx, dword [esi + 0x38]
mov eax, dword [eax + 4]
sbb eax, dword [esi + 0x3c]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x30], eax
call fcn.004a1381
lea ecx, [ebp - 0x24]
call fcn.004927dc
lea edx, [ebp - 0x13c]
mov ecx, ebx
call fcn.0040e4fc
mov eax, dword [esi + 0x40]
or eax, dword [esi + 0x44]
jne 0x49f9e4
mov al, 1
jmp 0x49f9e6
xor al, al
test al, al
jne 0x49fa3d
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x13c]
and dword [ebp - 0x14], 0
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], str.__update__s
mov dword [ebp - 0x18], 0x100
mov ecx, dword [eax]
sub ecx, dword [esi + 0x40]
mov eax, dword [eax + 4]
sbb eax, dword [esi + 0x44]
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x38], eax
call fcn.004a1381
lea ecx, [ebp - 0x24]
call fcn.004927dc
lea edx, [ebp - 0x13c]
mov ecx, ebx
call fcn.0040e4fc
cmp byte [esi + 0x4a], 0
je 0x49fa4f
mov edx, str.__start_timeout
mov ecx, ebx
call fcn.0040e4fc
cmp byte [esi + 0x4b], 0
je 0x49fa61
mov edx, str.__data_timeout
mov ecx, ebx
call fcn.0040e4fc
mov dl, 0xa
mov ecx, ebx
call fcn.0040cdf6
mov esi, dword [esi]
cmp esi, edi
jne 0x49f8c2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8