Function at 0x51bca0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2ec7
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x63a404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x647b02], 0
jne 0x51c407
mov ecx, 2
call fcn.0051c800
mov edi, eax
test edi, edi
je 0x51bd10
push str.upgrade
lea ecx, [ebp - 0x44]
call fcn.005447b0
push eax
mov ecx, edi
mov dword [ebp - 4], 0x18
call fcn.00545810
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.004ffe40
mov ecx, edi
call fcn.00544c60
mov ebx, eax
mov dword [ebp - 0x28], 0
push 0x1c
mov dword [ebp - 0x18], ebx
mov esi, 0xd
call fcn.0056ea97
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.00584f75
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.00545810
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x51bd80
push 2
push eax
call fcn.0056ea89
add esp, 8
mov ecx, edi
call fcn.00544c60
push 0x1a
mov dword [ebp - 0x14], eax
mov esi, 0xc
mov dword [ebp - 0x28], 0
call fcn.0056ea97
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.00584f75
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.00545810
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x51bdef
push 2
push eax
call fcn.0056ea89
add esp, 8
mov ecx, edi
call fcn.005485e0
mov ecx, edi
call fcn.00547910
test ebx, ebx
je 0x51c333
push 0x78
call fcn.0056e7bf
add esp, 4
mov dword [ebp - 0x30], eax
push 1
push 0
push ebx
push 0x642310
mov ecx, eax
mov dword [ebp - 4], 0x1e
call fcn.00520800
mov esi, eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x51c333
mov eax, dword [esi + 4]
mov byte [esi + 9], 1
test eax, eax
jne 0x51be6b
push eax
push 4
push esi
push 0x54f620
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 0x51be72
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 9], 0
je 0x51be9d
mov eax, dword [esi + 4]
test eax, eax
je 0x51be9d
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x51be9d
cmp dword [ebp - 0x28], 0x103
jne 0x51bea6
push 0x3e8
call ebx
jmp 0x51be78
cmp dword [esi + 0x70], 5
jne 0x51c29b
push ecx
mov ecx, esi
call fcn.0051bc80
push 0x64
call ebx
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
call fcn.005475d0
mov esi, eax
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebp - 0x28], esi
call fcn.00547390
mov ecx, eax
mov dword [ebp - 0x30], eax
call fcn.00531480
mov dword [ebp - 0x24], eax
test eax, eax
je 0x51c25f
push str.version
lea ecx, [ebp - 0x4c]
call fcn.005447b0
mov dword [ebp - 4], 0x1f
mov ecx, dword [ebp - 0x24]
push eax
call fcn.00534640
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004ffe40
push 0x61da00
lea ecx, [ebp - 0x54]
call fcn.005447b0
mov dword [ebp - 4], 0x20
mov ecx, dword [ebp - 0x24]
push eax
call fcn.00534640
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.004ffe40
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x51c1e1
test esi, esi
je 0x51c1b5
cmp dword [eax + 4], 0
jle 0x51c1b5
cmp dword [esi + 4], 0
jle 0x51c1b5
mov edx, eax
mov ecx, 0x647b44
call fcn.00546cc0
lea ecx, [ebp - 0x3c]
test al, al
je 0x51c172
push str.Downloading_new_Version_n__s__from___s_
call fcn.005447b0
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.0054faa0
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004ffe40
mov edx, dword [ebp - 0x14]
mov ecx, esi
push 1
push 1
push 0
call fcn.00520b80
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x51c132
mov ecx, ebx
call fcn.0054f860
test al, al
jne 0x51c006
nop dword [eax + eax]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.0054f860
test al, al
je 0x51bff0
cmp dword [ebx + 0x70], 5
lea ecx, [ebp - 0x3c]
jne 0x51c0e1
push dword [ebp - 0x14]
call fcn.005448d0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0x22
call fcn.00547b70
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.004ffe40
lea ecx, [ebp - 0x3c]
test bl, bl
je 0x51c093
push str.Upgrade_installer_downloaded_and_ready_to_go
call fcn.005447b0
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.0054faa0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004ffe40
mov ebx, dword [ebp - 0x1c]
push ecx
mov ecx, ebx
mov byte [0x647b01], 1
call fcn.0051bc80
mov ebx, dword [ebp - 0x18]
jmp 0x51c1b2
push str.Upgrade_installer___s__downloaded_but_cannot_be_found___s_
call fcn.005447b0
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.0054faa0
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004ffe40
mov ebx, dword [ebp - 0x1c]
push ecx
mov ecx, ebx
call fcn.0051bc80
mov ebx, dword [ebp - 0x18]
jmp 0x51c1b2
push str.Failed_to_download_installer_from___d:_s_
call fcn.005447b0
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.0054faa0
add esp, 0x20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004ffe40
push ecx
mov ecx, ebx
call fcn.0051bc80
mov ebx, dword [ebp - 0x18]
jmp 0x51c1b2
push str.Unable_to_download_upgrade_installer_from___s_
lea ecx, [ebp - 0x3c]
call fcn.005447b0
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.0054faa0
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004ffe40
mov ebx, dword [ebp - 0x18]
jmp 0x51c1b2
push str.Version_the_same_c__s__n__s_
call fcn.005447b0
mov ecx, dword [ebp - 0x10]
push ecx
push 0x647b44
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.0054faa0
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004ffe40
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
test ecx, ecx
je 0x51c1cf
push 2
push ecx
call fcn.0056ea89
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [eax], 0
push 8
push eax
mov dword [eax + 4], 0
call fcn.0056ea89
add esp, 8
test esi, esi
je 0x51c20e
mov eax, dword [esi]
test eax, eax
je 0x51c1fc
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056ea89
add esp, 8
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.004feb60
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x51c247
mov eax, dword [esi]
test eax, eax
je 0x51c235
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056ea89
add esp, 8
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x51c3ad
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
jmp 0x51c3ad
push str.Failed_to_parse_upgrade_version_jsons_file
lea ecx, [ebp - 0x54]
call fcn.005447b0
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.0054faa0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004ffe40
jmp 0x51c24a
push 0x50
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0x27
call fcn.0056ea97
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.00584f75
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.0054faa0
mov eax, dword [ebp - 0x2c]
add esp, 0x20
test eax, eax
je 0x51c31f
push 2
push eax
call fcn.0056ea89
add esp, 8
mov ecx, esi
call fcn.00520990
push 0x78
push esi
call fcn.0056ea89
mov ebx, dword [ebp - 0x18]
jmp 0x51c3aa
push 0x40
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0x1f
call fcn.0056ea97
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.00584f75
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.0054faa0
mov eax, dword [ebp - 0x20]
add esp, 0x14
test eax, eax
je 0x51c3ad
push 2
push eax
call fcn.0056ea89
add esp, 8
test edi, edi
je 0x51c3da
mov eax, dword [edi]
test eax, eax
je 0x51c3c8
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0056ea89
add esp, 8
test ebx, ebx
je 0x51c407
mov eax, dword [ebx]
test eax, eax
je 0x51c3f5
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0056ea89
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