Function at 0x4a4a70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73072a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x590
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x49fad0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.00480c30
add eax, 0x7c
lea ecx, [ebp - 0x50]
push eax
call fcn.00489e30
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
mov dword [ebp - 0x38], esi
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 4], 0
cmp edx, 8
jb 0x4a4b0c
mov ecx, dword [ebp - 0x50]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a4b02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a5143
push edx
push ecx
call fcn.00503df0
add esp, 8
xor eax, eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
test esi, esi
je 0x4a4b39
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp + 4]
test eax, eax
je 0x4a5148
mov esi, dword [ebp - 0x38]
call fcn.004afcf0
push 0xc350
mov edi, eax
lea eax, [ebp - 0xf8]
push 0x74b42c
push eax
call fcn.005060d0
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004ad8a0
mov edx, dword [ebp - 0xe4]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x4a4ba3
mov ecx, dword [ebp - 0xf8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a4b99
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a5158
push edx
push ecx
call fcn.00503df0
add esp, 8
call fcn.00480c30
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
call fcn.004afcf0
mov edi, eax
call fcn.00480c30
mov ecx, 0x749f10
mov edx, 0x749f18
cmp byte [eax + 9], 0
mov dword [ebp - 0x68], 0
cmove edx, ecx
mov dword [ebp - 0x58], 0
mov ecx, edx
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a4bf0
sub ecx, dword [ebp - 0x14]
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.0047e790
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 2
push eax
push str.isBackgroundMode
mov ecx, edi
call fcn.004ad460
mov edx, dword [ebp - 0x54]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x4a4c50
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a4c46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a515d
push edx
push ecx
call fcn.00503df0
add esp, 8
call fcn.004afcf0
mov edi, eax
call fcn.00480c30
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
call fcn.004aec70
mov byte [ebp - 4], 3
call fcn.00480c30
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x18c]
push 0x140
push 0x208
movzx eax, byte [eax + 9]
push eax
push edi
call fcn.004918d0
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0xa4], eax
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x9c], eax
mov eax, esp
mov dword [ebp - 0xa8], 0x74d02c
mov dword [ebp - 0xa0], 0x74d7e4
push 5
mov dword [eax], 0xcc
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
lea eax, [ebp - 0xe0]
push 0x74b968
push eax
mov byte [ebp - 4], 4
call fcn.00486250
add esp, 0x1c
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x18c]
call fcn.00492820
mov edx, dword [ebp - 0xcc]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x4a4d43
mov ecx, dword [ebp - 0xe0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a4d39
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a5162
push edx
push ecx
call fcn.00503df0
add esp, 8
lea ecx, [ebp - 0x59c]
call fcn.0049e0d0
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x59c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x18c]
mov dword [ebp - 0x2c], eax
movq qword [ebp - 0x28], xmm0
mov byte [ebp - 4], 7
call fcn.00480c30
cmp byte [eax + 8], 0
je 0x4a4e28
movq xmm0, qword [str.Restarted]
mov al, byte [0x74d800]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 9
movq qword [ebp - 0x80], xmm0
mov byte [ebp - 0x78], al
mov byte [ebp - 0x77], 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x80]
push eax
push 1
call fcn.004a59b0
mov edx, dword [ebp - 0x6c]
add esp, 0xc
mov byte [ebp - 4], 7
cmp edx, 0x10
jb 0x4a4dfd
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a4df3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a5167
push edx
push ecx
call fcn.00503df0
add esp, 8
lea ecx, [ebp - 0x34]
call fcn.004a9220
push 8
call fcn.00503d60
add esp, 4
test eax, eax
je 0x4a4eba
lea ecx, [ebp - 0x34]
mov dword [eax + 4], 0x4a89c0
mov dword [eax], ecx
jmp 0x4a4ebc
lea ecx, [ebp - 0x34]
call fcn.004a0520
test al, al
je 0x4a4e05
call fcn.004afcf0
mov ecx, eax
call fcn.004ada00
call fcn.004afcf0
push 1
push 0
mov ecx, eax
call fcn.004aef60
cmp dword [ebp - 0x24], 0
mov byte [ebp - 4], 9
je 0x4a4e88
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
je 0x4a5194
push 0
push ecx
push dword [ebp - 0x28]
call fcn.006de5a5
add esp, 0xc
test eax, eax
jne 0x4a519b
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
lea ecx, [ebp - 0x59c]
call fcn.0049eb50
lea ecx, [ebp - 0x18c]
call fcn.0049f280
test esi, esi
je 0x4a5130
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4a516c
jmp 0x4a5130
xor eax, eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
push ecx
push 0
push eax
push 0x49a380
push 0
push 0
call fcn.00704e7b
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x4a51a2
cmp dword [ebp - 0x24], 0
mov byte [ebp - 4], 7
jne 0x4a517f
mov eax, dword [ebp - 0x1c]
push 0x83
push edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, eax
mov eax, dword [ebp + 4]
test edi, edi
je 0x4a5184
call fcn.00480c30
cmp byte [eax + 9], 0
jne 0x4a4f85
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0xc4]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x4a4f85
nop dword [eax]
lea eax, [ebp - 0xc4]
push eax
push edi
push dword [ebp - 0xc4]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4a4f72
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0xc4]
push eax
call esi
test eax, eax
jne 0x4a4f40
cmp dword [ebp - 0x24], 0
mov byte [ebp - 4], 0xb
je 0x4a4fbd
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
je 0x4a5194
push 0
push ecx
push dword [ebp - 0x28]
call fcn.006de5a5
add esp, 0xc
test eax, eax
jne 0x4a519b
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
lea ecx, [ebp - 0x59c]
call fcn.0049eb50
lea ecx, [ebp - 0x18c]
call fcn.0049f280
mov dword [ebp - 4], 0
call fcn.004afcf0
mov ecx, eax
call fcn.004afb60
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4a5130
push eax
jmp 0x4a4ea7
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.006fee64
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x92d
push ecx
call fcn.00473670
call fcn.006fee64
call fcn.006fee64
call fcn.006fee64
call fcn.006fee64
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientdependenciesmicrosoft_wilincludewil_resource.h
push 0x937
push eax
call fcn.00473670
call fcn.00704ce3
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientInstallerWindows_srcInstaller.cpp
push 0xe1
push eax
call fcn.00492080
push 5
call fcn.006ded47
push 2
call fcn.006ded47
push 6
mov dword [ebp - 0x1c], 0
call fcn.006ded47
int3