Function at 0x51ca90
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3ce7
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x63b404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x648c22], 0
jne 0x51d1f7
mov ecx, 2
call fcn.0051d5f0
mov edi, eax
test edi, edi
je 0x51cb00
push str.upgrade
lea ecx, [ebp - 0x44]
call fcn.005455a0
push eax
mov ecx, edi
mov dword [ebp - 4], 0x18
call fcn.00546600
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.00500b70
mov ecx, edi
call fcn.00545a50
mov ebx, eax
mov dword [ebp - 0x28], 0
push 0x1c
mov dword [ebp - 0x18], ebx
mov esi, 0xd
call fcn.0056f8a6
add esp, 4
mov dword [ebp - 0x34], eax
push 0xffffffffffffffff
push str.prodver.json
push 0xe
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00585d85
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0x1c
push eax
mov ecx, ebx
call fcn.00546600
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x51cb70
push 2
push eax
call fcn.0056f898
add esp, 8
mov ecx, edi
call fcn.00545a50
push 0x1a
mov dword [ebp - 0x14], eax
mov esi, 0xc
mov dword [ebp - 0x28], 0
call fcn.0056f8a6
add esp, 4
mov dword [ebp - 0x34], eax
push 0xffffffffffffffff
push str.upgrade.exe
push 0xd
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00585d85
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], 0x1d
call fcn.00546600
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x51cbdf
push 2
push eax
call fcn.0056f898
add esp, 8
mov ecx, edi
call fcn.005493d0
mov ecx, edi
call fcn.00548700
test ebx, ebx
je 0x51d123
push 0x78
call fcn.0056f5ce
add esp, 4
mov dword [ebp - 0x30], eax
push 1
push 0
push ebx
push 0x643410
mov ecx, eax
mov dword [ebp - 4], 0x1e
call fcn.005215f0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x51d123
mov eax, dword [esi + 4]
mov byte [esi + 9], 1
test eax, eax
jne 0x51cc5b
push eax
push 4
push esi
push 0x550410
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [esi + 0xc]
mov dword [esi + 4], eax
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 4]
test eax, eax
je 0x51cc62
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 9], 0
je 0x51cc8d
mov eax, dword [esi + 4]
test eax, eax
je 0x51cc8d
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x51cc8d
cmp dword [ebp - 0x28], 0x103
jne 0x51cc96
push 0x3e8
call ebx
jmp 0x51cc68
cmp dword [esi + 0x70], 5
jne 0x51d08b
push ecx
mov ecx, esi
call fcn.0051ca70
push 0x64
call ebx
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.005483c0
mov esi, eax
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebp - 0x28], esi
call fcn.00548180
mov ecx, eax
mov dword [ebp - 0x30], eax
call fcn.00532270
mov dword [ebp - 0x24], eax
test eax, eax
je 0x51d04f
push str.version
lea ecx, [ebp - 0x4c]
call fcn.005455a0
mov dword [ebp - 4], 0x1f
mov ecx, dword [ebp - 0x24]
push eax
call fcn.00535430
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00500b70
push 0x61ea98
lea ecx, [ebp - 0x54]
call fcn.005455a0
mov dword [ebp - 4], 0x20
mov ecx, dword [ebp - 0x24]
push eax
call fcn.00535430
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00500b70
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x51cfd1
test esi, esi
je 0x51cfa5
cmp dword [eax + 4], 0
jle 0x51cfa5
cmp dword [esi + 4], 0
jle 0x51cfa5
mov edx, eax
mov ecx, 0x648c64
call fcn.00547ab0
lea ecx, [ebp - 0x3c]
test al, al
je 0x51cf62
push str.Downloading_new_Version_n__s__from___s_
call fcn.005455a0
mov ecx, dword [ebp - 0x10]
push esi
push ecx
push eax
push 0x37
push str.UpgradeThread::checkForUpgrade
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcupgradethread.cpp
push 0
mov dword [ebp - 4], 0x21
call fcn.00550890
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00500b70
mov edx, dword [ebp - 0x14]
mov ecx, esi
push 1
push 1
push 0
call fcn.00521970
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x51cf22
mov ecx, ebx
call fcn.00550650
test al, al
jne 0x51cdf6
nop dword [eax + eax]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.00550650
test al, al
je 0x51cde0
cmp dword [ebx + 0x70], 5
lea ecx, [ebp - 0x3c]
jne 0x51ced1
push dword [ebp - 0x14]
call fcn.005456c0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0x22
call fcn.00548960
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.00500b70
lea ecx, [ebp - 0x3c]
test bl, bl
je 0x51ce83
push str.Upgrade_installer_downloaded_and_ready_to_go
call fcn.005455a0
push eax
push 0x43
push str.UpgradeThread::checkForUpgrade
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcupgradethread.cpp
push 0
mov dword [ebp - 4], 0x23
call fcn.00550890
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00500b70
mov ebx, dword [ebp - 0x1c]
push ecx
mov ecx, ebx
mov byte [0x648c21], 1
call fcn.0051ca70
mov ebx, dword [ebp - 0x18]
jmp 0x51cfa2
push str.Upgrade_installer___s__downloaded_but_cannot_be_found___s_
call fcn.005455a0
push dword [ebp - 0x14]
mov dword [ebp - 4], 0x24
push esi
push eax
push 0x48
push str.UpgradeThread::checkForUpgrade
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcupgradethread.cpp
push 0
call fcn.00550890
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00500b70
mov ebx, dword [ebp - 0x1c]
push ecx
mov ecx, ebx
call fcn.0051ca70
mov ebx, dword [ebp - 0x18]
jmp 0x51cfa2
push str.Failed_to_download_installer_from___d:_s_
call fcn.005455a0
lea ecx, [ebx + 0x38]
mov dword [ebp - 4], 0x25
push ecx
push dword [ebx + 0x34]
push dword [ebx + 0x30]
push eax
push 0x4d
push str.UpgradeThread::checkForUpgrade
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcupgradethread.cpp
push 0
call fcn.00550890
add esp, 0x20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00500b70
push ecx
mov ecx, ebx
call fcn.0051ca70
mov ebx, dword [ebp - 0x18]
jmp 0x51cfa2
push str.Unable_to_download_upgrade_installer_from___s_
lea ecx, [ebp - 0x3c]
call fcn.005455a0
push esi
push eax
push 0x53
push str.UpgradeThread::checkForUpgrade
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcupgradethread.cpp
push 0
mov dword [ebp - 4], 0x26
call fcn.00550890
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00500b70
mov ebx, dword [ebp - 0x18]
jmp 0x51cfa2
push str.Version_the_same_c__s__n__s_
call fcn.005455a0
mov ecx, dword [ebp - 0x10]
push ecx
push 0x648c64
push eax
push 0x58
push str.UpgradeThread::checkForUpgrade
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcupgradethread.cpp
push 0
mov dword [ebp - 4], 0x27
call fcn.00550890
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00500b70
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
test ecx, ecx
je 0x51cfbf
push 2
push ecx
call fcn.0056f898
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [eax], 0
push 8
push eax
mov dword [eax + 4], 0
call fcn.0056f898
add esp, 8
test esi, esi
je 0x51cffe
mov eax, dword [esi]
test eax, eax
je 0x51cfec
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
add esp, 8
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.004ff890
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x51d037
mov eax, dword [esi]
test eax, eax
je 0x51d025
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
add esp, 8
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x51d19d
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
jmp 0x51d19d
push str.Failed_to_parse_upgrade_version_jsons_file
lea ecx, [ebp - 0x54]
call fcn.005455a0
push eax
push 0x62
push str.UpgradeThread::checkForUpgrade
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcupgradethread.cpp
push 0
mov dword [ebp - 4], 0x28
call fcn.00550890
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00500b70
jmp 0x51d03a
push 0x50
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0x27
call fcn.0056f8a6
mov ecx, dword [ebp - 0x28]
add esp, 4
inc ecx
mov dword [ebp - 0x2c], eax
push 0xffffffffffffffff
push str.Failed_to_download_upgrade_json___d:_s_
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x28]
xor edx, edx
add esp, 0x14
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x28], ecx
lea eax, [esi + 0x38]
mov dword [ebp - 4], 0x29
push eax
push dword [esi + 0x34]
lea eax, [ebp - 0x2c]
push dword [esi + 0x30]
push eax
push 0x68
push str.UpgradeThread::checkForUpgrade
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcupgradethread.cpp
push edx
call fcn.00550890
mov eax, dword [ebp - 0x2c]
add esp, 0x20
test eax, eax
je 0x51d10f
push 2
push eax
call fcn.0056f898
add esp, 8
mov ecx, esi
call fcn.00521780
push 0x78
push esi
call fcn.0056f898
mov ebx, dword [ebp - 0x18]
jmp 0x51d19a
push 0x40
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0x1f
call fcn.0056f8a6
mov ecx, dword [ebp - 0x1c]
add esp, 4
inc ecx
mov dword [ebp - 0x20], eax
push 0xffffffffffffffff
push str.Failed_to_download_upgrade_json
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x1c]
xor edx, edx
add esp, 0x14
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0x2a
push eax
push 0x6e
push str.UpgradeThread::checkForUpgrade
push str.d:jenkinsworkspaceclient3.exe.fgmussexe_srcupgradethread.cpp
push edx
call fcn.00550890
mov eax, dword [ebp - 0x20]
add esp, 0x14
test eax, eax
je 0x51d19d
push 2
push eax
call fcn.0056f898
add esp, 8
test edi, edi
je 0x51d1ca
mov eax, dword [edi]
test eax, eax
je 0x51d1b8
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0056f898
add esp, 8
test ebx, ebx
je 0x51d1f7
mov eax, dword [ebx]
test eax, eax
je 0x51d1e5
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0056f898
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret