Function at 0x476f60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5651e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
add eax, 0xffff7e0b
cmp eax, 3
ja case.default.0x476f9c
jmp dword [eax*4 + 0x4770e0]
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x740]
push eax
mov dword [esi + 0xc04], eax
call fcn.00467a70
jmp case.default.0x476f9c
lea ecx, [esi + 0x770]
call fcn.0042e370
push eax
push dword [esi + 0xc04]
lea ecx, [esi + 0x740]
push dword [esi + 0x95c]
push dword [esi + 0x958]
call fcn.004685c0
jmp case.default.0x476f9c
lea eax, [esi + 0x8b0]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402a30
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x477038
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x477038
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.localfilepath
push str.Software
call fcn.0043bc70
push 1
lea ecx, [esi + 0x740]
call fcn.00468200
push 3
mov ecx, esi
call fcn.004320c0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb case.default.0x476f9c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47707a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4770d8
push edx
push ecx
call fcn.00497d51
add esp, 8
jmp case.default.0x476f9c
push 0x1e
push str.Option
call fcn.0043b1e0
test eax, eax
je 0x4770a4
push ecx
lea ecx, [esi + 0x740]
call fcn.00467ea0
jmp 0x4770b1
push 1
lea ecx, [esi + 0x740]
call fcn.00467c70
push 3
mov ecx, esi
call fcn.004320c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497d40
mov esp, ebp
pop ebp
ret 8
call fcn.00524a29
nop dword [eax]
mov dword [0xbd00476f], eax
outsd dx, dword [esi]
inc edi
add bl, ch
outsd dx, dword [esi]
inc edi
add byte [esi + 0x55004770], al
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560300
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5b0514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov al, byte [0x5baa40]
test al, al
je 0x4773c1
mov eax, dword [ebp + 0xc]
push 0x18
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
call fcn.004810d1
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x477223
push 0xa8
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj_class_std::packaged_task_void____cdecl___void___.0
call fcn.004810d1
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
test edi, edi
je 0x477214
push 0xa8
push 0
push edi
call fcn.00521a60
mov dword [edi], vtable.std::_Associated_state_int_.0
lea eax, [edi + 0xc]
mov dword [edi + 4], 1
push eax
mov byte [ebp - 4], 2
call fcn.0049b1a8
lea eax, [edi + 0x14]
push 2
push eax
call fcn.0049a8cb
lea eax, [edi + 0x44]
push eax
call fcn.0049a553
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + 0x80]
mov byte [edi + 0x6c], 0
add esp, 0x1c
mov dword [edi + 0x70], 0
mov word [edi + 0x74], 0
mov byte [edi + 0x76], 0
mov dword [edi + 0x78], 0
mov dword [edi], vtable.std::_Packaged_state_void____cdecl___void__.0
mov dword [eax], vtable.std::_Func_impl_no_alloc_class_std::_Binder_struct_std::_Unforced__class__lambda_e75339ded147996d1fd6a4430e557b1a______void___.0
mov dword [eax + 4], ecx
mov dword [eax + 0x24], eax
mov dword [esi + 0xc], edi
mov byte [esi + 0x10], 0
mov byte [esi + 0x14], 0
jmp 0x477225
xor edi, edi
mov byte [esi + 0x10], 0
mov dword [esi + 0xc], edi
mov byte [esi + 0x14], 0
jmp 0x477225
xor esi, esi
xorps xmm0, xmm0
mov dword [ebp - 0x20], 2
movlpd qword [ebp - 0x18], xmm0
lea edi, [esi + 0xc]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 3
mov ecx, edi
mov eax, dword [ebp - 0x24]
push eax
movq qword [eax], xmm0
call fcn.00436270
push 0x5ba9e8
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x28], 0x5ba9e8
call fcn.0049a8ec
add esp, 4
test eax, eax
je 0x47727b
push eax
call fcn.0049b2b4
add esp, 4
test esi, esi
je 0x477283
lock inc dword [esi + 4]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 5
mov edx, dword [0x5ba9e4]
mov ecx, dword [0x5ba9dc]
lea eax, [edx + 1]
cmp ecx, eax
ja 0x4772b7
push ecx
mov ecx, 0x5ba9d4
call fcn.00436300
mov edx, dword [0x5ba9e4]
mov ecx, dword [0x5ba9dc]
mov eax, dword [0x5ba9e0]
dec ecx
and eax, ecx
mov dword [0x5ba9e0], eax
add eax, edx
and eax, ecx
mov ecx, dword [0x5ba9d8]
shl eax, 2
mov dword [ebp - 0x1c], eax
cmp dword [eax + ecx], 0
jne 0x4772f9
push 0x28
call fcn.004810d1
mov edx, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [0x5ba9d8]
add esp, 4
mov dword [edx + eax], ecx
mov eax, edx
mov ecx, dword [0x5ba9d8]
mov eax, dword [eax + ecx]
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_3251d549aa219c20661a5b4a494815ec___void___.0
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov dword [eax + 0x24], eax
inc dword [0x5ba9e4]
push 0x5ba9e8
mov byte [ebp - 4], 8
call fcn.0049a911
add esp, 4
test eax, eax
je 0x47732f
push eax
call fcn.0049b2b4
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [0x5baa44]
cmp eax, 1
jge 0x477357
mov eax, dword [0x5ba9cc]
sub eax, dword [0x5ba9c8]
sar eax, 3
cmp eax, 0x20
jae 0x477357
push 1
call fcn.00437a40
push 0x5baa18
mov byte [ebp - 4], 9
call fcn.0049a558
add esp, 4
test eax, eax
je 0x477375
push eax
call fcn.0049b2b4
add esp, 4
mov dword [ebp - 4], 0xa
test esi, esi
je 0x4773a1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4773a1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4773a1
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00497d40
mov esp, ebp
pop ebp
ret 8
push str.commit_on_ThreadPool_is_stopped.
lea ecx, [ebp - 0x40]
call fcn.0040a6e0
push 0x5ac41c
lea eax, [ebp - 0x40]
push eax
call fcn.00521bba
int3