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

Disassembly:
push 0xffffffffffffffff
push 0x5f5826
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x667050]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x80]
push 0x68
mov esi, ecx
call fcn.005e694e
add esp, 4
mov dword [esp + 0x14], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x78], edi
je 0x4e085b
push eax
call fcn.004e1a50
mov edi, eax
push 0
or ebp, 0xffffffff
mov dword [esp + 0x7c], ebp
mov eax, dword [edi]
mov edx, dword [eax + 8]
push 0
push esi
mov ecx, edi
call edx
cmp byte [edi + 0x2c], 0
jne 0x4e091f
push str.FILE
lea ecx, [esp + 0x1c]
mov byte [edi + 0x64], 1
call dword [0x610498]
lea ecx, [esp + 0x18]
mov dword [esp + 0x78], 1
call fcn.004e1d50
lea ecx, [esp + 0x18]
mov esi, eax
mov dword [esp + 0x78], ebp
call dword [0x6105a0]
test esi, esi
je 0x4e091f
lea ecx, [esp + 0x34]
call dword [0x61049c]
mov eax, esi
mov dword [esp + 0x78], 2
call fcn.004e1e20
mov ebp, eax
test ebp, ebp
je 0x4e0b00
mov eax, ebp
lea esi, [esp + 0x50]
call fcn.004e1d20
lea eax, [esp + 0x34]
push eax
mov esi, ebp
mov byte [esp + 0x7c], 3
call fcn.004e1ea0
test al, al
je 0x4e0ab3
push str.DownloadUrl
lea ecx, [esp + 0x54]
call dword [0x6105ac]
test eax, eax
jne 0x4e0935
lea ecx, [esp + 0x34]
push ecx
lea ecx, [ebx + 4]
call dword [0x61059c]
jmp 0x4e0ab3
push edi
call fcn.004e1b60
push edi
call fcn.005e6954
add esp, 4
xor al, al
jmp 0x4e0b33
push str.SpareUrl
lea ecx, [esp + 0x54]
call dword [0x6105ac]
test eax, eax
jne 0x4e095b
lea edx, [esp + 0x34]
push edx
lea ecx, [ebx + 0x20]
call dword [0x61059c]
jmp 0x4e0ab3
push 0x61231c
lea ecx, [esp + 0x54]
call dword [0x6105ac]
test eax, eax
jne 0x4e0981
lea eax, [esp + 0x34]
push eax
lea ecx, [ebx + 0x3c]
call dword [0x61059c]
jmp 0x4e0ab3
push str.FileSize
lea ecx, [esp + 0x54]
call dword [0x6105ac]
test eax, eax
jne 0x4e09a7
lea ecx, [esp + 0x34]
push ecx
lea ecx, [ebx + 0x58]
call dword [0x61059c]
jmp 0x4e0ab3
push str.FileName
lea ecx, [esp + 0x54]
call dword [0x6105ac]
test eax, eax
jne 0x4e09cd
lea edx, [esp + 0x34]
push edx
lea ecx, [ebx + 0x74]
call dword [0x61059c]
jmp 0x4e0ab3
push str.DownloadType
lea ecx, [esp + 0x54]
call dword [0x6105ac]
test eax, eax
jne 0x4e0a00
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x4e09ef
lea eax, [esp + 0x38]
push 0
call fcn.004ce080
add esp, 4
mov dword [ebx], eax
jmp 0x4e0ab3
push str.TorrentUrl
lea ecx, [esp + 0x54]
call dword [0x6105ac]
test eax, eax
jne 0x4e0a29
lea eax, [esp + 0x34]
push eax
lea ecx, [ebx + 0x94]
call dword [0x61059c]
jmp 0x4e0ab3
push str.UpdateType
lea ecx, [esp + 0x54]
call dword [0x6105ac]
test eax, eax
jne 0x4e0a72
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x4e0a4b
lea eax, [esp + 0x38]
push 0
call fcn.004ce080
add esp, 4
cmp eax, 1
jne 0x4e0a68
test edx, edx
jne 0x4e0a68
mov al, al
mov byte [ebx + 0x90], al
jmp 0x4e0ab3
xor al, al
mov byte [ebx + 0x90], al
jmp 0x4e0ab3
push str.InvalidVersion
lea ecx, [esp + 0x54]
call dword [0x6105ac]
test eax, eax
jne 0x4e0ab3
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x4e0a94
lea eax, [esp + 0x38]
push 0
call fcn.004ce080
add esp, 4
cmp eax, 1
jne 0x4e0aab
test edx, edx
jne 0x4e0aab
mov al, al
jmp 0x4e0aad
xor al, al
mov byte [ebx + 0x91], al
test ebp, ebp
je 0x4e0ae7
mov esi, dword [ebp + 0x28]
test esi, esi
je 0x4e0ad4
mov edi, edi
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x4e0ada
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x4e0ac0
xor eax, eax
mov ebp, eax
jmp 0x4e0ae9
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov ebp, eax
jmp 0x4e0ae9
xor ebp, ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], 2
call dword [0x6105a0]
test ebp, ebp
jne 0x4e08d5
push edi
call fcn.004e1b60
push edi
call fcn.005e6954
add esp, 4
mov dword [esp + 0x78], 0xffffffff
cmp dword [ebx + 0x18], 0
lea ecx, [esp + 0x34]
jne 0x4e0b2b
call dword [0x6105a0]
xor al, al
jmp 0x4e0b33
call dword [0x6105a0]
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.005e693f
add esp, 0x68
ret